- Refactored hdb callbacks

SKIPPED:
	psi/julcho.c
This commit is contained in:
koennecke
2008-03-10 11:06:07 +00:00
parent 6b10e0a4e9
commit f512f47b02
14 changed files with 1440 additions and 829 deletions

View File

@@ -18,6 +18,21 @@
#define SICSCBRANGE -609
#define SICSCBBADFIXED -610
#define SICSNOPAR -611
/*======================== SICS Messages ======================================*/
typedef struct {
char *type;
int ID;
}hdbIDMessage, *pHdbIDMessage;
/*------------------------------------------------------------------------------*/
pHdbIDMessage GetKillIDMessage(pHdbMessage message);
pHdbIDMessage GetKillInternalIDMessage(pHdbMessage message);
/*-----------------------------------------------------------------------------*/
typedef struct {
char *type;
void *pPtr;
}hdbPtrMessage, *pHdbPtrMessage;
/*-----------------------------------------------------------------------------*/
pHdbPtrMessage GetKillPtrMessage(pHdbMessage message);
/*======================== data structure for automatic parameter update =======*/
typedef struct {
SConnection *pCon;
@@ -341,6 +356,12 @@ int isSICSHdbRO(pHdb node);
* @return 1 on success, 0 when out of memory.
*/
int InstallSICSNotify(pHdb node, SConnection *pCon, int id, int recurse);
/**
* remove all Callbacks associated with a given conenction
* @param root Where to start removing callbacks
* @param pCon The connection for which to remove callbacks
*/
void RemoveConnectionCallbacks(pHdb root, SConnection *pCon);
/**
* handles the common task of checking for, and processing a SICS parameter.
* @param root The node at which to search for parameters