libgpac
Documentation of the core library of GPAC. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
module.h File Reference

plugable module functions. More...

#include <gpac/config_file.h>
+ Include dependency graph for module.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  GF_BaseInterface
 Base Interface. More...
 
struct  GF_InterfaceRegister
 Interface Registry. More...
 

Macros

#define GF_DECL_MODULE_INTERFACE
 common module interface More...
 
#define GF_REGISTER_MODULE_INTERFACE(_ifce, _ifce_type, _ifce_name, _ifce_author)
 module interface registration More...
 
#define GPAC_MODULE_EXPORT
 module interface function export. Modules that can be compiled in libgpac rather than in sharde libraries shall use this macro to declare the 3 exported functions More...
 
#define GPAC_MODULE_STATIC_DECLARATION(__name)
 module interface function export. Modules that can be compiled in libgpac rather than in sharde libraries shall use this macro to declare the 3 exported functions More...
 
#define GF_MODULE_STATIC_DECLARE(_name)   GF_InterfaceRegister *gf_register_module_##_name()
 declare a module for loading More...
 
#define GF_MODULE_LOAD_STATIC(_pm, _name)   gf_module_load_static(_pm,gf_register_module_##_name)
 load a static module given its name More...
 

Typedefs

typedef struct __tag_mod_man GF_ModuleManager
 

Functions

GF_ModuleManagergf_modules_new (const char *directory, GF_Config *cfgFile)
 module manager construtcor More...
 
void gf_modules_del (GF_ModuleManager *pm)
 module manager destructor More...
 
GF_Err gf_module_load_static (GF_ModuleManager *pm, GF_InterfaceRegister *(*register_module)())
 load a static module given its interface function More...
 
u32 gf_modules_refresh (GF_ModuleManager *pm)
 refreshes modules More...
 
u32 gf_modules_get_count (GF_ModuleManager *pm)
 get module count More...
 
const char ** gf_modules_get_module_directories (GF_ModuleManager *pm, u32 *num_dirs)
 get all modules directories More...
 
const char * gf_modules_get_file_name (GF_ModuleManager *pm, u32 index)
 get module file name More...
 
const char * gf_module_get_file_name (GF_BaseInterface *ifce)
 get module file name More...
 
GF_BaseInterfacegf_modules_load_interface (GF_ModuleManager *pm, u32 index, u32 InterfaceFamily)
 loads an interface More...
 
GF_BaseInterfacegf_modules_load_interface_by_name (GF_ModuleManager *pm, const char *mod_name, u32 InterfaceFamily)
 loads an interface by module name More...
 
GF_Err gf_modules_close_interface (GF_BaseInterface *interface_obj)
 interface shutdown More...
 
const char * gf_modules_get_option (GF_BaseInterface *interface_obj, const char *secName, const char *keyName)
 interface option query More...
 
GF_Err gf_modules_set_option (GF_BaseInterface *interface_obj, const char *secName, const char *keyName, const char *keyValue)
 interface option update More...
 
GF_Configgf_modules_get_config (GF_BaseInterface *ifce)
 get config file More...
 

Detailed Description

>