Skip to content

Commit 95d0c4d

Browse files
author
Nir Sonnenschein
committed
Define psa_storage_info_t for backward compatibility
1 parent 2982907 commit 95d0c4d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

components/TARGET_PSA/services/storage/its/psa_prot_internal_storage.h

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@ MBED_DEPRECATED("ITS specific types should not be used")
4444
typedef psa_storage_uid_t psa_its_uid_t;
4545

4646
MBED_DEPRECATED("ITS specific types should not be used")
47-
struct psa_its_info_t {
48-
uint32_t size;
49-
psa_its_create_flags_t flags;
50-
};
47+
#define psa_its_info_t psa_storage_info_t
5148

5249
// These defines should also be deprecated
5350
#define PSA_ITS_SUCCESS PSA_SUCCESS
@@ -68,10 +65,8 @@ typedef psa_storage_uid_t psa_ps_uid_t;
6865
MBED_DEPRECATED("PS specific types should not be used")
6966
typedef psa_storage_create_flags_t psa_ps_create_flags_t;
7067
MBED_DEPRECATED("PS specific types should not be used")
71-
struct psa_ps_info_t {
72-
uint32_t size;
73-
psa_ps_create_flags_t flags;
74-
};
68+
#define psa_ps_info_t psa_storage_info_t
69+
7570
#define PSA_PS_SUCCESS PSA_SUCCESS
7671
#define PSA_PS_ERROR_UID_NOT_FOUND PSA_ERROR_DOES_NOT_EXIST
7772
#define PSA_PS_ERROR_STORAGE_FAILURE PSA_ERROR_STORAGE_FAILURE

0 commit comments

Comments
 (0)