Commit 4f3e48ab authored by Marvin Scholz's avatar Marvin Scholz Committed by Felix Paul Kühne

macosx: Fix missing renderer discovery types

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 4fcfacad
......@@ -37,7 +37,7 @@
NSMutableArray<VLCRendererDiscovery*> *renderer_discoveries;
intf_thread_t *p_intf;
vlc_renderer_discovery *p_rd;
vlc_renderer_discovery_t *p_rd;
}
@end
......
/*****************************************************************************
* VLCRendererDiscovery.h: Wrapper class for vlc_renderer_discovery
* VLCRendererDiscovery.h: Wrapper class for vlc_renderer_discovery_t
*****************************************************************************
* Copyright (C) 2016 VLC authors and VideoLAN
* $Id$
......@@ -29,7 +29,7 @@
/**
\c VLCRendererDiscovery is a simple wrapper class for libvlc’s
\c vlc_renderer_discovery. It's initialized with the renderer name and
\c vlc_renderer_discovery_t. It's initialized with the renderer name and
manages the underlying renderer discovery.
*/
@interface VLCRendererDiscovery : NSObject
......@@ -69,7 +69,7 @@
\param longname Renderer longname as C string
\returns Initialized class that already created the underlying
\c vlc_renderer_discovery structure or nil on failure.
\c vlc_renderer_discovery_t structure or nil on failure.
*/
- (instancetype)initWithName:(const char*)name andLongname:(const char*)longname;
......
/*****************************************************************************
* VLCRendererDiscovery.m: Wrapper class for vlc_renderer_discovery
* VLCRendererDiscovery.m: Wrapper class for vlc_renderer_discovery_t
*****************************************************************************
* Copyright (C) 2016 VLC authors and VideoLAN
* $Id$
......@@ -30,8 +30,8 @@
@interface VLCRendererDiscovery ()
{
intf_thread_t *p_intf;
vlc_renderer_discovery *p_rd;
intf_thread_t *p_intf;
vlc_renderer_discovery_t *p_rd;
}
- (void)handleEvent:(const vlc_event_t *)event;
......@@ -120,7 +120,7 @@ static void renderer_event_received(const vlc_event_t *p_event, void *user_data)
- (void)handleEvent:(const vlc_event_t *)event
{
if (event->type == vlc_RendererDiscoveryItemAdded) {
vlc_renderer_item *base_item = event->u.renderer_discovery_item_added.p_new_item;
vlc_renderer_item_t *base_item = event->u.renderer_discovery_item_added.p_new_item;
VLCRendererItem *item = [[VLCRendererItem alloc] initWithRendererItem:base_item];
[_rendererItems addObject:item];
if (_delegate)
......@@ -128,7 +128,7 @@ static void renderer_event_received(const vlc_event_t *p_event, void *user_data)
return;
}
if (event->type == vlc_RendererDiscoveryItemRemoved) {
vlc_renderer_item *base_item = event->u.renderer_discovery_item_removed.p_item;
vlc_renderer_item_t *base_item = event->u.renderer_discovery_item_removed.p_item;
VLCRendererItem *result_item = nil;
for (VLCRendererItem *item in _rendererItems) {
......
/*****************************************************************************
* VLCRendererItem.h: Wrapper class for vlc_renderer_item
* VLCRendererItem.h: Wrapper class for vlc_renderer_item_t
*****************************************************************************
* Copyright (C) 2016 VLC authors and VideoLAN
* $Id$
......@@ -28,21 +28,21 @@
/**
\c VLCRendererItem is a simple wrapper class for libvlc’s
\c vlc_renderer_item. It's initialized with the renderer item and
\c vlc_renderer_item_t. It's initialized with the renderer item and
manages it's lifetime.
*/
@interface VLCRendererItem : NSObject
/**
Initialize the object with a renderer item, typically received from
a \c vlc_renderer_discovery event.
a \c vlc_renderer_discovery_t event.
*/
- (instancetype)initWithRendererItem:(vlc_renderer_item*)item;
- (instancetype)initWithRendererItem:(vlc_renderer_item_t*)item;
/**
The underlying \c vlc_renderer_item item
The underlying \c vlc_renderer_item_t item
*/
@property (readonly) vlc_renderer_item* rendererItem;
@property (readonly) vlc_renderer_item_t* rendererItem;
/**
The name of the renderer item
......
/*****************************************************************************
* VLCRendererItem.m: Wrapper class for vlc_renderer_item
* VLCRendererItem.m: Wrapper class for vlc_renderer_item_t
*****************************************************************************
* Copyright (C) 2016 VLC authors and VideoLAN
* $Id$
......@@ -29,7 +29,7 @@
@implementation VLCRendererItem
- (instancetype)initWithRendererItem:(vlc_renderer_item*)item
- (instancetype)initWithRendererItem:(vlc_renderer_item_t*)item
{
self = [super init];
if (self) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment