[Freeswitch-svn] [commit] r9822 - freeswitch/trunk/src/mod/languages/mod_managed
Freeswitch SVN
mikej at freeswitch.org
Sat Oct 4 01:12:49 EDT 2008
Author: mikej
Date: Sat Oct 4 01:12:47 2008
New Revision: 9822
Modified:
freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_managed.cpp
freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_managed.h
Log:
a little more cleanup
Modified: freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_managed.cpp
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_managed.cpp (original)
+++ freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_managed.cpp Sat Oct 4 01:12:47 2008
@@ -32,21 +32,6 @@
#include <switch.h>
#include <switch_cpp.h>
-
-#ifdef _MANAGED
-#define ATTACH_THREADS
-#else
-#include <glib.h>
-#include <mono/metadata/threads.h>
-#define ATTACH_THREADS mono_thread_attach(globals.domain);
-#endif
-
-#ifdef WIN32
-#define RESULT_FREE(x) CoTaskMemFree(x)
-#else
-#define RESULT_FREE(x) g_free(x)
-#endif
-
#include "freeswitch_managed.h"
ManagedSession::ManagedSession():CoreSession()
Modified: freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_managed.h
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_managed.h (original)
+++ freeswitch/trunk/src/mod/languages/mod_managed/freeswitch_managed.h Sat Oct 4 01:12:47 2008
@@ -26,12 +26,12 @@
* Michael Giagnocavo <mgg at packetrino.com>
* Jeff Lenk <jlenk at frontiernet.net> - Modified class to support Dotnet
*
- * freeswitch_mono.h -- Header for MonoSession and globals
+ * freeswitch_managed.h -- Header for ManagedSession and globals
*
*/
-#ifndef FREESWITCH_MONO_H
-#define FREESWITCH_MONO_H
+#ifndef FREESWITCH_MANAGED_H
+#define FREESWITCH_MANAGED_H
SWITCH_BEGIN_EXTERN_C
@@ -41,10 +41,13 @@
typedef void (*hangupFunction)(void);
typedef char* (*inputFunction)(void*, switch_input_type_t);
-#ifndef _MANAGED
-
+#ifdef _MANAGED
+#define ATTACH_THREADS
+#else
+#include <glib.h>
#include <mono/jit/jit.h>
#include <mono/metadata/assembly.h>
+#include <mono/metadata/threads.h>
#ifndef SWIG
struct mod_mono_globals {
@@ -63,6 +66,13 @@
typedef struct mod_mono_globals mod_mono_globals;
extern mod_mono_globals globals;
#endif
+#define ATTACH_THREADS mono_thread_attach(globals.domain);
+#endif
+
+#ifdef WIN32
+#define RESULT_FREE(x) CoTaskMemFree(x)
+#else
+#define RESULT_FREE(x) g_free(x)
#endif
SWITCH_END_EXTERN_C
More information about the Freeswitch-svn
mailing list