Add, delete and modify nodes.
More...
|
KvaDbStatus | kvaDbGetFirstNode (KvaDbHnd dh, KvaDbNodeHnd *nh) |
|
KvaDbStatus | kvaDbGetNextNode (KvaDbHnd dh, KvaDbNodeHnd *nh) |
|
KvaDbStatus | kvaDbGetNodeByName (KvaDbHnd dh, const char *node_name, KvaDbNodeHnd *nh) |
|
KvaDbStatus | kvaDbAddNode (KvaDbHnd dh, KvaDbNodeHnd *nh) |
|
KvaDbStatus | kvaDbDeleteNode (KvaDbHnd dh, KvaDbNodeHnd nh) |
|
KvaDbStatus | kvaDbSetNodeName (KvaDbNodeHnd nh, char *buf) |
|
KvaDbStatus | kvaDbGetNodeName (KvaDbNodeHnd nh, char *buf, size_t buflen) |
|
KvaDbStatus | kvaDbSetNodeComment (KvaDbNodeHnd nh, char *buf) |
|
KvaDbStatus | kvaDbGetNodeComment (KvaDbNodeHnd nh, char *buf, size_t buflen) |
|
KvaDbStatus | kvaDbAddReceiveNodeToSignal (KvaDbSignalHnd sh, KvaDbNodeHnd nh) |
|
KvaDbStatus | kvaDbRemoveReceiveNodeFromSignal (KvaDbSignalHnd sh, KvaDbNodeHnd nh) |
|
KvaDbStatus | kvaDbSignalContainsReceiveNode (KvaDbSignalHnd sh, KvaDbNodeHnd nh) |
|
Add, delete and modify nodes.
◆ kvaDbAddNode()
Add a new node to a database.
- Parameters
-
[in] | dh | A database handle |
[out] | nh | A handle to the new node |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbAddReceiveNodeToSignal()
Add a receiving node to a signal.
- Parameters
-
[in] | sh | A signal handle |
[in] | nh | A node handle |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbDeleteNode()
Delete a node from a database.
- Parameters
-
[in] | dh | A database handle |
[in] | nh | A handle to the node that will be deleted |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbGetFirstNode()
◆ kvaDbGetNextNode()
◆ kvaDbGetNodeByName()
Get a node by seaching for the node's name.
- Parameters
-
[in] | dh | A database handle |
[in] | node_name | The buffer that contains the node name to search for |
[out] | nh | A node handle |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbGetNodeComment()
Get the comment for a node as a null-terminated string. A truncated string will be returned if buf is too small and status will be kvaDbOK.
- Parameters
-
[in] | nh | A node handle |
[out] | buf | The buffer that will contain the node comment |
[in] | buflen | The length of the data buffer |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbGetNodeName()
Get the name of a node as a null-terminated string. A truncated string will be returned if buf is too small and status will be kvaDbOK.
- Parameters
-
[in] | nh | A node handle |
[out] | buf | The buffer that will contain the node name |
[in] | buflen | The length of the data buffer |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbRemoveReceiveNodeFromSignal()
Remove a receiving node from a signal.
- Parameters
-
[in] | sh | A signal handle |
[in] | nh | A node handle |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbSetNodeComment()
Set the node comment.
- Parameters
-
[in] | nh | A node handle |
[in] | buf | The buffer that contains the node comment |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
◆ kvaDbSetNodeName()
Set the node name.
- Parameters
-
[in] | nh | A node handle |
[in] | buf | The buffer that contains the node name. |
- Returns
- kvaDbOK (zero) if success
-
kvaDbErr_xxx (negative) if failure
- Note
- Please note that allowed characters in identiers are digits, letters and "_" (underscore).
Identifiers shall also start with a letter or underscore.
◆ kvaDbSignalContainsReceiveNode()
Check if a signal contains a specific receiving node
- Parameters
-
[in] | sh | A signal handle |
[in] | nh | A node handle |
- Returns
- kvaDbOK (zero) if the signal contains the node
-
kvaDbErr_NoNode if the signal doesn't contain the node
-
kvaDbErr_xxx (negative) if failure