<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Anyone?</span></div><div><br><span></span></div><div><span>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.</span></div><div><br><span></span></div><div><span>Regards,</span></div><div><span>Peter<br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Peter Tap <ptrtap@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> Mailing list for VLC media player developers
 <vlc-devel@videolan.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, March 27, 2012 4:09 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [vlc-devel] Proper way to call var_SetInteger<br> </font> </div> <br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv2015607025"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><div>Folks,</div><div><br></div><div>I am trying to understand how to set an integer field from one module to another.</div><div><br></div><div>My first module exposes an integer value:</div><div>   myval = var_CreateGetIntegerCommand(p_obj, "mytest-val");</div><div>   var_AddCallback(p_obj, "mytest-val", MyCallback, p_myData);</div><div><br></div><div><br></div><div>The second module needs to set the value for "mytest-val." I am guessing a call to var_SetInteger is in order:<br></div><div><br></div><div>var_SetInteger(p_obj, ...)</div><div><br></div><div>The problem is, the first parameter to var_SetInteger should be the object associated with the first module. How does one obtain this object?</div><div><br></div><div>Thank you in advance
 for your
 help.</div><div><br></div><div>Regards,</div><div>Peter<br></div><div></div></div></div></div><meta http-equiv="x-dns-prefetch-control" content="on"><br>_______________________________________________<br>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="http://mailman.videolan.org/listinfo/vlc-devel" target="_blank">http://mailman.videolan.org/listinfo/vlc-devel</a><br><br><br> </div> </div>  </div></body></html>