- Fixed conflicts in ascon.c
- Supressed superfluous message from fmess - Expanded multicounter to deal with threshold commands nicely - Fixed an an issue with an uninitialized dummy connection in nserver - Many changes to simidex to make it work in a more reliable way. - Added hdbfactory path alias targetpath - Extended frame to deal with sinqhttp HM
This commit is contained in:
14
hipadaba.c
14
hipadaba.c
@@ -931,13 +931,13 @@ int copyHdbValue(hdbValue * source, hdbValue * target)
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static int SendDataMessage(pHdb node, char *type,
|
||||
hdbValue v, void *callData)
|
||||
hdbValue *v, void *callData)
|
||||
{
|
||||
hdbDataMessage dataMes;
|
||||
|
||||
assert(type == set || type == get || type == update);
|
||||
dataMes.type = type;
|
||||
dataMes.v = &v;
|
||||
dataMes.v = v;
|
||||
dataMes.callData = callData;
|
||||
return InvokeCallbackChain(node, (pHdbMessage) & dataMes);
|
||||
}
|
||||
@@ -945,7 +945,7 @@ static int SendDataMessage(pHdb node, char *type,
|
||||
/*----------------------------------------------------------------------------*/
|
||||
int SetHipadabaPar(pHdb node, hdbValue v, void *callData)
|
||||
{
|
||||
return SendDataMessage(node, set, v, callData);
|
||||
return SendDataMessage(node, set, &v, callData);
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
@@ -953,7 +953,7 @@ int UpdateHipadabaPar(pHdb node, hdbValue v, void *callData)
|
||||
{
|
||||
int status;
|
||||
|
||||
status = SendDataMessage(node, update, v, callData);
|
||||
status = SendDataMessage(node, update, &v, callData);
|
||||
if (status == 1) {
|
||||
copyHdbValue(&v, &node->value);
|
||||
}
|
||||
@@ -963,12 +963,12 @@ int UpdateHipadabaPar(pHdb node, hdbValue v, void *callData)
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
int NotifyHipadabaPar(pHdb node, void *callData)
|
||||
{
|
||||
SendDataMessage(node, update, node->value, callData);
|
||||
SendDataMessage(node, update, &node->value, callData);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------------------------*/
|
||||
int GetHipadabaPar(pHdb node, hdbValue * v, void *callData)
|
||||
int GetHipadabaPar(pHdb node, hdbValue *v, void *callData)
|
||||
{
|
||||
int status;
|
||||
|
||||
@@ -976,7 +976,7 @@ int GetHipadabaPar(pHdb node, hdbValue * v, void *callData)
|
||||
v->doNotFree = 0;
|
||||
v->v.text = NULL; /* this sets all pointers in the union to NULL */
|
||||
|
||||
status = SendDataMessage(node, get, *v, callData);
|
||||
status = SendDataMessage(node, get, v, callData);
|
||||
copyHdbValue(&node->value, v);
|
||||
if (status != 1) {
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user