Lines Matching defs:dataIndex
43 if (node == NULL || node->dataIndex == 0) {
46 ParamNode *param = (ParamNode *)GetTrieNode(workspace, node->dataIndex);
71 if (current->dataIndex == 0) {
74 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, current->dataIndex);
81 uint32_t index = PARAM_HANDLE(workSpace, current->dataIndex);
134 current->dataIndex, current->labelIndex, current->length, current->key);
136 if (current->dataIndex != 0) {
137 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, current->dataIndex);
257 if (node != NULL && node->dataIndex != 0) {
423 static int AddParam(WorkSpace *workSpace, ParamInfos paramInfos, uint32_t *dataIndex)
428 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, node->dataIndex);
434 SaveIndex(&node->dataIndex, offset);
443 if (dataIndex != NULL) {
444 *dataIndex = node->dataIndex;
450 static int UpdateParam(const WorkSpace *workSpace, uint32_t *dataIndex, const char *name, const char *value, int mode)
452 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, *dataIndex);
453 PARAM_CHECK(entry != NULL, return PARAM_CODE_REACHED_MAX, "Failed to update param value %s %u", name, *dataIndex);
484 INIT_LOCAL_API int WriteParam(const char *name, const char *value, uint32_t *dataIndex, int mode)
501 if (node != NULL && node->dataIndex != 0) {
502 if (dataIndex != NULL) {
503 *dataIndex = node->dataIndex;
508 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, node->dataIndex);
510 "Failed to update param value %s %u", name, node->dataIndex);
515 ret = UpdateParam(workSpace, &node->dataIndex, name, value, mode);
523 ret = AddParam((WorkSpace *)workSpace, paramInfos, dataIndex);
600 if (node != NULL && node->dataIndex != 0) {
749 ret = ReadParamValue((ParamNode *)GetTrieNode(workspace, node->dataIndex), value, len);
769 if (entry != NULL && entry->dataIndex != 0) {
770 *handle = PARAM_HANDLE(workspace, entry->dataIndex);