1 /* 2 * Cross Platform dso/dll load abstraction 3 * Copyright(C) 2008 Michael Jerris 4 * 5 * You may opt to use, copy, modify, merge, publish, distribute and/or sell 6 * copies of the Software, and permit persons to whom the Software is 7 * furnished to do so. 8 * 9 * This work is provided under this license on an "as is" basis, without warranty of any kind, 10 * either expressed or implied, including, without limitation, warranties that the covered code 11 * is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire 12 * risk as to the quality and performance of the covered code is with you. Should any covered 13 * code prove defective in any respect, you (not the initial developer or any other contributor) 14 * assume the cost of any necessary servicing, repair or correction. This disclaimer of warranty 15 * constitutes an essential part of this license. No use of any covered code is authorized hereunder 16 * except under this disclaimer. 17 * 18 */ 19 20 #include "freetdm.h" 21 22 #ifndef _FTDM_DSO_H 23 #define _FTDM_DSO_H 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 typedef void (*ftdm_func_ptr_t) (void); 30 typedef void * ftdm_dso_lib_t; 31 32 FT_DECLARE(ftdm_status_t) ftdm_dso_destroy(ftdm_dso_lib_t *lib); 33 FT_DECLARE(ftdm_dso_lib_t) ftdm_dso_open(const char *path, char **err); 34 FT_DECLARE(void *) ftdm_dso_func_sym(ftdm_dso_lib_t lib, const char *sym, char **err); 35 FT_DECLARE(char *) ftdm_build_dso_path(const char *name, char *path, ftdm_size_t len); 36 37 38 #ifdef __cplusplus 39 } 40 #endif 41 42 #endif 43 44 /* For Emacs: 45 * Local Variables: 46 * mode:c 47 * indent-tabs-mode:t 48 * tab-width:4 49 * c-basic-offset:4 50 * End: 51 * For VIM: 52 * vim:set softtabstop=4 shiftwidth=4 tabstop=4 53 */ 54