SST: Rename get_attributes APIs to get_info
This patch renames get_attributes functions to get_info, and updates
the SST code as follows:
- rename tfm_sst_attribs_t to tfm_sst_asset_info_t
- rename sst_asset_infoi_t to sst_asset_policy_t in
sst_asset_management
- add sst_core_obj_info_t in sst_core
- update sst service APIs and code to accomodate it to the new types
and type names
- update dependant tests to accomodate them to the new names
Change-Id: Ifa0e56c3c15c7de40d6af4aa3f96c8bd7eae85f2
Signed-off-by: Marc Moreno <marc.morenoberengue@arm.com>
diff --git a/interface/include/tfm_sst_defs.h b/interface/include/tfm_sst_defs.h
index e3b3112..83ac62d 100644
--- a/interface/include/tfm_sst_defs.h
+++ b/interface/include/tfm_sst_defs.h
@@ -52,18 +52,32 @@
TFM_SST_ERR_FORCE_INT_SIZE = INT_MAX
};
-struct tfm_sst_attribs_t {
- uint32_t size_current; /*!< The current size of the asset */
- uint32_t size_max; /*!< The maximum size of the asset in bytes */
+/*!
+ * \struct tfm_sst_asset_info_t
+ *
+ * \brief Structure to store the asset information concerning the content
+ * information.
+ *
+ */
+struct tfm_sst_asset_info_t {
+ uint32_t size_current; /*!< The current size of the asset data */
+ uint32_t size_max; /*!< The maximum size of the asset data in bytes */
};
-/* Structure to store data information to read/write from/to asset */
+/*!
+ * \struct tfm_sst_buf_t
+ *
+ * \brief Structure to store data information to read/write from/to asset.
+ *
+ */
struct tfm_sst_buf_t {
- uint8_t* data; /*!< Address of input/output data */
+ uint8_t *data; /*!< Address of input/output data */
uint32_t size; /*!< Size of input/output data */
uint32_t offset; /*!< Offset within asset */
};
+#define TFM_SST_ASSET_INFO_SIZE sizeof(struct tfm_sst_asset_info_t)
+
#ifdef __cplusplus
}
#endif