From bab0728ae0df224c429f4d3678ed94e8e4023973 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 17 Feb 2009 21:41:01 +0000 Subject: [PATCH] swigall git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12116 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- Makefile.am | 2 +- src/include/switch_cpp.h | 6 +- src/mod/languages/mod_managed/managed/swig.cs | 63 ++++++++++++++++++- 3 files changed, 68 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9ebbf89cf7..4bb49d7640 100644 --- a/Makefile.am +++ b/Makefile.am @@ -194,7 +194,7 @@ endif bin_SCRIPTS = scripts/gentls_cert scripts/fsxs src/include/switch_swigable_cpp.h: src/include/switch_cpp.h - $(CC) -E src/include/switch_cpp.h -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= -DSWITCH_DECLARE_NONSTD\(x\)=x 2>/dev/null | grep -v "^#" > src/include/switch_swigable_cpp.h + $(CC) -E src/include/switch_cpp.h -DSWITCH_DECLARE_CLASS= -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= -DSWITCH_DECLARE_NONSTD\(x\)=x 2>/dev/null | grep -v "^#" > src/include/switch_swigable_cpp.h libs/libedit/src/.libs/libedit.a: cd libs/libedit && $(MAKE) diff --git a/src/include/switch_cpp.h b/src/include/switch_cpp.h index 30c005a304..15332839f0 100644 --- a/src/include/switch_cpp.h +++ b/src/include/switch_cpp.h @@ -78,7 +78,7 @@ Note that the first parameter to the new operator is implicitly handled by c++.. SWITCH_DECLARE(void) consoleLog(char *level_str, char *msg); SWITCH_DECLARE(void) consoleCleanLog(char *msg); - class SWITCH_DECLARE_CLASS CoreSession; + class CoreSession; class IVRMenu { protected: @@ -185,7 +185,11 @@ SWITCH_DECLARE(void) consoleCleanLog(char *msg); SWITCH_DECLARE(Event *) pop(int block = 0); }; +#ifdef SWIG + class CoreSession { +#else class SWITCH_DECLARE_CLASS CoreSession { +#endif protected: switch_input_args_t args; // holds ptr to cb function and input_callback_state struct // which has a language specific callback function diff --git a/src/mod/languages/mod_managed/managed/swig.cs b/src/mod/languages/mod_managed/managed/swig.cs index 2960673dcc..7eda6618af 100644 --- a/src/mod/languages/mod_managed/managed/swig.cs +++ b/src/mod/languages/mod_managed/managed/swig.cs @@ -11255,6 +11255,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_CoreSession { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_CoreSession(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_CoreSession() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_CoreSession obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + public class SWIGTYPE_p_FILE { private HandleRef swigCPtr; @@ -14405,6 +14435,36 @@ namespace FreeSWITCH.Native { using System; using System.Runtime.InteropServices; +public class SWIGTYPE_p_SWITCH_DECLARE_CLASS { + private HandleRef swigCPtr; + + internal SWIGTYPE_p_SWITCH_DECLARE_CLASS(IntPtr cPtr, bool futureUse) { + swigCPtr = new HandleRef(this, cPtr); + } + + protected SWIGTYPE_p_SWITCH_DECLARE_CLASS() { + swigCPtr = new HandleRef(null, IntPtr.Zero); + } + + internal static HandleRef getCPtr(SWIGTYPE_p_SWITCH_DECLARE_CLASS obj) { + return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; + } +} + +} +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +namespace FreeSWITCH.Native { + +using System; +using System.Runtime.InteropServices; + public class SWIGTYPE_p_switch_event_node { private HandleRef swigCPtr; @@ -23352,7 +23412,8 @@ public enum switch_say_type_t { SST_POSTAL_ADDRESS, SST_ACCOUNT_NUMBER, SST_NAME_SPELLED, - SST_NAME_PHONETIC + SST_NAME_PHONETIC, + SST_SHORT_DATE_TIME } }