[vlc-devel] Proper way to call var_SetInteger

Kaarlo Räihä kaarlo.raiha at gmail.com
Thu Mar 29 07:29:31 CEST 2012


28. maaliskuuta 2012 23.36 Peter Tap <ptrtap at yahoo.com> kirjoitti:

> Anyone?
>
> I know that the UI module is doing this all the time. When you go to
> preferences dialog, any value you set goes through var_SetXXX method. I
> just couldn't figure out how the UI is able to get hold of the right object.
>

AFAIK the settings are global. So you can read/write values from any
module. e.g. live-caching value is read by multiple modules.


>
> Regards,
> Peter
>
>   ------------------------------
> *From:* Peter Tap <ptrtap at yahoo.com>
> *To:* Mailing list for VLC media player developers <vlc-devel at videolan.org>
>
> *Sent:* Tuesday, March 27, 2012 4:09 PM
> *Subject:* [vlc-devel] Proper way to call var_SetInteger
>
> Folks,
>
> I am trying to understand how to set an integer field from one module to
> another.
>
> My first module exposes an integer value:
>    myval = var_CreateGetIntegerCommand(p_obj, "mytest-val");
>    var_AddCallback(p_obj, "mytest-val", MyCallback, p_myData);
>
>
> The second module needs to set the value for "mytest-val." I am guessing a
> call to var_SetInteger is in order:
>
> var_SetInteger(p_obj, ...)
>
> The problem is, the first parameter to var_SetInteger should be the object
> associated with the first module. How does one obtain this object?
>
> Thank you in advance for your help.
>
> Regards,
> Peter
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120329/3eb4dc68/attachment.html>


More information about the vlc-devel mailing list