fix namespace
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2548 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
64b0912eb6
commit
a4c778a00c
|
@ -36,10 +36,10 @@
|
||||||
#define SWITCH_H
|
#define SWITCH_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define BEGIN_EXTERN_C extern "C" {
|
#define SWITCH_BEGIN_EXTERN_C extern "C" {
|
||||||
#define END_EXTERN_C }
|
#define END_EXTERN_C }
|
||||||
#else
|
#else
|
||||||
#define BEGIN_EXTERN_C
|
#define SWITCH_BEGIN_EXTERN_C
|
||||||
#define END_EXTERN_C
|
#define END_EXTERN_C
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
#include <apr_want.h>
|
#include <apr_want.h>
|
||||||
#include <apr_env.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
|
The pieces of apr we allow ppl to pass around between modules we typedef into our namespace and wrap all the functions
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
*/
|
*/
|
||||||
#ifndef SWITCH_BITPACK_H
|
#ifndef SWITCH_BITPACK_H
|
||||||
#define SWITCH_BITPACK_H
|
#define SWITCH_BITPACK_H
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup switch_buffer Buffer Routines
|
* @defgroup switch_buffer Buffer Routines
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
/*! \brief Call Specific Data
|
/*! \brief Call Specific Data
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
struct switch_channel_timetable {
|
struct switch_channel_timetable {
|
||||||
switch_time_t created;
|
switch_time_t created;
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
/*! \brief A simple file handle representing an open configuration file **/
|
/*! \brief A simple file handle representing an open configuration file **/
|
||||||
struct switch_config {
|
struct switch_config {
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
#define SWITCH_CMD_CHUNK_LEN 1024
|
#define SWITCH_CMD_CHUNK_LEN 1024
|
||||||
#define SWITCH_STANDARD_STREAM(s) if ((s.data = (char *)malloc(SWITCH_CMD_CHUNK_LEN))) { \
|
#define SWITCH_STANDARD_STREAM(s) if ((s.data = (char *)malloc(SWITCH_CMD_CHUNK_LEN))) { \
|
||||||
memset(s.data, 0, SWITCH_CMD_CHUNK_LEN); \
|
memset(s.data, 0, SWITCH_CMD_CHUNK_LEN); \
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
#define SWITCH_MAX_CORE_THREAD_SESSION_OBJS 128
|
#define SWITCH_MAX_CORE_THREAD_SESSION_OBJS 128
|
||||||
#define SWITCH_MAX_STREAMS 128
|
#define SWITCH_MAX_STREAMS 128
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
/*! \brief An event Header */
|
/*! \brief An event Header */
|
||||||
struct switch_event_header{
|
struct switch_event_header{
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
/*! \brief An abstraction of a data frame */
|
/*! \brief An abstraction of a data frame */
|
||||||
struct switch_frame {
|
struct switch_frame {
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
static const switch_state_handler_table_t noop_state_handler = {0};
|
static const switch_state_handler_table_t noop_state_handler = {0};
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\defgroup mods Loadable Module Functions
|
\defgroup mods Loadable Module Functions
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
///\defgroup log Logger Routines
|
///\defgroup log Logger Routines
|
||||||
///\ingroup core1
|
///\ingroup core1
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
/*! \brief A table of functions to execute at various states
|
/*! \brief A table of functions to execute at various states
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
#ifndef SWITCH_PLATFORM_H
|
#ifndef SWITCH_PLATFORM_H
|
||||||
#define SWITCH_PLATFORM_H
|
#define SWITCH_PLATFORM_H
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
#ifdef __ICC
|
#ifdef __ICC
|
||||||
#pragma warning (disable:810 869 981 279 1469 188)
|
#pragma warning (disable:810 869 981 279 1469 188)
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
#define SWITCH_RESAMPLE_H
|
#define SWITCH_RESAMPLE_H
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
#ifndef SWITCH_RTP_H
|
#ifndef SWITCH_RTP_H
|
||||||
#define SWITCH_RTP_H
|
#define SWITCH_RTP_H
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
#define SWITCH_RTP_MAX_BUF_LEN 16384
|
#define SWITCH_RTP_MAX_BUF_LEN 16384
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#ifndef SWITCH_SQLITE_H
|
#ifndef SWITCH_SQLITE_H
|
||||||
#define SWITCH_SQLITE_H
|
#define SWITCH_SQLITE_H
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
#include <sqlite3.h>
|
#include <sqlite3.h>
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
#ifndef _SWITCH_STUN_PARSER_H
|
#ifndef _SWITCH_STUN_PARSER_H
|
||||||
#define _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_DEFAULT_PORT 3478
|
||||||
#define SWITCH_STUN_PACKET_MIN_LEN 20
|
#define SWITCH_STUN_PACKET_MIN_LEN 20
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#define SWITCH_PATH_SEPARATOR "\\"
|
#define SWITCH_PATH_SEPARATOR "\\"
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
|
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
#ifndef snprintf
|
#ifndef snprintf
|
||||||
#define snprintf apr_snprintf
|
#define snprintf apr_snprintf
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
///\defgroup xml1 XML Library Functions
|
///\defgroup xml1 XML Library Functions
|
||||||
///\ingroup core1
|
///\ingroup core1
|
||||||
///\{
|
///\{
|
||||||
BEGIN_EXTERN_C
|
SWITCH_BEGIN_EXTERN_C
|
||||||
|
|
||||||
#define SWITCH_XML_BUFSIZE 1024 // size of internal memory buffers
|
#define SWITCH_XML_BUFSIZE 1024 // size of internal memory buffers
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue