This is version 1.
It is not the current version, and thus it cannot be edited.
[Back to current version]
[Restore this version]
General Callback Message Concept
A callback message has the form
typedef struct {
char *class;
/* ... message data ... */
} <message class>;
where class must be the first element and point to a static variable.
Example:
static char *setCallbackClass="set callback";
typedef struct {
char *class;
SConnection *pCon;
Hdb *node;
ValueStruct *value;
} SetCallbackMsg;
...
/* calling the callback */
{
SetCallbackMsg setMsg={setCallbackClass};
setMsg.pCon = pCon;
setMsg.node = node;
setMsg.value = value;
CallCallback(callbacklist, &setMsg);
}
This particular version was published on 29-Feb-2008 10:08:21 UTC by MarkusZolliker.
|