]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
a little more header juggling.
authorMichael Jerris <mike@jerris.com>
Thu, 29 Dec 2005 19:14:05 +0000 (19:14 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 29 Dec 2005 19:14:05 +0000 (19:14 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@239 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch.h
src/include/switch_apr.h
src/include/switch_platform.h
src/include/switch_sqlite.h
src/include/switch_types.h

index 5d34e79ecab659dcd1cdfdf820c9875607f61e3b..b08cd3329c34a9d78f5c0cc3b9545788b17e4c51 100644 (file)
@@ -39,32 +39,9 @@ extern "C" {
 #include <config.h>
 #endif
 
-#include <switch_platform.h>
-
-#include <apr.h>
-#include <apr_network_io.h>
-#include <apr_errno.h>
-#include <apr_general.h>
-#include <apr_thread_proc.h>
-#include <apr_thread_mutex.h>
-#include <apr_thread_cond.h>
-#include <apr_thread_rwlock.h>
-#include <apr_file_io.h>
-#include <apr_poll.h>
-#include <apr_dso.h>
-#include <apr_hash.h>
-#include <apr_strings.h>
-#include <apr_network_io.h>
-#include <apr_poll.h>
-#include <apr_queue.h>
-#include <apr_uuid.h>
-#include <apr_strmatch.h>
-#define APR_WANT_STDIO
-#define APR_WANT_STRFUNC
-#include <apr_want.h>
 #include <assert.h>
-#include <sqlite3.h>
 
+#include <switch_platform.h>
 #include <switch_apr.h>
 #include <switch_sqlite.h>
 #include <switch_types.h>
index 86c9a1731008f8e02f82942fe948bc313f2c57dc..d451789000606a766d980cea97945b855f9af327 100644 (file)
 extern "C" {
 #endif
 
+#include <apr.h>
+#include <apr_network_io.h>
+#include <apr_errno.h>
+#include <apr_general.h>
+#include <apr_thread_proc.h>
+#include <apr_thread_mutex.h>
+#include <apr_thread_cond.h>
+#include <apr_thread_rwlock.h>
+#include <apr_file_io.h>
+#include <apr_poll.h>
+#include <apr_dso.h>
+#include <apr_hash.h>
+#include <apr_strings.h>
+#include <apr_network_io.h>
+#include <apr_poll.h>
+#include <apr_queue.h>
+#include <apr_uuid.h>
+#include <apr_strmatch.h>
+#define APR_WANT_STDIO
+#define APR_WANT_STRFUNC
+#include <apr_want.h>
+
 /*
    The pieces of apr we allow ppl to pass around between modules we typedef into our namespace and wrap all the functions
    any other apr code should be as hidden as possible.
index 7d7066651381913e00e70ebb03579e7d2b500515..b44935b45481e1b895e983840632b7e4c736cb05 100644 (file)
@@ -46,25 +46,25 @@ extern "C" {
 
 #ifdef WIN32
 #if defined(SWITCH_CORE_DECLARE_STATIC)
-#define SWITCH_DECLARE(type)            type __stdcall
-#define SWITCH_DECLARE_NONSTD(type)     type __cdecl
+#define SWITCH_DECLARE(type)                   type __stdcall
+#define SWITCH_DECLARE_NONSTD(type)            type __cdecl
 #define SWITCH_DECLARE_DATA
 #elif defined(FREESWITCHCORE_EXPORTS)
-#define SWITCH_DECLARE(type)            __declspec(dllexport) type __stdcall
-#define SWITCH_DECLARE_NONSTD(type)     __declspec(dllexport) type __cdecl
-#define SWITCH_DECLARE_DATA             __declspec(dllexport)
+#define SWITCH_DECLARE(type)                   __declspec(dllexport) type __stdcall
+#define SWITCH_DECLARE_NONSTD(type)            __declspec(dllexport) type __cdecl
+#define SWITCH_DECLARE_DATA                            __declspec(dllexport)
 #else
-#define SWITCH_DECLARE(type)            __declspec(dllimport) type __stdcall
-#define SWITCH_DECLARE_NONSTD(type)     __declspec(dllimport) type __cdecl
-#define SWITCH_DECLARE_DATA             __declspec(dllimport)
+#define SWITCH_DECLARE(type)                   __declspec(dllimport) type __stdcall
+#define SWITCH_DECLARE_NONSTD(type)            __declspec(dllimport) type __cdecl
+#define SWITCH_DECLARE_DATA                            __declspec(dllimport)
 #endif
 
 #if defined(SWITCH_MOD_DECLARE_STATIC)
-#define SWITCH_MOD_DECLARE(type)            type __cdecl
+#define SWITCH_MOD_DECLARE(type)               type __cdecl
 #elif defined(MOD_EXPORTS)
-#define SWITCH_MOD_DECLARE(type)     __declspec(dllexport) type __cdecl
+#define SWITCH_MOD_DECLARE(type)               __declspec(dllexport) type __cdecl
 #else
-#define SWITCH_MOD_DECLARE(type)     __declspec(dllimport) type __cdecl
+#define SWITCH_MOD_DECLARE(type)               __declspec(dllimport) type __cdecl
 #endif
 #else //not win32
 #define SWITCH_DECLARE(type) type
index 3d4fbd8417f868fbc84d5f8d4ae4a01f0a5b77ad..dd0fe3b8aa0a98a460f908abd9214f13ad7f54a1 100644 (file)
@@ -35,6 +35,8 @@
 extern "C" {
 #endif
 
+#include <sqlite3.h>
+
 typedef sqlite3 switch_core_db;
 
 #define switch_core_db_aggregate_context sqlite3_aggregate_context
index f17ec4dfe433f1f00ab5578dd20360c854805352..65fae82cc1afcfc4a488c09e2b9dd92d0967c599 100644 (file)
@@ -152,7 +152,6 @@ typedef struct switch_event_header switch_event_header;
 typedef struct switch_event switch_event;
 typedef struct switch_event_subclass switch_event_subclass;
 typedef struct switch_event_node switch_event_node;
-typedef void (*switch_event_callback_t)(switch_event *);
 typedef struct switch_loadable_module switch_loadable_module;
 typedef struct switch_frame switch_frame;
 typedef struct switch_channel switch_channel;
@@ -188,6 +187,7 @@ typedef struct switch_io_event_hooks switch_io_event_hooks;
 typedef struct switch_buffer switch_buffer;
 typedef struct switch_codec_settings switch_codec_settings;
 typedef void (*switch_application_function)(switch_core_session *, char *);
+typedef void (*switch_event_callback_t)(switch_event *);
 typedef switch_caller_extension *(*switch_dialplan_hunt_function)(switch_core_session *);
 typedef switch_status (*switch_event_handler)(switch_core_session *);
 typedef switch_status (*switch_outgoing_channel_hook)(switch_core_session *, switch_caller_profile *, switch_core_session *);