Hacker Guide/Variables

From VideoLAN Wiki
Revision as of 12:37, 21 March 2011 by Sebastien (talk | contribs) (Created page with "== Introduction == Vlc have a very powerful "object variable" infrastructure useful for many things. == Usage == var_Get will get the value if the variable exist (error ove…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Vlc have a very powerful "object variable" infrastructure useful for many things.

Usage

var_Get will get the value if the variable exist (error overwise).

var_Inherit will get the default value or the one setted by the parent object.

var_CreateGet will create the variable and the get the default value if the variable wasn't already created. If the varible does exist before the call it will get the current value (and increment the refcount).

A variable must be created if you want to add a callback or change the value (with var_Set) of a variable