提交 b9c9f4c9 authored 作者: Michael Jerris's avatar Michael Jerris

add SWITCH_STANDARD_APP helper macro

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5400 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 8879fe5e
...@@ -1034,7 +1034,10 @@ typedef struct switch_management_interface switch_management_interface_t; ...@@ -1034,7 +1034,10 @@ typedef struct switch_management_interface switch_management_interface_t;
typedef struct switch_core_port_allocator switch_core_port_allocator_t; typedef struct switch_core_port_allocator switch_core_port_allocator_t;
typedef struct switch_media_bug switch_media_bug_t; typedef struct switch_media_bug switch_media_bug_t;
typedef switch_bool_t (*switch_media_bug_callback_t) (switch_media_bug_t *, void *, switch_abc_type_t); typedef switch_bool_t (*switch_media_bug_callback_t) (switch_media_bug_t *, void *, switch_abc_type_t);
typedef void (*switch_application_function_t) (switch_core_session_t *, char *); typedef void (*switch_application_function_t) (switch_core_session_t *, char *);
#define SWITCH_STANDARD_APP(name) static void name (switch_core_session_t *session, char *data)
typedef void (*switch_event_callback_t) (switch_event_t *); typedef void (*switch_event_callback_t) (switch_event_t *);
typedef switch_caller_extension_t *(*switch_dialplan_hunt_function_t) (switch_core_session_t *, void *, switch_caller_profile_t *); typedef switch_caller_extension_t *(*switch_dialplan_hunt_function_t) (switch_core_session_t *, void *, switch_caller_profile_t *);
......
...@@ -307,7 +307,7 @@ static switch_status_t conference_outcall(conference_obj_t * conference, ...@@ -307,7 +307,7 @@ static switch_status_t conference_outcall(conference_obj_t * conference,
static switch_status_t conference_outcall_bg(conference_obj_t * conference, static switch_status_t conference_outcall_bg(conference_obj_t * conference,
char *conference_name, char *conference_name,
switch_core_session_t *session, char *bridgeto, uint32_t timeout, char *flags, char *cid_name, char *cid_num); switch_core_session_t *session, char *bridgeto, uint32_t timeout, char *flags, char *cid_name, char *cid_num);
static void conference_function(switch_core_session_t *session, char *data); SWITCH_STANDARD_APP(conference_function);
static void launch_conference_thread(conference_obj_t * conference); static void launch_conference_thread(conference_obj_t * conference);
static void *SWITCH_THREAD_FUNC conference_loop_input(switch_thread_t * thread, void *obj); static void *SWITCH_THREAD_FUNC conference_loop_input(switch_thread_t * thread, void *obj);
static switch_status_t conference_local_play_file(conference_obj_t * conference, static switch_status_t conference_local_play_file(conference_obj_t * conference,
...@@ -3855,7 +3855,7 @@ static void set_mflags(char *flags, member_flag_t * f) ...@@ -3855,7 +3855,7 @@ static void set_mflags(char *flags, member_flag_t * f)
} }
static void conference_auto_function(switch_core_session_t *session, char *data) SWITCH_STANDARD_APP(conference_auto_function)
{ {
switch_channel_t *channel = NULL; switch_channel_t *channel = NULL;
call_list_t *call_list, *np; call_list_t *call_list, *np;
...@@ -3890,7 +3890,7 @@ static void conference_auto_function(switch_core_session_t *session, char *data) ...@@ -3890,7 +3890,7 @@ static void conference_auto_function(switch_core_session_t *session, char *data)
} }
/* Application interface function that is called from the dialplan to join the channel to a conference */ /* Application interface function that is called from the dialplan to join the channel to a conference */
static void conference_function(switch_core_session_t *session, char *data) SWITCH_STANDARD_APP(conference_function)
{ {
switch_codec_t *read_codec = NULL; switch_codec_t *read_codec = NULL;
uint32_t flags = 0; uint32_t flags = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论