[vlc-devel] [PATCH 2/7] objects: add vlc_object_set_module
Rémi Denis-Courmont
remi at remlab.net
Tue May 28 10:48:23 CEST 2019
Hi,
To get the name of a loaded module call module_get_name() on the module pointer. To get the name of your own module, use MODULE_STRING. To get the name of a module used by somebody else's object, use vlc_object_get_name() but that's intrinsically racy and unreliable.
Le 28 mai 2019 11:24:11 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>
>On Tue, May 28, 2019, at 10:03, Rémi Denis-Courmont wrote:
>> The "feature"(s) of getting the name of a module and getting the
>module
>> of an object are still there. No news here.
>
>How do you get the module of an object ? Did you see 7/7 ?
>
>>
>> This patchset is removing one of the two ways to get there though.
>>
>> Le 28 mai 2019 09:39:22 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a
>écrit :
>> >
>> >On Mon, May 27, 2019, at 18:41, Rémi Denis-Courmont wrote:
>> >> Le maanantaina 27. toukokuuta 2019, 19.15.56 EEST Thomas Guillem a
>> >écrit :
>> >> > I mean I can store the module name instead of the module.
>> >>
>> >> We already store the module name in the object.
>> >>
>> >> Leaving aside that it's a racy ugly hack, it's already there
>without
>> >needing
>> >> any changes.
>> >
>> >It's just a hack that I try to put back in order to restore a
>feature.
>> >No news here.
>> >
>> >>
>> >> --
>> >> 雷米‧德尼-库尔蒙
>> >> http://www.remlab.net/
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> 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
>>
>> --
>> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez
>excuser
>> ma brièveté.
>> _______________________________________________
>> 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
--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190528/380acce3/attachment.html>
More information about the vlc-devel
mailing list