[Feature][ZXW-65]merged P49 base code
Change-Id: I3e09c0c3d47483bc645f02310380ecb7fc6f4041
diff --git a/ap/lib/libupi_ab/inc/upi_public.h b/ap/lib/libupi_ab/inc/upi_public.h
index 0ade3d3..a0bbb09 100755
--- a/ap/lib/libupi_ab/inc/upi_public.h
+++ b/ap/lib/libupi_ab/inc/upi_public.h
@@ -58,7 +58,7 @@
#define EXTRA_NAME_LEN (32)
-
+
#define FOTA_AB_UPGRADE_STATUS "fota_ab_upgrade_status"
#define FOTA_AB_UPGRADE_TOTAL_SIZE "fota_ab_upgrade_total_size"
@@ -93,24 +93,26 @@
* Type definitions *
******************************************************************************/
-typedef enum {
- HASH_TYPE_SHA_512 = 0,
- HASH_TYPE_SHA_256
+typedef enum
+{
+ HASH_TYPE_SHA_512 = 0,
+ HASH_TYPE_SHA_256
} Hash_type_s;
/**
* @brief ϵͳ·ÖÇøÐÅϢͷ
-* @param magic ħÊõ×Ö
+* @param magic ħÊõ×Ö
* @param plat ƽ̨: 0 - V3T, 1 - 8501
* @param plat_partition_num ƽ̨·ÖÇøÊý
* @param oem_partition_num oem·ÖÇøÊý
*/
-typedef struct {
- char magic[SYSTEM_UPGRADE_PARTITION_INFO_HEAD_MAGIC_LEN];
- int plat;
- int plat_partition_num;
- int oem_partition_num;
+typedef struct
+{
+ char magic[SYSTEM_UPGRADE_PARTITION_INFO_HEAD_MAGIC_LEN];
+ int plat;
+ int plat_partition_num;
+ int oem_partition_num;
} system_partition_info_head_t;
@@ -120,10 +122,11 @@
* @param system_type ËùÊôϵͳÀàÐÍ - 0 ƽ̨ÀàÐÍ, 1 oem
* @param partition_type ·ÖÇøÀàÐÍ
*/
-typedef struct {
- char name[PARTITION_NAME_LEN];
- int system_type;
- int partition_type;
+typedef struct
+{
+ char name[PARTITION_NAME_LEN];
+ int system_type;
+ int partition_type;
} platform_partition_info_t;
@@ -133,10 +136,11 @@
* @param system_type ËùÊôϵͳÀàÐÍ - 0 ƽ̨ÀàÐÍ, 1 oem
* @param partition_type ·ÖÇøÀàÐÍ
*/
-typedef struct {
- char name[PARTITION_NAME_LEN];
- int system_type;
- int partition_type;
+typedef struct
+{
+ char name[PARTITION_NAME_LEN];
+ int system_type;
+ int partition_type;
} oem_partition_info_t;
@@ -145,16 +149,18 @@
* @param platform_partition_info ƽ̨¿ÉÉý¼¶·ÖÇøÐÅÏ¢
* @param oem_partition_info oem¿ÉÉý¼¶·ÖÇøÐÅÏ¢
*/
-typedef struct {
- system_partition_info_head_t system_partition_info_head;
- platform_partition_info_t *platform_partition_info;
- oem_partition_info_t *oem_partition_info;
+typedef struct
+{
+ system_partition_info_head_t system_partition_info_head;
+ platform_partition_info_t *platform_partition_info;
+ oem_partition_info_t *oem_partition_info;
} system_upgrade_partition_info_t;
/*******************************************************************************
* Global variable declarations *
******************************************************************************/
+extern char FOTA_PACKAGE_FILE[128];
/*******************************************************************************