|
TuyaOS
|
tuya reference data module 更多...


结构体 | |
| struct | SMARTPOINTER_T |
| the reference data 更多... | |
函数 | |
| SMARTPOINTER_T * | tuya_smartpointer_create (void *data, const UINT_T data_len, const BOOL_T malk, const UINT_T cnt) |
| create a reference data 更多... | |
| void | tuya_smartpointer_del (SMARTPOINTER_T *sp_data) |
| delete the reference data, ignore the reference 更多... | |
| void | tuya_smartpointer_get (SMARTPOINTER_T *sp_data) |
| get the reference data, increase the reference 更多... | |
| void | tuya_smartpointer_put (SMARTPOINTER_T *sp_data) |
| put the reference data, decrease the reference 更多... | |
tuya reference data module
| SMARTPOINTER_T * tuya_smartpointer_create | ( | void * | data, |
| const UINT_T | data_len, | ||
| const BOOL_T | malk, | ||
| const UINT_T | cnt | ||
| ) |
create a reference data
| [in] | data | the data buffer |
| [in] | data_len | the date length |
| [in] | malk | need malloc memory for the data |
| [in] | cnt | the Initial value of the reference |
| void tuya_smartpointer_del | ( | SMARTPOINTER_T * | sp_data | ) |
delete the reference data, ignore the reference
| [in,out] | sp_data | the reference data |
| void tuya_smartpointer_get | ( | SMARTPOINTER_T * | sp_data | ) |
get the reference data, increase the reference
| [in,out] | sp_data | the reference data |
| void tuya_smartpointer_put | ( | SMARTPOINTER_T * | sp_data | ) |
put the reference data, decrease the reference
| [in,out] | sp_data | the reference data |