]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add zap_dso abstraction
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 27 Aug 2008 17:57:44 +0000 (17:57 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 27 Aug 2008 17:57:44 +0000 (17:57 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@515 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/Makefile.in
libs/freetdm/src/include/zap_dso.h
libs/freetdm/src/zap_dso.c

index 03454e667791d774de9e8b8033d3ab9bb384af9e..6c3bb534e5ff9ccfaf29c1d8b22e2be4fb6f7254 100644 (file)
@@ -46,6 +46,7 @@ $(SRC)/libteletone_detect.c \
 $(SRC)/libteletone_generate.c \
 $(SRC)/zap_buffer.c \
 $(SRC)/zap_threadmutex.c \
+$(SRC)/zap_dso.c \
 $(SRC)/isdn/EuroISDNStateNT.c \
 $(SRC)/isdn/EuroISDNStateTE.c \
 $(SRC)/isdn/mfifo.c \
@@ -86,6 +87,7 @@ $(SRC)/libteletone_detect.o \
 $(SRC)/libteletone_generate.o \
 $(SRC)/zap_buffer.o \
 $(SRC)/zap_threadmutex.o \
+$(SRC)/zap_dso.o \
 $(SRC)/isdn/EuroISDNStateNT.o \
 $(SRC)/isdn/EuroISDNStateTE.o \
 $(SRC)/isdn/mfifo.o \
@@ -129,6 +131,7 @@ $(SRC)/include/zap_config.h \
 $(SRC)/include/zap_isdn.h \
 $(SRC)/include/zap_skel.h \
 $(SRC)/include/zap_threadmutex.h \
+$(SRC)/include/zap_dso.h \
 $(SRC)/include/zap_types.h \
 $(SRC)/include/zap_wanpipe.h \
 $(SRC)/include/zap_ss7_boost.h \
index e4337e64db5c0fdbed70e1a8fc17f4bd1f1cca4c..2c7be2b4be6fc4850dc80a43432c457749c4ec91 100644 (file)
@@ -1,25 +1,25 @@
-/* \r
- * Cross Platform dso/dll load abstraction\r
- * Copyright(C) 2008 Michael Jerris\r
- *\r
- * You may opt to use, copy, modify, merge, publish, distribute and/or sell\r
- * copies of the Software, and permit persons to whom the Software is\r
- * furnished to do so.\r
- *\r
- * This work is provided under this license on an "as is" basis, without warranty of any kind,\r
- * either expressed or implied, including, without limitation, warranties that the covered code\r
- * is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire\r
- * risk as to the quality and performance of the covered code is with you. Should any covered\r
- * code prove defective in any respect, you (not the initial developer or any other contributor)\r
- * assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty\r
- * constitutes an essential part of this license. No use of any covered code is authorized hereunder\r
- * except under this disclaimer. \r
- *\r
- */\r
-\r
-\r
-#ifndef _ZAP_DSO_H\r
-#define _ZAP_DSO_H\r
+/* 
+ * Cross Platform dso/dll load abstraction
+ * Copyright(C) 2008 Michael Jerris
+ *
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
+ * copies of the Software, and permit persons to whom the Software is
+ * furnished to do so.
+ *
+ * This work is provided under this license on an "as is" basis, without warranty of any kind,
+ * either expressed or implied, including, without limitation, warranties that the covered code
+ * is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire
+ * risk as to the quality and performance of the covered code is with you. Should any covered
+ * code prove defective in any respect, you (not the initial developer or any other contributor)
+ * assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty
+ * constitutes an essential part of this license. No use of any covered code is authorized hereunder
+ * except under this disclaimer. 
+ *
+ */
+
+
+#ifndef _ZAP_DSO_H
+#define _ZAP_DSO_H
 
 typedef void (*zap_func_ptr_t) (void);
 typedef void * zap_dso_lib_t;
@@ -29,16 +29,16 @@ zap_dso_lib_t zap_dso_open(const char *path, const char **err);
 zap_func_ptr_t zap_dso_func_sym(zap_dso_lib_t lib, const char *sym, const char **err);
 
 
-#endif\r
-\r
-/* For Emacs:\r
- * Local Variables:\r
- * mode:c\r
- * indent-tabs-mode:t\r
- * tab-width:4\r
- * c-basic-offset:4\r
- * End:\r
- * For VIM:\r
- * vim:set softtabstop=4 shiftwidth=4 tabstop=4\r
- */\r
-\r
+#endif
+
+/* For Emacs:
+ * Local Variables:
+ * mode:c
+ * indent-tabs-mode:t
+ * tab-width:4
+ * c-basic-offset:4
+ * End:
+ * For VIM:
+ * vim:set softtabstop=4 shiftwidth=4 tabstop=4
+ */
+
index cbcc5914c890f38de3cc066560e85f2132d0678f..aceaa5f5e5aa191253385435d4cbbd28153082ce 100644 (file)
@@ -1,22 +1,25 @@
-/* \r
- * Cross Platform dso/dll load abstraction\r
- * Copyright(C) 2008 Michael Jerris\r
- *\r
- * You may opt to use, copy, modify, merge, publish, distribute and/or sell\r
- * copies of the Software, and permit persons to whom the Software is\r
- * furnished to do so.\r
- *\r
- * This work is provided under this license on an "as is" basis, without warranty of any kind,\r
- * either expressed or implied, including, without limitation, warranties that the covered code\r
- * is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire\r
- * risk as to the quality and performance of the covered code is with you. Should any covered\r
- * code prove defective in any respect, you (not the initial developer or any other contributor)\r
- * assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty\r
- * constitutes an essential part of this license. No use of any covered code is authorized hereunder\r
- * except under this disclaimer. \r
- *\r
- */\r
+/* 
+ * Cross Platform dso/dll load abstraction
+ * Copyright(C) 2008 Michael Jerris
+ *
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
+ * copies of the Software, and permit persons to whom the Software is
+ * furnished to do so.
+ *
+ * This work is provided under this license on an "as is" basis, without warranty of any kind,
+ * either expressed or implied, including, without limitation, warranties that the covered code
+ * is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire
+ * risk as to the quality and performance of the covered code is with you. Should any covered
+ * code prove defective in any respect, you (not the initial developer or any other contributor)
+ * assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty
+ * constitutes an essential part of this license. No use of any covered code is authorized hereunder
+ * except under this disclaimer. 
+ *
+ */
 
+#include "zap_dso.h"
+#include <stdlib.h>
+#include <string.h>
 
 /*
 ** {========================================================================
@@ -27,6 +30,7 @@
 ** =========================================================================
 */
 
+
 #include <dlfcn.h>
 
 void zap_dso_destroy(zap_dso_lib_t *lib) {
@@ -53,14 +57,14 @@ zap_func_ptr_t zap_dso_func_sym(zap_dso_lib_t lib, const char *sym, const char *
 }
 
 /* }====================================================== */
-\r
-/* For Emacs:\r
- * Local Variables:\r
- * mode:c\r
- * indent-tabs-mode:t\r
- * tab-width:4\r
- * c-basic-offset:4\r
- * End:\r
- * For VIM:\r
- * vim:set softtabstop=4 shiftwidth=4 tabstop=4\r
- */\r
+
+/* For Emacs:
+ * Local Variables:
+ * mode:c
+ * indent-tabs-mode:t
+ * tab-width:4
+ * c-basic-offset:4
+ * End:
+ * For VIM:
+ * vim:set softtabstop=4 shiftwidth=4 tabstop=4
+ */