mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
main/utils: allow checking for command in $PATH
ASTERISK-30037 Change-Id: I4b6f7264c8c737c476c798d2352f3232b263bbdf
This commit is contained in:
committed by
George Joseph
parent
3f04dd5c01
commit
82405752f7
@@ -1105,4 +1105,14 @@ int ast_thread_user_interface_set(int is_user_interface);
|
||||
*/
|
||||
int ast_thread_is_user_interface(void);
|
||||
|
||||
/*!
|
||||
* \brief Test for the presence of an executable command in $PATH
|
||||
*
|
||||
* \param cmd Name of command to locate.
|
||||
*
|
||||
* \retval True (non-zero) if command is in $PATH.
|
||||
* \retval False (zero) command not found.
|
||||
*/
|
||||
int ast_check_command_in_path(const char *cmd);
|
||||
|
||||
#endif /* _ASTERISK_UTILS_H */
|
||||
|
Reference in New Issue
Block a user