swig does not work with varargs functions (FSCORE-128)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8585 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-24 18:59:49 +00:00
parent 76a41b5730
commit 25307824c0
3 changed files with 12 additions and 3 deletions

View File

@ -58,18 +58,22 @@ SWITCH_BEGIN_EXTERN_C
*/ */
SWITCH_DECLARE(void) switch_console_loop(void); SWITCH_DECLARE(void) switch_console_loop(void);
#ifndef SWIG
/*! /*!
\brief A method akin to printf that allows you to redirect output to a specific console "channel" \brief A method akin to printf that allows you to redirect output to a specific console "channel"
*/ */
SWITCH_DECLARE(void) switch_console_printf(switch_text_channel_t channel, const char *file, const char *func, int line, SWITCH_DECLARE(void) switch_console_printf(switch_text_channel_t channel, const char *file, const char *func, int line,
const char *fmt, ...) PRINTF_FUNCTION(5, 6); const char *fmt, ...) PRINTF_FUNCTION(5, 6);
#endif
SWITCH_DECLARE_NONSTD(switch_status_t) switch_console_stream_raw_write(switch_stream_handle_t *handle, uint8_t *data, switch_size_t datalen); SWITCH_DECLARE_NONSTD(switch_status_t) switch_console_stream_raw_write(switch_stream_handle_t *handle, uint8_t *data, switch_size_t datalen);
#ifndef SWIG
/*! /*!
\brief A method akin to printf for dealing with api streams \brief A method akin to printf for dealing with api streams
*/ */
SWITCH_DECLARE_NONSTD(switch_status_t) switch_console_stream_write(switch_stream_handle_t *handle, const char *fmt, ...) PRINTF_FUNCTION(2, 3); SWITCH_DECLARE_NONSTD(switch_status_t) switch_console_stream_write(switch_stream_handle_t *handle, const char *fmt, ...) PRINTF_FUNCTION(2, 3);
#endif
SWITCH_END_EXTERN_C SWITCH_END_EXTERN_C
#endif #endif

View File

@ -167,6 +167,7 @@ _Ret_opt_z_ SWITCH_DECLARE(char *) switch_event_get_header(switch_event_t *event
*/ */
SWITCH_DECLARE(char *) switch_event_get_body(switch_event_t *event); SWITCH_DECLARE(char *) switch_event_get_body(switch_event_t *event);
#ifndef SWIG
/*! /*!
\brief Add a header to an event \brief Add a header to an event
\param event the event to add the header to \param event the event to add the header to
@ -177,7 +178,7 @@ SWITCH_DECLARE(char *) switch_event_get_body(switch_event_t *event);
*/ */
SWITCH_DECLARE(switch_status_t) switch_event_add_header(switch_event_t *event, switch_stack_t stack, SWITCH_DECLARE(switch_status_t) switch_event_add_header(switch_event_t *event, switch_stack_t stack,
const char *header_name, const char *fmt, ...) PRINTF_FUNCTION(4, 5); const char *header_name, const char *fmt, ...) PRINTF_FUNCTION(4, 5);
#endif
/*! /*!
\brief Add a string header to an event \brief Add a string header to an event
\param event the event to add the header to \param event the event to add the header to
@ -262,6 +263,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_reserve_subclass_detailed(const cha
*/ */
SWITCH_DECLARE(switch_status_t) switch_event_serialize(switch_event_t *event, char **str, switch_bool_t encode); SWITCH_DECLARE(switch_status_t) switch_event_serialize(switch_event_t *event, char **str, switch_bool_t encode);
#ifndef SWIG
/*! /*!
\brief Render a XML representation of an event sutable for printing or network transport \brief Render a XML representation of an event sutable for printing or network transport
\param event the event to render \param event the event to render
@ -270,6 +272,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_serialize(switch_event_t *event, ch
\note the body supplied by this function will supersede an existing body the event may have \note the body supplied by this function will supersede an existing body the event may have
*/ */
SWITCH_DECLARE(switch_xml_t) switch_event_xmlize(switch_event_t *event, const char *fmt, ...) PRINTF_FUNCTION(2, 3); SWITCH_DECLARE(switch_xml_t) switch_event_xmlize(switch_event_t *event, const char *fmt, ...) PRINTF_FUNCTION(2, 3);
#endif
/*! /*!
\brief Determine if the event system has been initilized \brief Determine if the event system has been initilized
@ -277,6 +280,7 @@ SWITCH_DECLARE(switch_xml_t) switch_event_xmlize(switch_event_t *event, const ch
*/ */
SWITCH_DECLARE(switch_status_t) switch_event_running(void); SWITCH_DECLARE(switch_status_t) switch_event_running(void);
#ifndef SWIG
/*! /*!
\brief Add a body to an event \brief Add a body to an event
\param event the event to add to body to \param event the event to add to body to
@ -285,6 +289,7 @@ SWITCH_DECLARE(switch_status_t) switch_event_running(void);
\note the body parameter can be shadowed by the switch_event_reserve_subclass_detailed function \note the body parameter can be shadowed by the switch_event_reserve_subclass_detailed function
*/ */
SWITCH_DECLARE(switch_status_t) switch_event_add_body(switch_event_t *event, const char *fmt, ...) PRINTF_FUNCTION(2, 3); SWITCH_DECLARE(switch_status_t) switch_event_add_body(switch_event_t *event, const char *fmt, ...) PRINTF_FUNCTION(2, 3);
#endif
SWITCH_DECLARE(char *) switch_event_expand_headers(switch_event_t *event, const char *in); SWITCH_DECLARE(char *) switch_event_expand_headers(switch_event_t *event, const char *in);
SWITCH_DECLARE(switch_status_t) switch_event_create_pres_in_detailed(_In_z_ char *file, _In_z_ char *func, _In_ int line, SWITCH_DECLARE(switch_status_t) switch_event_create_pres_in_detailed(_In_z_ char *file, _In_z_ char *func, _In_ int line,

View File

@ -82,7 +82,7 @@ SWITCH_DECLARE(switch_status_t) switch_log_init(_In_ switch_memory_pool_t *pool)
*/ */
SWITCH_DECLARE(switch_status_t) switch_log_shutdown(void); SWITCH_DECLARE(switch_status_t) switch_log_shutdown(void);
#ifndef SWIG
/*! /*!
\brief Write log data to the logging engine \brief Write log data to the logging engine
\param channel the log channel to write to \param channel the log channel to write to
@ -98,7 +98,7 @@ SWITCH_DECLARE(void) switch_log_printf(_In_ switch_text_channel_t channel, _In_z
_In_z_ const char *func, _In_ int line, _In_z_ const char *func, _In_ int line,
_In_opt_z_ const char *userdata, _In_ switch_log_level_t level, _In_opt_z_ const char *userdata, _In_ switch_log_level_t level,
_In_z_ _Printf_format_string_ const char *fmt, ...) PRINTF_FUNCTION(7, 8); _In_z_ _Printf_format_string_ const char *fmt, ...) PRINTF_FUNCTION(7, 8);
#endif
/*! /*!
\brief Shut down the logging engine \brief Shut down the logging engine
\note to be called at application termination by the core \note to be called at application termination by the core