|
NAMEXmtSymbolSetValue(), XmtSymbolGetValue() - set or query the value of a symbol.SYNOPSIS#include <Xmt/Symbols.h>
void XmtSymbolSetValue(XmtSymbol s, XtArgVal value) void XmtSymbolGetValue(XmtSymbol s, XtArgVal *valuep) ARGUMENTSINPUTS
OUTPUTS
DESCRIPTIONXmtSymbolSetValue() sets the value of symbol s to value. Recall that an XtArgVal is the type used by Xt for untyped values passed to XtSetArg(). As when you are setting resources, you should pass the value itself, if it will fit within an XtArgVal, and otherwise, you should pass the address of the value (you rarely have to do this, however, except when you are using a double value.) Also, notice that XmtRBuffer is a special case here-you always pass the address of the buffer, no matter its size.XmtSymbolGetValue() stores the current value of the symbol s at the address specified by value. Note that valuep need not actually be the address of an XtArgVal variable, but must be large enough to store the value of the Symbol-you must know the type of the symbol in order to pass an appropriate val uep. Note that the module that registers a symbol can obtain that symbol's value by reading it directly from the address registered with the symbol-there is no need to read it indirectly with XmtSymbolGetValue(). SEE ALSOChapter 12, Symbols,XmtLookupSymbol(), XmtSymbolAddCallback(), XmtSymbolRemove Callback(), XmtVaRegisterSymbols().
Visit the GSP FreeBSD Man Page Interface. |