1 /* 2 * Copyright (C) 2015-2018 Alibaba Group Holding Limited 3 */ 4 5 #ifdef DEVICE_MODEL_ENABLED 6 #ifndef _DM_OPT_H 7 #define _DM_OPT_H 8 9 typedef enum { 10 #if !defined(DEVICE_MODEL_RAWDATA_SOLO) 11 DM_OPT_DOWNSTREAM_PROPERTY_POST_REPLY, 12 DM_OPT_DOWNSTREAM_EVENT_POST_REPLY, 13 DM_OPT_UPSTREAM_PROPERTY_SET_REPLY, 14 DM_OPT_UPSTREAM_EVENT_NOTIFY_REPLY, 15 #endif 16 DM_OPT_DOWNSTREAM_EVENT_PROPERTY_DESIRED_DELETE_REPLY, 17 DM_OPT_DOWNSTREAM_EVENT_PROPERTY_DESIRED_GET_REPLY, 18 DM_OPT_FOTA_RETRY_TIMEOUT_MS, 19 DM_OPT_PROXY_PRODUCT_REGISTER 20 } dm_opt_t; 21 22 typedef struct { 23 int prop_post_reply_opt; 24 int event_post_reply_opt; 25 int prop_set_reply_opt; 26 int prop_desired_get_reply_opt; 27 int prop_desired_delete_reply_opt; 28 int fota_retry_timeout_ms; 29 int proxy_product_register; 30 } dm_opt_ctx; 31 32 int dm_opt_set(dm_opt_t opt, void *data); 33 int dm_opt_get(dm_opt_t opt, void *data); 34 35 #endif 36 #endif 37