1 /* -*- c-basic-offset:2; tab-width:2; indent-tabs-mode:nil -*- */ 2 3 #ifndef __BL_DLFCN_H__ 4 #define __BL_DLFCN_H__ 5 6 #include "bl_def.h" 7 8 typedef void *bl_dl_handle_t; 9 10 bl_dl_handle_t bl_dl_open(const char *dirpath, const char *name); 11 12 void bl_dl_close(bl_dl_handle_t handle); 13 14 void *bl_dl_func_symbol(bl_dl_handle_t handle, const char *symbol); 15 16 int bl_dl_is_module(const char *name); 17 18 int bl_dl_close_at_exit(bl_dl_handle_t handle); 19 20 void bl_dl_close_all(void); 21 22 #endif 23