[vlc-devel] Proper way to call var_SetInteger

Peter Tap ptrtap at yahoo.com
Wed Mar 28 22:36:54 CEST 2012


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.

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120328/d9fecede/attachment.html>


More information about the vlc-devel mailing list