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 VLC_EXPORT( module_t *, module_need, ( vlc_object_t *, const char *, const char *, bool ) );
00034 #define module_need(a,b,c,d) module_need(VLC_OBJECT(a),b,c,d)
00035 VLC_EXPORT( void, module_unneed, ( vlc_object_t *, module_t * ) );
00036 #define module_unneed(a,b) module_unneed(VLC_OBJECT(a),b)
00037 VLC_EXPORT( bool, module_exists, (const char *) );
00038 VLC_EXPORT( module_t *, module_find, (const char *) );
00039
00040 int module_start(vlc_object_t *, module_t *);
00041 #define module_start(o, m) module_start(VLC_OBJECT(o),m)
00042 void module_stop(vlc_object_t *, module_t *);
00043 #define module_stop(o, m) module_stop(VLC_OBJECT(o),m)
00044
00045 VLC_EXPORT( module_config_t *, module_config_get, ( const module_t *, unsigned * ) );
00046 VLC_EXPORT( void, module_config_free, ( module_config_t * ) );
00047
00048 VLC_EXPORT( module_t *, module_hold, (module_t *module) );
00049 VLC_EXPORT( void, module_release, (module_t *module) );
00050 VLC_EXPORT( void, module_list_free, (module_t **) );
00051 VLC_EXPORT( module_t **, module_list_get, (size_t *n) );
00052
00053 VLC_EXPORT( bool, module_provides, ( const module_t *m, const char *cap ) );
00054 VLC_EXPORT( const char *, module_get_object, ( const module_t *m ) );
00055 VLC_EXPORT( const char *, module_get_name, ( const module_t *m, bool long_name ) );
00056 #define module_GetLongName( m ) module_get_name( m, true )
00057 VLC_EXPORT( const char *, module_get_help, ( const module_t *m ) );
00058 VLC_EXPORT( const char *, module_get_capability, ( const module_t *m ) );
00059 VLC_EXPORT( int, module_get_score, ( const module_t *m ) );
00060 VLC_EXPORT( const char *, module_gettext, ( const module_t *, const char * ) );
00061
00062 static inline module_t *module_get_main (void)
00063 {
00064 return module_find ("main");
00065 }
00066 #define module_get_main(a) module_get_main()
00067
00068 static inline bool module_is_main( const module_t * p_module )
00069 {
00070 return !strcmp( module_get_object( p_module ), "main" );
00071 }