VLC  3.0.0-git
Data Structures | Macros | Functions
VLC renderer module
Collaboration diagram for VLC renderer module:

Data Structures

struct  vlc_renderer_discovery_owner
 
struct  vlc_renderer_discovery_t
 

Macros

#define VLC_RD_PROBE_HELPER(name, longname)
 
#define VLC_RD_PROBE_SUBMODULE
 

Functions

static void vlc_rd_add_item (vlc_renderer_discovery_t *p_rd, vlc_renderer_item_t *p_item)
 Add a new renderer item. More...
 
static void vlc_rd_remove_item (vlc_renderer_discovery_t *p_rd, vlc_renderer_item_t *p_item)
 Add a new renderer item. More...
 
int vlc_rd_probe_add (vlc_probe_t *p_probe, const char *psz_name, const char *psz_longname)
 Renderer Discovery proble helpers. More...
 

Detailed Description

Macro Definition Documentation

◆ VLC_RD_PROBE_HELPER

#define VLC_RD_PROBE_HELPER (   name,
  longname 
)
Value:
static int vlc_rd_probe_open(vlc_object_t *obj) \
{ \
return vlc_rd_probe_add((struct vlc_probe_t *)obj, name, longname); \
}
int vlc_rd_probe_add(vlc_probe_t *p_probe, const char *psz_name, const char *psz_longname)
Renderer Discovery proble helpers.
Definition: renderer_discovery.c:185
const char name[16]
Definition: httpd.c:1262
The main vlc_object_t structure.
Definition: vlc_objects.h:40
Definition: vlc_probe.h:40

◆ VLC_RD_PROBE_SUBMODULE

#define VLC_RD_PROBE_SUBMODULE
Value:
set_capability("renderer probe", 100) \
set_callbacks(vlc_rd_probe_open, NULL)
#define add_submodule()
Definition: vlc_plugin.h:273

Function Documentation

◆ vlc_rd_add_item()

static void vlc_rd_add_item ( vlc_renderer_discovery_t p_rd,
vlc_renderer_item_t p_item 
)
inlinestatic

Add a new renderer item.

This will send the vlc_RendererDiscoveryItemAdded event

References vlc_renderer_discovery_owner::item_added, and vlc_renderer_discovery_t::owner.

◆ vlc_rd_probe_add()

int vlc_rd_probe_add ( vlc_probe_t p_probe,
const char *  psz_name,
const char *  psz_longname 
)

Renderer Discovery proble helpers.

< Not enough memory

< Unspecified error

References vlc_rd_probe::psz_longname, vlc_rd_probe::psz_name, strdup(), unlikely, VLC_ENOMEM, vlc_probe_add(), and VLC_PROBE_CONTINUE.

Referenced by vlc_rd_remove_item().

◆ vlc_rd_remove_item()

static void vlc_rd_remove_item ( vlc_renderer_discovery_t p_rd,
vlc_renderer_item_t p_item 
)
inlinestatic

Add a new renderer item.

This will send the vlc_RendererDiscoveryItemRemoved event

References vlc_renderer_discovery_owner::item_removed, vlc_renderer_discovery_t::owner, psz_name, VLC_API, and vlc_rd_probe_add().