| b.liu | a76c961 | 2025-03-28 13:58:09 +0800 | [diff] [blame] | 1 | #ifndef _OTAD_H_ |
| 2 | #define _OTAD_H_ | ||||
| 3 | |||||
| 4 | #include "mbtk_log.h" | ||||
| 5 | |||||
| 6 | |||||
| 7 | #define OTA_DEBUG LOGD | ||||
| 8 | #define OTA_ERR LOGE | ||||
| 9 | #define UBUS_UNIX_SOCKET "/var/run/ubus/ubus.sock" | ||||
| 10 | |||||
| 11 | enum { | ||||
| 12 | OTA_TYPE_HTTP, | ||||
| 13 | OTA_TYPE_UDP, | ||||
| 14 | OTA_TYPE_SD, | ||||
| 15 | }; | ||||
| 16 | |||||
| 17 | |||||
| 18 | // Add by liubin | ||||
| 19 | void revision_out_find(char *data, int len, unsigned int processed_cnt); | ||||
| 20 | int revision_out_update(); | ||||
| 21 | // End by liubin | ||||
| 22 | #endif | ||||
| 23 | |||||