CallbackMessage

Search SINQ Wiki:
SINQ LIN

SINQ Wiki
- Main Page
- Search SINQ Wiki
- Sample Environment
- Probenumg. Intern
- Troubleshooting SICS

This Page
- Page Info
- Printer Friendly

Referenced by
...nobody

Wiki Info
- Unused pages
- Undefined pages
- RecentChanges
- Page Index
- System Info
- JSPWiki Docu
- SandBox
- OneMinuteWiki
- Create a New Page




JSPWiki v2.0.52


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.