vlc_modules.h File Reference

This file defines functions for modules in vlc. More...

Include dependency graph for vlc_modules.h:

Go to the source code of this file.

Defines

#define module_need(a, b, c, d)   __module_need(VLC_OBJECT(a),b,c,d)
#define module_unneed(a, b)   __module_unneed(VLC_OBJECT(a),b)
#define module_GetLongName(m)   module_get_name( m, true )
#define module_get_main(a)   module_get_main()

Functions

module_t__module_need (vlc_object_t *, const char *, const char *, bool)
 module Need
void __module_unneed (vlc_object_t *, module_t *)
 Module unneed.
bool module_exists (const char *)
 Tell if a module exists and release it in thic case.
module_tmodule_find (const char *)
 Get a pointer to a module_t given it's name.
module_config_tmodule_config_get (const module_t *, unsigned *)
void module_config_free (module_config_t *)
 Release the configuration.
module_tmodule_hold (module_t *module)
void module_release (module_t *module)
void module_list_free (module_t **)
 Frees the flat list of VLC modules.
module_t ** module_list_get (size_t *n)
 Gets the flat list of VLC modules.
bool module_provides (const module_t *m, const char *cap)
 Checks whether a module implements a capability.
const char * module_get_object (const module_t *m)
 Get the internal name of a module.
const char * module_get_name (const module_t *m, bool long_name)
 Get the human-friendly name of a module.
const char * module_get_help (const module_t *m)
 Get the help for a module.
const char * module_get_capability (const module_t *m)
 Get the capability for a module.
int module_get_score (const module_t *m)
 Get the score for a module.
static module_tmodule_get_main (void)
static bool module_is_main (const module_t *p_module)


Detailed Description

This file defines functions for modules in vlc.


Define Documentation

#define module_get_main (  )     module_get_main()

#define module_GetLongName (  )     module_get_name( m, true )

#define module_need ( a,
b,
c,
 )     __module_need(VLC_OBJECT(a),b,c,d)

#define module_unneed ( a,
 )     __module_unneed(VLC_OBJECT(a),b)


Function Documentation

module_t* __module_need ( vlc_object_t p_this,
const char *  psz_capability,
const char *  psz_name,
bool  b_strict 
)

void __module_unneed ( vlc_object_t p_this,
module_t p_module 
)

Module unneed.

This function must be called by the thread that called module_need, to decrease the reference count and allow for hiding of modules.

Parameters:
p_this vlc object structure
p_module the module structure
Returns:
nothing

References module_release(), msg_Dbg, module_t::pf_deactivate, and module_t::psz_object_name.

void module_config_free ( module_config_t config  ) 

Release the configuration.

Parameters:
the configuration
Returns:
nothing

Referenced by ModuleListConfigControl::initWithItem:withView:, PrefsTree::PrefsTree(), and PrefsTreeCtrl::PrefsTreeCtrl().

module_config_t* module_config_get ( const module_t ,
unsigned *   
)

bool module_exists ( const char *  psz_name  ) 

Tell if a module exists and release it in thic case.

Parameters:
psz_name th name of the module
Returns:
TRUE if the module exists

References module_find(), and module_release().

Referenced by aout_InputNew(), SPrefsPanel::apply(), CaptureOpenPanel::initialize(), libvlc_audio_output_set(), OpenDecoder(), ParseImageAttachments(), VLCSimplePrefs::resetControls, VLCSimplePrefs::saveChangedSettings, VLCSimplePrefs::showFontPicker:, and SPrefsPanel::SPrefsPanel().

module_t* module_find ( const char *  psz_name  ) 

Get a pointer to a module_t given it's name.

Parameters:
psz_name the name of the module
Returns:
a pointer to the module or NULL in case of a failure

References i, module_hold(), module_list_free(), module_list_get(), and module_t::psz_object_name.

Referenced by AdvPrefsPanel::AdvPrefsPanel(), module_exists(), module_get_main(), and vout_EnableFilter().

const char* module_get_capability ( const module_t m  ) 

Get the capability for a module.

Parameters:
m the module return the capability

References module_t::psz_capability.

const char* module_get_help ( const module_t m  ) 

Get the help for a module.

Parameters:
m the module
Returns:
the help

References module_t::psz_help.

Referenced by AdvPrefsPanel::AdvPrefsPanel().

static module_t* module_get_main ( void   )  [inline, static]

References module_find().

const char* module_get_name ( const module_t m,
bool  long_name 
)

Get the human-friendly name of a module.

Parameters:
m the module
long_name TRUE to have the long name of the module
Returns:
the short or long name of the module

References module_t::psz_longname, module_t::psz_object_name, and module_t::psz_shortname.

Referenced by filter_chain_AppendFilterInternal(), libvlc_audio_output_list_get(), module_GetModulesNamesForCapability(), mvar_ObjectSetNew(), playlist_ServicesDiscoveryAdd(), PrefsTree::PrefsTree(), PrefsTreeCtrl::PrefsTreeCtrl(), and services_discovery_GetLocalizedName().

const char* module_get_object ( const module_t m  ) 

int module_get_score ( const module_t m  ) 

Get the score for a module.

Parameters:
m the module return the score for the capability

References module_t::i_score.

module_t* module_hold ( module_t module  ) 

static bool module_is_main ( const module_t p_module  )  [inline, static]

void module_list_free ( module_t **  list  ) 

module_t** module_list_get ( size_t *  n  ) 

bool module_provides ( const module_t m,
const char *  cap 
)

Checks whether a module implements a capability.

Parameters:
m the module
cap the capability to check
Returns:
TRUE if the module have the capability

References module_t::psz_capability.

Referenced by __module_need(), libvlc_audio_output_list_get(), ModuleConfigControl::ModuleConfigControl, mvar_ObjectSetNew(), and vout_EnableFilter().

void module_release ( module_t module  ) 


Generated on Sat Nov 21 08:05:26 2009 for VLC by  doxygen 1.5.6