00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef VLC_SERVICES_DISCOVERY_H_
00025 #define VLC_SERVICES_DISCOVERY_H_
00026
00027 # ifdef __cplusplus
00028 extern "C" {
00029 # endif
00030
00031
00032
00033
00034
00035 #include <vlc_input.h>
00036 #include <vlc_events.h>
00037
00038 struct services_discovery_t
00039 {
00040 VLC_COMMON_MEMBERS
00041 char * psz_module;
00042 module_t * p_module;
00043
00044 char * psz_localized_name;
00045 vlc_event_manager_t event_manager;
00046
00047 services_discovery_sys_t *p_sys;
00048 void (*pf_run) ( services_discovery_t *);
00049 };
00050
00051
00052
00053
00054
00055
00056
00057
00058 VLC_EXPORT( char **, __services_discovery_GetServicesNames, ( vlc_object_t * p_super, char ***pppsz_longnames ) );
00059 #define services_discovery_GetServicesNames(a,b) \
00060 __services_discovery_GetServicesNames(VLC_OBJECT(a),b)
00061
00062
00063 VLC_EXPORT( services_discovery_t *, services_discovery_Create, ( vlc_object_t * p_super, const char * psz_service_name ) );
00064 VLC_EXPORT( void, services_discovery_Destroy, ( services_discovery_t * p_this ) );
00065 VLC_EXPORT( int, services_discovery_Start, ( services_discovery_t * p_this ) );
00066 VLC_EXPORT( void, services_discovery_Stop, ( services_discovery_t * p_this ) );
00067
00068
00069 VLC_EXPORT( char *, services_discovery_GetLocalizedName, ( services_discovery_t * p_this ) );
00070
00071
00072 VLC_EXPORT( vlc_event_manager_t *, services_discovery_EventManager, ( services_discovery_t * p_this ) );
00073
00074
00075 VLC_EXPORT( void, services_discovery_SetLocalizedName, ( services_discovery_t * p_this, const char * ) );
00076
00077
00078 VLC_EXPORT( void, services_discovery_AddItem, ( services_discovery_t * p_this, input_item_t * p_item, const char * psz_category ) );
00079 VLC_EXPORT( void, services_discovery_RemoveItem, ( services_discovery_t * p_this, input_item_t * p_item ) );
00080
00081
00082 # ifdef __cplusplus
00083 }
00084 # endif
00085
00086 #endif