
From: Longfang Liu <liulongfang@huawei.com> In order to ensure that all applications using the uadk interface can use the corresponding unsigned data type normally. Their declarations need to be placed in the public header file. Signed-off-by: Longfang Liu <liulongfang@huawei.com> --- include/wd.h | 3 +++ v1/wd.h | 4 +++- v1/wd_comp.h | 4 ---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/wd.h b/include/wd.h index bcf3aa7..21e5e06 100644 --- a/include/wd.h +++ b/include/wd.h @@ -32,6 +32,9 @@ extern "C" { #define WD_IPC_KEY 0x500011 #define CRYPTO_MAX_ALG_NAME 128 +typedef unsigned char __u8; +typedef unsigned int __u32; +typedef unsigned long long __u64; /* Required compiler attributes */ #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) diff --git a/v1/wd.h b/v1/wd.h index 0a32182..4618a8c 100644 --- a/v1/wd.h +++ b/v1/wd.h @@ -61,8 +61,10 @@ extern "C" { #define WD_IN_EPARA 67 #define WD_ENOPROC 68 +typedef unsigned char __u8; +typedef unsigned int __u32; +typedef unsigned long long __u64; typedef void (*wcrypto_cb)(const void *msg, void *tag); - typedef void (*wd_log)(const char *format, ...); struct wcrypto_cb_tag { diff --git a/v1/wd_comp.h b/v1/wd_comp.h index 580b968..4c84ea3 100644 --- a/v1/wd_comp.h +++ b/v1/wd_comp.h @@ -25,10 +25,6 @@ extern "C" { #endif -typedef unsigned char __u8; -typedef unsigned int __u32; -typedef unsigned long long __u64; - #define ZIP_LOG(format, args...) fprintf(stderr, format, ##args) #define MAX_CTX_RSV_SIZE 65536 -- 2.33.0