VLC  3.0.21
Functions | Variables
plugin.c File Reference
Include dependency graph for plugin.c:

Functions

static char * GetWindowsError (void)
 
int module_Load (vlc_object_t *p_this, const char *psz_file, module_handle_t *p_handle, bool lazy)
 Load a dynamically linked library using a system dependent method. More...
 
void module_Unload (module_handle_t handle)
 CloseModule: unload a dynamic library. More...
 
void * module_Lookup (module_handle_t handle, const char *psz_function)
 Looks up a symbol from a dynamically loaded library. More...
 

Variables

DWORD LoadLibraryFlags
 

Function Documentation

◆ GetWindowsError()

static char* GetWindowsError ( void  )
static

Referenced by module_Load().

◆ module_Load()

int module_Load ( vlc_object_t p_this,
const char *  psz_file,
module_handle_t p_handle,
bool  lazy 
)

Load a dynamically linked library using a system dependent method.

Parameters
p_thisvlc object
psz_filelibrary file
p_handlethe module handle returned
Returns
0 on success as well as the module handle.
Parameters
p_thisvlc object
pathlibrary file
p_handlethe module handle returned
Returns
0 on success as well as the module handle.

References GetWindowsError(), LoadLibraryFlags, and msg_Warn.

◆ module_Lookup()

void* module_Lookup ( module_handle_t  handle,
const char *  psz_function 
)

Looks up a symbol from a dynamically loaded library.

This function queries a loaded library for a symbol specified in a string, and returns a pointer to it. We don't check for dlerror() or similar functions, since we want a non-NULL symbol anyway.

Parameters
handlehandle to the module
psz_functionfunction name
Returns
NULL on error, or the address of the symbol

◆ module_Unload()

void module_Unload ( module_handle_t  handle)

CloseModule: unload a dynamic library.

This function unloads a previously opened dynamically linked library using a system dependent method. No return value is taken in consideration, since some libraries sometimes refuse to close properly.

Parameters
handlehandle of the library
Returns
nothing

Variable Documentation

◆ LoadLibraryFlags

DWORD LoadLibraryFlags

Referenced by module_Load(), and system_Init().