24 #ifndef VLC_SERVICES_DISCOVERY_H_
25 #define VLC_SERVICES_DISCOVERY_H_
64 services_discovery_sys_t *
p_sys;
123 return p_sd->
pf_control( p_sd, i_control, args );
130 VLC_API
char ** vlc_sd_GetNames(
vlc_object_t *,
char ***,
int ** ) VLC_USED;
131 #define vlc_sd_GetNames(obj, pln, pcat ) \
132 vlc_sd_GetNames(VLC_OBJECT(obj), pln, pcat)
137 VLC_API
void vlc_sd_Stop( services_discovery_t * );
138 VLC_API
void vlc_sd_Destroy( services_discovery_t * );
143 static inline
void vlc_sd_StopAndDestroy( services_discovery_t * p_this )
145 vlc_sd_Stop( p_this );
146 vlc_sd_Destroy( p_this );
165 VLC_API
int vlc_sd_probe_Add(
vlc_probe_t *,
const char *,
const char *,
int category);
167 #define VLC_SD_PROBE_SUBMODULE \
169 set_capability( "services probe", 100 ) \
170 set_callbacks( vlc_sd_probe_Open, NULL )
172 #define VLC_SD_PROBE_HELPER(name, longname, cat) \
173 static int vlc_sd_probe_Open (vlc_object_t *obj) \
175 return vlc_sd_probe_Add ((struct vlc_probe_t *)obj, \
176 name "{longname=\"" longname "\"}", \
services_discovery_category_e
Definition: vlc_services_discovery.h:71
Definition: vlc_services_discovery.h:93
char * psz_icon_url
Definition: vlc_services_discovery.h:103
Definition: vlc_events.h:103
Definition: vlc_services_discovery.h:47
char * psz_url
Definition: vlc_services_discovery.h:104
Definition: vlc_configuration.h:156
Definition: vlc_services_discovery.h:85
char * psz_short_desc
Definition: vlc_services_discovery.h:102
services_discovery_sys_t * p_sys
Definition: vlc_services_discovery.h:64
Definition: vlc_services_discovery.h:74
int i_capabilities
Definition: vlc_services_discovery.h:105
Definition: vlc_services_discovery.h:100
Definition: vlc_services_discovery.h:75
services_discovery_capability_e
Definition: vlc_services_discovery.h:91
char * psz_name
Definition: vlc_services_discovery.h:56
#define VLC_EGENERIC
Definition: vlc_common.h:374
services_discovery_command_e
Definition: vlc_services_discovery.h:82
Definition: vlc_services_discovery.h:73
Definition: vlc_objects.h:42
Definition: vlc_services_discovery.h:84
Definition: vlc_services_discovery.h:76
Definition: vlc_probe.h:39
int(* pf_control)(services_discovery_t *, int, va_list)
Definition: vlc_services_discovery.h:62
config_chain_t * p_cfg
Definition: vlc_services_discovery.h:57
VLC_COMMON_MEMBERS module_t * p_module
Definition: vlc_services_discovery.h:50