21#ifndef VLC_RENDERER_DISCOVERY_H
22#define VLC_RENDERER_DISCOVERY_H 1
40#define VLC_RENDERER_CAN_AUDIO 0x0001
41#define VLC_RENDERER_CAN_VIDEO 0x0002
58 const char *psz_uri,
const char *psz_extra_sout,
59 const char *psz_demux_filter,
const char *psz_icon_uri,
132#define vlc_rd_get_names(a, b, c) \
133 vlc_rd_get_names(VLC_OBJECT(a), b, c)
208 const char *psz_longname);
210#define VLC_RD_PROBE_HELPER(name, longname) \
211static int vlc_rd_probe_open(vlc_object_t *obj) \
213 return vlc_rd_probe_add((struct vlc_probe_t *)obj, name, longname); \
216#define VLC_RD_PROBE_SUBMODULE \
218 set_capability("renderer probe", 100) \
219 set_callback(vlc_rd_probe_open)
#define VLC_USED
Definition fourcc_gen.c:32
#define VLC_API
Definition fourcc_gen.c:31
static void vlc_rd_add_item(vlc_renderer_discovery_t *p_rd, vlc_renderer_item_t *p_item)
Add a new renderer item.
Definition vlc_renderer_discovery.h:187
int vlc_rd_probe_add(vlc_probe_t *p_probe, const char *psz_name, const char *psz_longname)
Renderer Discovery probe helpers.
Definition renderer_discovery.c:186
static void vlc_rd_remove_item(vlc_renderer_discovery_t *p_rd, vlc_renderer_item_t *p_item)
Add a new renderer item.
Definition vlc_renderer_discovery.h:198
void vlc_rd_release(vlc_renderer_discovery_t *p_rd)
Definition renderer_discovery.c:238
#define vlc_rd_get_names(a, b, c)
Definition vlc_renderer_discovery.h:133
vlc_renderer_discovery_t * vlc_rd_new(vlc_object_t *p_obj, const char *psz_name, const struct vlc_renderer_discovery_owner *owner)
Create a new renderer discovery module.
const char * vlc_renderer_item_type(const vlc_renderer_item_t *p_item)
Get the type (not translated) of a renderer item.
Definition renderer_discovery.c:122
int vlc_renderer_item_flags(const vlc_renderer_item_t *p_item)
Get the flags of a renderer item.
Definition renderer_discovery.c:154
const char * vlc_renderer_item_demux_filter(const vlc_renderer_item_t *p_item)
Get the demux filter to use with a renderer item.
Definition renderer_discovery.c:146
vlc_renderer_item_t * vlc_renderer_item_new(const char *psz_type, const char *psz_name, const char *psz_uri, const char *psz_extra_sout, const char *psz_demux_filter, const char *psz_icon_uri, int i_flags)
Create a new renderer item.
Definition renderer_discovery.c:58
const char * vlc_renderer_item_icon_uri(const vlc_renderer_item_t *p_item)
Get the icon uri of a renderer item.
Definition renderer_discovery.c:138
vlc_renderer_item_t * vlc_renderer_item_hold(vlc_renderer_item_t *p_item)
Hold a renderer item, i.e.
Definition renderer_discovery.c:162
const char * vlc_renderer_item_sout(const vlc_renderer_item_t *p_item)
Get the sout command of a renderer item.
Definition renderer_discovery.c:130
const char * vlc_renderer_item_name(const vlc_renderer_item_t *p_item)
Get the human readable name of a renderer item.
Definition renderer_discovery.c:114
void vlc_renderer_item_release(vlc_renderer_item_t *p_item)
Releases a renderer item, i.e.
Definition renderer_discovery.c:171
Definition vlc_configuration.h:320
Internal module descriptor.
Definition modules.h:76
VLC object common members.
Definition vlc_objects.h:53
Definition vlc_probe.h:41
Definition vlc_renderer_discovery.h:161
void * sys
Definition vlc_renderer_discovery.h:162
void(* item_removed)(struct vlc_renderer_discovery_t *, struct vlc_renderer_item_t *)
Definition vlc_renderer_discovery.h:165
void(* item_added)(struct vlc_renderer_discovery_t *, struct vlc_renderer_item_t *)
Definition vlc_renderer_discovery.h:163
Definition vlc_renderer_discovery.h:170
void * p_sys
Definition vlc_renderer_discovery.h:179
char * psz_name
Definition vlc_renderer_discovery.h:176
struct vlc_renderer_discovery_owner owner
Definition vlc_renderer_discovery.h:174
module_t * p_module
Definition vlc_renderer_discovery.h:172
config_chain_t * p_cfg
Definition vlc_renderer_discovery.h:177
struct vlc_object_t obj
Definition vlc_renderer_discovery.h:171
Definition renderer_discovery.c:36
const char * psz_name
Definition text_style.c:33
This file is a collection of common definitions and types.
This file defines functions and structures to run-time probe VLC extensions.