[vlc-devel] Proper way to call var_SetInteger
ptrtap at yahoo.com
Wed Mar 28 22:36:54 CEST 2012
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.
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
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:
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.
vlc-devel mailing list
To unsubscribe or modify your subscription options:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vlc-devel