[Freeswitch-svn] [commit] r8585 - freeswitch/trunk/src/include

Freeswitch SVN mikej at freeswitch.org
Sat May 24 14:59:49 EDT 2008


Author: mikej
Date: Sat May 24 14:59:49 2008
New Revision: 8585

Modified:
   freeswitch/trunk/src/include/switch_console.h
   freeswitch/trunk/src/include/switch_event.h
   freeswitch/trunk/src/include/switch_log.h

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

Modified: freeswitch/trunk/src/include/switch_console.h
==============================================================================
--- freeswitch/trunk/src/include/switch_console.h	(original)
+++ freeswitch/trunk/src/include/switch_console.h	Sat May 24 14:59:49 2008
@@ -58,18 +58,22 @@
 */
 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

Modified: freeswitch/trunk/src/include/switch_event.h
==============================================================================
--- freeswitch/trunk/src/include/switch_event.h	(original)
+++ freeswitch/trunk/src/include/switch_event.h	Sat May 24 14:59:49 2008
@@ -167,6 +167,7 @@
 */
 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(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_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 @@
   \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_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 @@
   \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, 

Modified: freeswitch/trunk/src/include/switch_log.h
==============================================================================
--- freeswitch/trunk/src/include/switch_log.h	(original)
+++ freeswitch/trunk/src/include/switch_log.h	Sat May 24 14:59:49 2008
@@ -82,7 +82,7 @@
 */
 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 @@
 									   _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



More information about the Freeswitch-svn mailing list