what comes up must come down

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2555 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-09-07 15:15:39 +00:00
parent 52956d5cb1
commit 086676f6e9
23 changed files with 24 additions and 24 deletions

View File

@ -37,10 +37,10 @@
#ifdef __cplusplus
#define SWITCH_BEGIN_EXTERN_C extern "C" {
#define END_EXTERN_C }
#define SWITCH_END_EXTERN_C }
#else
#define SWITCH_BEGIN_EXTERN_C
#define END_EXTERN_C
#define SWITCH_END_EXTERN_C
#endif

View File

@ -1433,6 +1433,6 @@ SWITCH_DECLARE(switch_status_t) switch_mutex_init(switch_mutex_t **lock,
/** @} */
/** @} */
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -278,5 +278,5 @@ static inline int8_t switch_bitpack_in(switch_bitpack_t *pack, switch_byte_t in)
}
///\}
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -109,6 +109,6 @@ SWITCH_DECLARE(switch_size_t) switch_buffer_toss(switch_buffer_t *buffer, switch
SWITCH_DECLARE(void) switch_buffer_zero(switch_buffer_t *buffer);
/** @} */
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -195,7 +195,7 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_clone(switch_cor
SWITCH_DECLARE(void) switch_caller_profile_event_set_data(switch_caller_profile_t *caller_profile, char *prefix, switch_event_t *event);
END_EXTERN_C
SWITCH_END_EXTERN_C
/** @} */

View File

@ -393,6 +393,6 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_raw_mode (switch_channel_t *c
SWITCH_DECLARE(switch_status_t) switch_channel_get_raw_mode (switch_channel_t *channel, int *freq, int *bits, int *channels, int *ms, int *kbps);
/** @} */
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -104,7 +104,7 @@ SWITCH_DECLARE(void) switch_config_close_file(switch_config_t *cfg);
*/
SWITCH_DECLARE(int) switch_config_next_pair(switch_config_t *cfg, char **var, char **val);
END_EXTERN_C
SWITCH_END_EXTERN_C
/** @} */

View File

@ -68,6 +68,6 @@ SWITCH_DECLARE(void) switch_console_printf(switch_text_channel_t channel, char *
\brief A method akin to printf for dealing with api streams
*/
SWITCH_DECLARE(switch_status_t) switch_console_stream_write(switch_stream_handle_t *handle, char *fmt, ...);
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -1170,6 +1170,6 @@ SWITCH_DECLARE(void) switch_core_set_globals(void);
\}
*/
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -310,6 +310,6 @@ SWITCH_DECLARE(void) switch_event_deliver(switch_event_t **event);
#define switch_event_fire_data(event, data) switch_event_fire_detailed(__FILE__, (char * )__FUNCTION__, __LINE__, event, data)
///\}
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -68,6 +68,6 @@ struct switch_frame {
switch_frame_flag_t flags;
};
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -216,7 +216,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_
/** @} */
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -230,6 +230,6 @@ SWITCH_MOD_DECLARE(switch_status_t) switch_module_runtime(void);
SWITCH_MOD_DECLARE(switch_status_t) switch_module_shutdown(void);
///\}
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -117,6 +117,6 @@ SWITCH_DECLARE(const char *) switch_log_level2str(switch_log_level_t level);
SWITCH_DECLARE(switch_log_level_t) switch_log_str2level(const char *str);
///\}
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -536,6 +536,6 @@ struct switch_api_interface {
const struct switch_api_interface *next;
};
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -141,6 +141,6 @@ typedef unsigned long in_addr_t;
#define DoxyDefine(x)
#endif
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -156,7 +156,7 @@ SWITCH_DECLARE(void) switch_swap_linear(int16_t *buf, int len);
///\}
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -373,6 +373,6 @@ SWITCH_DECLARE(void *)switch_rtp_get_private(switch_rtp_t *rtp_session);
\}
*/
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -1804,6 +1804,6 @@ DoxyDefine(void switch_core_db_free(char *z);)
/** @} */
/** @} */
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -240,6 +240,6 @@ SWITCH_DECLARE(switch_status_t) switch_stun_lookup (char **ip,
#define switch_stun_packet_length(packet) ntohs(packet->header.length) + sizeof(switch_stun_packet_header_t)
///\}
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -783,6 +783,6 @@ struct switch_channel;
/*! \brief A core session representing a call and all of it's resources */
struct switch_core_session;
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -210,6 +210,6 @@ SWITCH_DECLARE(switch_status_t) switch_string_match(const char *string, size_t s
#define SWITCH_READ_ACCEPTABLE(status) status == SWITCH_STATUS_SUCCESS || status == SWITCH_STATUS_BREAK
SWITCH_DECLARE(size_t) switch_url_encode(char *url, char *buf, size_t len);
SWITCH_DECLARE(char *) switch_url_decode(char *s);
END_EXTERN_C
SWITCH_END_EXTERN_C
#endif

View File

@ -331,7 +331,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_bind_search_function(switch_xml_searc
///\return the section mask
SWITCH_DECLARE(switch_xml_section_t) switch_xml_parse_section_string(char *str);
END_EXTERN_C
SWITCH_END_EXTERN_C
///\}