mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
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:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user