00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #define module_need(a,b,c,d) __module_need(VLC_OBJECT(a),b,c,d)
00034 VLC_EXPORT( module_t *, __module_need, ( vlc_object_t *, const char *, const char *, bool ) );
00035 #define module_unneed(a,b) __module_unneed(VLC_OBJECT(a),b)
00036 VLC_EXPORT( void, __module_unneed, ( vlc_object_t *, module_t * ) );
00037 VLC_EXPORT( bool, module_exists, (const char *) );
00038 VLC_EXPORT( module_t *, module_find, (const char *) );
00039
00040 VLC_EXPORT( module_config_t *, module_config_get, ( const module_t *, unsigned * ) );
00041 VLC_EXPORT( void, module_config_free, ( module_config_t * ) );
00042
00043 VLC_EXPORT( module_t *, module_hold, (module_t *module) );
00044 VLC_EXPORT( void, module_release, (module_t *module) );
00045 VLC_EXPORT( void, module_list_free, (module_t **) );
00046 VLC_EXPORT( module_t **, module_list_get, (size_t *n) );
00047
00048 VLC_EXPORT( bool, module_provides, ( const module_t *m, const char *cap ) );
00049 VLC_EXPORT( const char *, module_get_object, ( const module_t *m ) );
00050 VLC_EXPORT( const char *, module_get_name, ( const module_t *m, bool long_name ) );
00051 #define module_GetLongName( m ) module_get_name( m, true )
00052 VLC_EXPORT( const char *, module_get_help, ( const module_t *m ) );
00053 VLC_EXPORT( const char *, module_get_capability, ( const module_t *m ) );
00054 VLC_EXPORT( int, module_get_score, ( const module_t *m ) );
00055
00056 static inline module_t *module_get_main (void)
00057 {
00058 return module_find ("main");
00059 }
00060 #define module_get_main(a) module_get_main()
00061
00062 static inline bool module_is_main( const module_t * p_module )
00063 {
00064 return !strcmp( module_get_object( p_module ), "main" );
00065 }