#define SWITCH_H
#ifdef __cplusplus
-#define BEGIN_EXTERN_C extern "C" {
+#define SWITCH_BEGIN_EXTERN_C extern "C" {
#define END_EXTERN_C }
#else
-#define BEGIN_EXTERN_C
+#define SWITCH_BEGIN_EXTERN_C
#define END_EXTERN_C
#endif
#include <apr_want.h>
#include <apr_env.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
/*
The pieces of apr we allow ppl to pass around between modules we typedef into our namespace and wrap all the functions
*/
#ifndef SWITCH_BITPACK_H
#define SWITCH_BITPACK_H
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#include <switch.h>
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
/**
* @defgroup switch_buffer Buffer Routines
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
/*! \brief Call Specific Data
*/
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
struct switch_channel_timetable {
switch_time_t created;
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
/*! \brief A simple file handle representing an open configuration file **/
struct switch_config {
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#define SWITCH_CMD_CHUNK_LEN 1024
#define SWITCH_STANDARD_STREAM(s) if ((s.data = (char *)malloc(SWITCH_CMD_CHUNK_LEN))) { \
memset(s.data, 0, SWITCH_CMD_CHUNK_LEN); \
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#define SWITCH_MAX_CORE_THREAD_SESSION_OBJS 128
#define SWITCH_MAX_STREAMS 128
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
/*! \brief An event Header */
struct switch_event_header{
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
/*! \brief An abstraction of a data frame */
struct switch_frame {
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
static const switch_state_handler_table_t noop_state_handler = {0};
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
/*!
\defgroup mods Loadable Module Functions
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
///\defgroup log Logger Routines
///\ingroup core1
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
/*! \brief A table of functions to execute at various states
*/
#ifndef SWITCH_PLATFORM_H
#define SWITCH_PLATFORM_H
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#ifdef __ICC
#pragma warning (disable:810 869 981 279 1469 188)
#define SWITCH_RESAMPLE_H
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#include <stdlib.h>
/*!
#ifndef SWITCH_RTP_H
#define SWITCH_RTP_H
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#define SWITCH_RTP_MAX_BUF_LEN 16384
#ifndef SWITCH_SQLITE_H
#define SWITCH_SQLITE_H
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#include <sqlite3.h>
#ifndef _SWITCH_STUN_PARSER_H
#define _SWITCH_STUN_PARSER_H
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#define SWITCH_STUN_DEFAULT_PORT 3478
#define SWITCH_STUN_PACKET_MIN_LEN 20
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#ifdef WIN32
#define SWITCH_PATH_SEPARATOR "\\"
#include <switch.h>
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#ifndef snprintf
#define snprintf apr_snprintf
///\defgroup xml1 XML Library Functions
///\ingroup core1
///\{
-BEGIN_EXTERN_C
+SWITCH_BEGIN_EXTERN_C
#define SWITCH_XML_BUFSIZE 1024 // size of internal memory buffers