Commit 6146f258 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

sd: remove started and ended events

They had no listeners.
parent 74acdbca
......@@ -124,11 +124,9 @@ typedef enum vlc_event_type_t {
/* Service Discovery event */
vlc_ServicesDiscoveryItemAdded,
vlc_ServicesDiscoveryItemRemoved,
vlc_ServicesDiscoveryStarted=vlc_ServicesDiscoveryItemRemoved+2,
vlc_ServicesDiscoveryEnded,
/* Renderer Discovery events */
vlc_RendererDiscoveryItemAdded,
vlc_RendererDiscoveryItemAdded=vlc_ServicesDiscoveryItemRemoved+4,
vlc_RendererDiscoveryItemRemoved,
/* Addons Manager events */
......@@ -192,14 +190,6 @@ typedef struct vlc_event_t
{
input_item_t * p_item;
} services_discovery_item_removed;
struct vlc_services_discovery_started
{
void * unused;
} services_discovery_started;
struct vlc_services_discovery_ended
{
void * unused;
} services_discovery_ended;
/* Renderer discovery events */
struct vlc_renderer_discovery_item_added
......
......@@ -126,8 +126,6 @@ services_discovery_t *vlc_sd_Create( vlc_object_t *p_super,
vlc_event_manager_init( em, p_sd );
vlc_event_manager_register_event_type(em, vlc_ServicesDiscoveryItemAdded);
vlc_event_manager_register_event_type(em, vlc_ServicesDiscoveryItemRemoved);
vlc_event_manager_register_event_type(em, vlc_ServicesDiscoveryStarted);
vlc_event_manager_register_event_type(em, vlc_ServicesDiscoveryEnded);
vlc_object_set_destructor( p_sd, services_discovery_Destructor );
return p_sd;
......@@ -148,10 +146,6 @@ bool vlc_sd_Start ( services_discovery_t * p_sd )
return false;
}
vlc_event_t event = {
.type = vlc_ServicesDiscoveryStarted
};
vlc_event_send( &p_sd->event_manager, &event );
return true;
}
......@@ -160,12 +154,6 @@ bool vlc_sd_Start ( services_discovery_t * p_sd )
***********************************************************************/
void vlc_sd_Stop ( services_discovery_t * p_sd )
{
vlc_event_t event = {
.type = vlc_ServicesDiscoveryEnded
};
vlc_event_send( &p_sd->event_manager, &event );
module_unneed( p_sd, p_sd->p_module );
p_sd->p_module = NULL;
}
......
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