git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4805 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-03-30 14:57:06 +00:00
parent 324f6b00aa
commit 33efc5eeb5
6 changed files with 68 additions and 17 deletions
+4 -4
View File
@@ -67,16 +67,16 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_add_task(time_t task_runtime,
/*!
\brief Delete a scheduled task
\param task_id the id of the task
\return SWITCH_STATUS_SUCCESS if the task was deleted.
\return the number of jobs deleted
*/
SWITCH_DECLARE(switch_status_t) switch_scheduler_del_task_id(uint32_t task_id);
SWITCH_DECLARE(uint32_t) switch_scheduler_del_task_id(uint32_t task_id);
/*!
\brief Delete a scheduled task based on the group name
\param group the group name
\return SWITCH_STATUS_SUCCESS if any tasks were deleted
\return the number of jobs deleted
*/
SWITCH_DECLARE(switch_status_t) switch_scheduler_del_task_group(char *group);
SWITCH_DECLARE(uint32_t) switch_scheduler_del_task_group(char *group);
/*!
+2 -1
View File
@@ -158,7 +158,8 @@ typedef enum {
typedef enum {
SSHF_NONE = 0,
SSHF_OWN_THREAD = (1 << 0),
SSHF_FREE_ARG = (1 << 1)
SSHF_FREE_ARG = (1 << 1),
SSHF_NO_DEL = (1 << 2)
} switch_scheduler_flag_t;
typedef enum {
+13
View File
@@ -54,6 +54,19 @@ SWITCH_BEGIN_EXTERN_C
#else
#define switch_is_file_path(file) ((*file == '/') || strstr(file, SWITCH_URL_SEPARATOR))
#endif
static inline switch_bool_t switch_is_digit_string(char *s) {
while(s && *s) {
if (*s < 48 || *s > 57) {
return SWITCH_FALSE;
}
s++;
}
return SWITCH_TRUE;
}
/*!
\brief Evaluate the truthfullness of a string expression
\param expr a string expression