[vlc-devel] [PATCH 2/7] objects: add vlc_object_set_module

Thomas Guillem thomas at gllm.fr
Tue May 28 10:56:25 CEST 2019


On Tue, May 28, 2019, at 10:48, Rémi Denis-Courmont wrote:
> 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.

As already said, racy and unreliable is ok for debugging purpose.
As already said, cf. PATCH 7/7: vlc_object_get_name() doesn't work when module are loaded with vlc_module_load().

> 
> 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é. 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190528/803b2360/attachment.html>


More information about the vlc-devel mailing list