1 /* 2 * Copyright (C) 2015-2018 Alibaba Group Holding Limited 3 */ 4 5 #if defined(DEPRECATED_LINKKIT) 6 #ifndef _DM_TSL_ALINK_H_ 7 #define _DM_TSL_ALINK_H_ 8 9 /** 10 * @brief Create TSL struct from TSL string. 11 * This function used to parse TSL string into TSL struct. 12 * 13 * @param tsl. The TSL string in JSON format. 14 * @param tsl_len. The length of tsl 15 * @param shadow. The pointer of TSL Struct pointer, will be malloc memory. 16 * This memory should be free by dm_shw_destroy. 17 * 18 * @return success or fail. 19 * 20 */ 21 int dm_tsl_alink_create(_IN_ const char *tsl, _IN_ int tsl_len, 22 _OU_ dm_shw_t **shadow); 23 24 #endif 25 #endif 26