Home
last modified time | relevance | path

Searched refs:copyItem (Results 1 - 2 of 2) sorted by relevance

/foundation/communication/dsoftbus/sdk/bus_center/manager/src/
H A Dclient_bus_center_manager.c279 NodeStateCallbackItem *copyItem = NULL; in DuplicateNodeStateCbList() local
282 copyItem = (NodeStateCallbackItem *)SoftBusCalloc(sizeof(NodeStateCallbackItem)); in DuplicateNodeStateCbList()
283 if (copyItem == NULL) { in DuplicateNodeStateCbList()
287 if (strncpy_s(copyItem->pkgName, PKG_NAME_SIZE_MAX, item->pkgName, PKG_NAME_SIZE_MAX - 1) != EOK) { in DuplicateNodeStateCbList()
289 SoftBusFree(copyItem); in DuplicateNodeStateCbList()
292 ListInit(&copyItem->node); in DuplicateNodeStateCbList()
293 copyItem->cb = item->cb; in DuplicateNodeStateCbList()
294 ListAdd(list, &copyItem->node); in DuplicateNodeStateCbList()
301 TimeSyncCallbackItem *copyItem = NULL; in DuplicateTimeSyncResultCbList() local
307 copyItem in DuplicateTimeSyncResultCbList()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/oh_adapter/src/
H A Drd_json_object.cpp416 cJSON *copyItem = cJSON_Duplicate(newItem.cjson_, true); in ReplaceItemInObject() local
417 cJSON_ReplaceItemInObjectCaseSensitive(this->cjson_, fieldName.c_str(), copyItem); in ReplaceItemInObject()
419 cJSON *copyItem = cJSON_Duplicate(newItem.cjson_, true); in ReplaceItemInObject() local
420 cJSON_AddItemToObject(this->cjson_, fieldName.c_str(), copyItem); in ReplaceItemInObject()
430 cJSON *copyItem = cJSON_Duplicate(newItem.cjson_, true); in ReplaceItemInArray() local
431 cJSON_ReplaceItemInArray(this->cjson_, index, copyItem); in ReplaceItemInArray()

Completed in 3 milliseconds