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_api.h b/interface/include/tfm_sst_api.h
index 66865ac..d22653c 100644
--- a/interface/include/tfm_sst_api.h
+++ b/interface/include/tfm_sst_api.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 - 2018, Arm Limited. All rights reserved.
+ * Copyright (c) 2017-2018, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -40,16 +40,16 @@
enum tfm_sst_err_t tfm_sst_create(uint16_t asset_uuid);
/**
- * \brief Gets asset's attributes referenced by asset handler.
- * Uses cached metadata to return the size and write offset of an asset.
+ * \brief Gets asset's information referenced by asset handler.
*
* \param[in] asset_handle Asset handler
- * \param[out] attrib_struct Pointer to store the asset's attribute
+ * \param[out] info Pointer to store the asset's information
+ * \ref tfm_sst_asset_info_t
*
* \return Returns error code as specified in \ref tfm_sst_err_t
*/
-enum tfm_sst_err_t tfm_sst_get_attributes(uint32_t asset_handle,
- struct tfm_sst_attribs_t* attrib_struct);
+enum tfm_sst_err_t tfm_sst_get_info(uint32_t asset_handle,
+ struct tfm_sst_asset_info_t *info);
/**
* \brief Reads asset's data from asset referenced by asset handler.