1 /*
2  * Copyright (C) 2015-2018 Alibaba Group Holding Limited
3  */
4 
5 #ifndef _DM_COTA_H_
6 #define _DM_COTA_H_
7 
8 typedef struct {
9     int is_report_new_config;
10 } dm_cota_ctx_t;
11 
12 int dm_cota_init(void);
13 int dm_cota_deinit(void);
14 int dm_cota_perform_sync(_OU_ char *output, _IN_ int output_len);
15 int dm_cota_get_config(const char *config_scope, const char *get_type,
16                        const char *attribute_keys);
17 int dm_cota_status_check(void);
18 dm_cota_ctx_t *dm_cota_get_ctx(void);
19 #endif
20