|
NAMEXmtSymbolAddCallback(), XmtSymbolRemoveCallback() - add and remove a procedure to be called when a symbol's value changes.SYNOPSIS#include <Xmt/Symbols.h>
void XmtSymbolAddCallback(XmtSymbol s, XmtSymbolCallbackProc proc, XtPointer client_data) void XmtSymbolRemoveCallback(XmtSymbol s, XmtSymbolCallbackProc proc, XtPointer client_data) typedef void (*XmtSymbolCallbackProc)(XmtSymbol s, XtPointer client_data, XtArgVal value); ARGUMENTSINPUTS
DESCRIPTIONXmtSymbolAddCallback() registers the procedure proc to be invoked with the specified client_data whenever the value of symbol s changes.XmtSymbolRemoveCallback() unregisters the proc/client_data pair for symbol s. This procedure will no longer be called with the specified client_data when the value of s is updated. proc is an XmtSymbolCallbackProc. It will be invoked with three arguments. The first argument to a symbol callback is the XmtSymbol that has had its value changed. The second argument is whatever untyped client_data was registered with the callback procedure, and the third argument, value, is the new value of the symbol. This is either the value itself, or, if the value is too large to fit in an XtArgVal (or if it is of type XmtRBuffer), it is a pointer to the value. SEE ALSOChapter 12, Symbols,XmtLookupSymbol(), XmtSymbolGetValue(), XmtSymbolSetValue(), XmtSymbolSetTypedValue(), XmtVaRegisterSymbols().
Visit the GSP FreeBSD Man Page Interface. |