add our own module load code (LBAPR-1)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10272 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-11-06 17:29:50 +00:00
parent 837b2c9bed
commit b17ebda4df
5 changed files with 69 additions and 42 deletions
+1
View File
@@ -98,6 +98,7 @@
#include "switch_apr.h"
#include "switch_core_db.h"
#include "switch_dso.h"
#include "switch_regex.h"
#include "switch_core.h"
#include "switch_loadable_module.h"
+4 -6
View File
@@ -21,21 +21,19 @@
#ifndef _SWITCH_DSO_H
#define _SWITCH_DSO_H
typedef void (*switch_func_ptr_t) (void);
typedef int (*switch_dso_func_t) (void);
#ifdef WIN32
typedef HINSTANCE switch_dso_lib_t;
#else
typedef void * switch_dso_lib_t;
#endif
#ifdef WIN32
typedef FARPROC switch_dso_func_t;
#else
typedef void * switch_dso_func_t;
#endif
typedef void * switch_dso_data_t;
void switch_dso_destroy(switch_dso_lib_t *lib);
switch_dso_lib_t switch_dso_open(const char *path, int global, char **err);
switch_dso_func_t switch_dso_func_sym(switch_dso_lib_t lib, const char *sym, char **err);
void *switch_dso_data_sym(switch_dso_lib_t lib, const char *sym, char **err);
#endif