From 25307824c0f14e43cc2ae0314a43cb13d39c2774 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 24 May 2008 18:59:49 +0000 Subject: [PATCH] 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 --- src/include/switch_console.h | 4 ++++ src/include/switch_event.h | 7 ++++++- src/include/switch_log.h | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/include/switch_console.h b/src/include/switch_console.h index 7e6be7f6db..060f230695 100644 --- a/src/include/switch_console.h +++ b/src/include/switch_console.h @@ -58,18 +58,22 @@ SWITCH_BEGIN_EXTERN_C */ 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" */ 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); +#endif 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 */ 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 #endif diff --git a/src/include/switch_event.h b/src/include/switch_event.h index 944a488eaa..da6ac37d96 100644 --- a/src/include/switch_event.h +++ b/src/include/switch_event.h @@ -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); +#ifndef SWIG /*! \brief Add a header to an event \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, const char *header_name, const char *fmt, ...) PRINTF_FUNCTION(4, 5); - +#endif /*! \brief Add a string header to an event \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); +#ifndef SWIG /*! \brief Render a XML representation of an event sutable for printing or network transport \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 */ 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 @@ -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); +#ifndef SWIG /*! \brief Add a body to an event \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 */ 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(switch_status_t) switch_event_create_pres_in_detailed(_In_z_ char *file, _In_z_ char *func, _In_ int line, diff --git a/src/include/switch_log.h b/src/include/switch_log.h index f3b697bd4b..dfa689d2a6 100644 --- a/src/include/switch_log.h +++ b/src/include/switch_log.h @@ -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); - +#ifndef SWIG /*! \brief Write log data to the logging engine \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_opt_z_ const char *userdata, _In_ switch_log_level_t level, _In_z_ _Printf_format_string_ const char *fmt, ...) PRINTF_FUNCTION(7, 8); - +#endif /*! \brief Shut down the logging engine \note to be called at application termination by the core