doubao_chat/include_lib/update/net_update.h

16 lines
500 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __NET_UPDATE_H__
#define __NET_UPDATE_H__
#define CONFIG_UPGRADE_OTA_FILE_NAME "update-ota.ufw"
void *net_fopen(char *path, char *mode);//net_fopen支持写flash固件升级和写到SD卡,当名字字符有CCONFIG_UPGRADE_OTA_FILE_NAME时是固件升级
int net_fwrite(void *file, unsigned char *buf, int len, int end);
int net_fread(void *file, char *buf, int len);
int net_flen(void *file);
int net_fclose(void *file, char is_socket_err);
int net_update_request(void);
#endif