This function returns the type of the specified node.
CciSize cciGetNodeType (int* returnCode,
CciNode* node,
CciChar* value,
CciSize length);
The provided buffer was not large enough to hold the value of node's type.
void myPropagatedMessageCallback(
CciMessage* message,
CciMessage* localEnvironment,
CciMessage* exceptionList,
CciMessage* environment,
CciConnection* connection){
int rc = CCI_SUCCESS;
CciNode* sourceNode = cciGetSourceNode(&rc,
connection);
/*you should now check the rc for unexpected values*/
CciChar sourceNodeType[initialStringBufferLength];
sourceNodeTypeLength = cciGetNodeType(&rc,
sourceNode,
sourceNodeType,
initialStringBufferLength);
/*you should now check the rc for unexpected values*/
/*if rc is CCI_BUFFER_TOO_SMALL then you should resize and retry*/