vlc_services_discovery.h
Go to the documentation of this file.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
00028
00029
00030
00031
00032 # ifdef __cplusplus
00033 extern "C" {
00034 # endif
00035
00036
00037
00038
00039
00040 #include <vlc_input.h>
00041 #include <vlc_events.h>
00042
00043 struct services_discovery_t
00044 {
00045 VLC_COMMON_MEMBERS
00046 module_t * p_module;
00047
00048 vlc_event_manager_t event_manager;
00049
00050 services_discovery_sys_t *p_sys;
00051 };
00052
00053
00054
00055
00056
00057
00058
00059 VLC_EXPORT( char **, vlc_sd_GetNames, ( char ***pppsz_longnames ) );
00060
00061
00062 VLC_EXPORT( services_discovery_t *, vlc_sd_Create, ( vlc_object_t * ) );
00063 VLC_EXPORT( bool, vlc_sd_Start, ( services_discovery_t *, const char * ) );
00064 VLC_EXPORT( void, vlc_sd_Stop, ( services_discovery_t * ) );
00065
00066 static inline void vlc_sd_Destroy( services_discovery_t *p_sd )
00067 {
00068 vlc_object_release( VLC_OBJECT(p_sd) );
00069 }
00070
00071 static inline void vlc_sd_StopAndDestroy( services_discovery_t * p_this )
00072 {
00073 vlc_sd_Stop( p_this );
00074 vlc_sd_Destroy( p_this );
00075 }
00076
00077
00078 VLC_EXPORT( char *, services_discovery_GetLocalizedName, ( services_discovery_t * p_this ) );
00079
00080
00081 VLC_EXPORT( vlc_event_manager_t *, services_discovery_EventManager, ( services_discovery_t * p_this ) );
00082
00083
00084
00085
00086 VLC_EXPORT( void, services_discovery_AddItem, ( services_discovery_t * p_this, input_item_t * p_item, const char * psz_category ) );
00087 VLC_EXPORT( void, services_discovery_RemoveItem, ( services_discovery_t * p_this, input_item_t * p_item ) );
00088
00089
00090 # ifdef __cplusplus
00091 }
00092 # endif
00093
00094 #endif