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

fix typedef for switch_stream_handle_write_function_t to also use const char *…

fix typedef for switch_stream_handle_write_function_t to also use const char * fmt and match other uses of that type.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4262 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 c48792c6
...@@ -928,7 +928,7 @@ typedef switch_status_t (*switch_waitfor_read_hook_t)(switch_core_session_t *, i ...@@ -928,7 +928,7 @@ typedef switch_status_t (*switch_waitfor_read_hook_t)(switch_core_session_t *, i
typedef switch_status_t (*switch_waitfor_write_hook_t)(switch_core_session_t *, int, int); typedef switch_status_t (*switch_waitfor_write_hook_t)(switch_core_session_t *, int, int);
typedef switch_status_t (*switch_send_dtmf_hook_t)(switch_core_session_t *, char *); typedef switch_status_t (*switch_send_dtmf_hook_t)(switch_core_session_t *, char *);
typedef struct switch_stream_handle switch_stream_handle_t; typedef struct switch_stream_handle switch_stream_handle_t;
typedef switch_status_t (*switch_stream_handle_write_function_t)(switch_stream_handle_t *handle, char *fmt, ...); typedef switch_status_t (*switch_stream_handle_write_function_t)(switch_stream_handle_t *handle, const char *fmt, ...);
typedef switch_status_t (*switch_api_function_t)(char *in, switch_core_session_t *session, switch_stream_handle_t *stream); typedef switch_status_t (*switch_api_function_t)(char *in, switch_core_session_t *session, switch_stream_handle_t *stream);
typedef switch_status_t (*switch_input_callback_function_t)(switch_core_session_t *session, typedef switch_status_t (*switch_input_callback_function_t)(switch_core_session_t *session,
void *input, void *input,
......
...@@ -126,7 +126,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod ...@@ -126,7 +126,7 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_load(const switch_loadable_mod
} }
static switch_status_t http_stream_write(switch_stream_handle_t *handle, char *fmt, ...) static switch_status_t http_stream_write(switch_stream_handle_t *handle, const char *fmt, ...)
{ {
va_list ap; va_list ap;
TSession *r = handle->data; TSession *r = handle->data;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论