Lines Matching refs:dapi_property

1189     dm_api_property_t *dapi_property = NULL;  in iotx_dm_deprecated_post_property_start()  local
1196 dapi_property = DM_malloc(sizeof(dm_api_property_t)); in iotx_dm_deprecated_post_property_start()
1197 if (dapi_property == NULL) { in iotx_dm_deprecated_post_property_start()
1201 memset(dapi_property, 0, sizeof(dm_api_property_t)); in iotx_dm_deprecated_post_property_start()
1204 dapi_property->mutex = HAL_MutexCreate(); in iotx_dm_deprecated_post_property_start()
1205 if (dapi_property->mutex == NULL) { in iotx_dm_deprecated_post_property_start()
1206 DM_free(dapi_property); in iotx_dm_deprecated_post_property_start()
1212 dapi_property->devid = devid; in iotx_dm_deprecated_post_property_start()
1215 dapi_property->lite = lite_cjson_create_object(); in iotx_dm_deprecated_post_property_start()
1216 if (dapi_property->lite == NULL) { in iotx_dm_deprecated_post_property_start()
1217 DM_free(dapi_property->mutex); in iotx_dm_deprecated_post_property_start()
1218 DM_free(dapi_property); in iotx_dm_deprecated_post_property_start()
1223 *handle = (void *)dapi_property; in iotx_dm_deprecated_post_property_start()
1234 dm_api_property_t *dapi_property = NULL; in _iotx_dm_deprecated_post_property_add() local
1239 dapi_property = (dm_api_property_t *)handle; in _iotx_dm_deprecated_post_property_add()
1243 dapi_property->devid, identifier, identifier_len, dapi_property->lite); in _iotx_dm_deprecated_post_property_add()
1258 dm_api_property_t *dapi_property = NULL; in iotx_dm_deprecated_post_property_add() local
1265 dapi_property = (dm_api_property_t *)handle; in iotx_dm_deprecated_post_property_add()
1279 res = dm_mgr_deprecated_get_property_number(dapi_property->devid, &number); in iotx_dm_deprecated_post_property_add()
1289 res = dm_mgr_deprecated_get_property_by_index(dapi_property->devid, in iotx_dm_deprecated_post_property_add()
1316 dm_api_property_t *dapi_property = NULL; in iotx_dm_deprecated_post_property_end() local
1323 dapi_property = *((dm_api_property_t **)handle); in iotx_dm_deprecated_post_property_end()
1325 payload = lite_cjson_print_unformatted(dapi_property->lite); in iotx_dm_deprecated_post_property_end()
1327 lite_cjson_delete(dapi_property->lite); in iotx_dm_deprecated_post_property_end()
1328 if (dapi_property->mutex) { in iotx_dm_deprecated_post_property_end()
1329 HAL_MutexDestroy(dapi_property->mutex); in iotx_dm_deprecated_post_property_end()
1331 DM_free(dapi_property); in iotx_dm_deprecated_post_property_end()
1339 res = dm_mgr_upstream_thing_property_post(dapi_property->devid, payload, in iotx_dm_deprecated_post_property_end()
1343 lite_cjson_delete(dapi_property->lite); in iotx_dm_deprecated_post_property_end()
1344 if (dapi_property->mutex) { in iotx_dm_deprecated_post_property_end()
1345 HAL_MutexDestroy(dapi_property->mutex); in iotx_dm_deprecated_post_property_end()
1347 DM_free(dapi_property); in iotx_dm_deprecated_post_property_end()