FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kNode_SetVariable ( kNode  node,
const kChar name,
kObject  variable 
)

Sets the value of a remote variable.

The variable object passed to this function becomes a shared object. Accordingly, if the variable object does not provide thread-safe access, then it should typically be treated as read-only thereafter. The caller retains ownership of the original variable reference and should use kObject_Dispose to free the variable object when it is no longer needed.

If a variable with the specified name already exists, the existing variable object will be disposed and replaced with the new variable object.

Parameters
nodeNode object.
nameVariable name.
variableVariable object (cannot be null).
Returns
Operation status.