[vlc-devel] [PATCH 1/7] Add mDNS Services Advertisement submodule (stub)
Roland Bewick
roland.bewick at gmail.com
Thu Jul 25 04:36:03 CEST 2019
On 24/07/2019 11:05 PM, Alexandre Janniaux wrote:
> Hi,
>
> I don't really see why you have to make a stub before the libvlc patch.
> Maybe this could be simplified with first the vlccore patches to have
> advertisement modules, then libvlc/vlc integration, and finally the
> microdns implementation splitted like you did ?
Yes - I can do this.
Thanks,
Roland
>
> Greats,
>
> --
> Alexandre Janniaux
> VideoLabs
>
> On Wed, Jul 24, 2019 at 10:43:44PM +0700, Roland Bewick wrote:
>> ---
>> modules/services_discovery/microdns.c | 23 +++++++++++++++++++++++
>> 1 file changed, 23 insertions(+)
>>
>> diff --git a/modules/services_discovery/microdns.c b/modules/services_discovery/microdns.c
>> index ad0d2691f7..e9ff0c6380 100644
>> --- a/modules/services_discovery/microdns.c
>> +++ b/modules/services_discovery/microdns.c
>> @@ -40,6 +40,8 @@ static int OpenSD( vlc_object_t * );
>> static void CloseSD( vlc_object_t * );
>> static int OpenRD( vlc_object_t * );
>> static void CloseRD( vlc_object_t * );
>> +static int OpenSA( vlc_object_t * );
>> +static void CloseSA( vlc_object_t * );
>>
>> VLC_SD_PROBE_HELPER( "microdns", N_("mDNS Network Discovery"), SD_CAT_LAN )
>> VLC_RD_PROBE_HELPER( "microdns_renderer", "mDNS renderer Discovery" )
>> @@ -69,6 +71,14 @@ vlc_module_begin()
>> set_callbacks( OpenRD, CloseRD )
>> add_shortcut( "mdns_renderer", "microdns_renderer" )
>> VLC_RD_PROBE_SUBMODULE
>> + add_submodule() \
>> + set_description( N_( "mDNS Services Advertisement" ) )
>> + set_category( CAT_ADVANCED )
>> + set_subcategory( SUBCAT_ADVANCED_NETWORK )
>> + set_capability( "services_advertisement", 0 )
>> + set_callbacks( OpenSA, CloseSA )
>> + add_shortcut( "mdns", "microdns" )
>> + VLC_RD_PROBE_SUBMODULE
>> vlc_module_end ()
>>
>> static const struct
>> @@ -673,3 +683,16 @@ CloseRD( vlc_object_t *p_this )
>>
>> CleanCommon( p_sys );
>> }
>> +
>> +static int
>> +OpenSA( vlc_object_t *p_obj )
>> +{
>> + msg_Dbg(p_obj, "TODO: Open service advertisement module");
>> + return VLC_SUCCESS;
>> +}
>> +
>> +static void
>> +CloseSA( vlc_object_t *p_this )
>> +{
>> + msg_Dbg(p_this, "TODO: Close service advertisement module");
>> +}
>> \ No newline at end of file
>> --
>> 2.11.0
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list