service: restrict finalize to internal usage
This commit moves the rte_service_finalize() function to be in the component header, and marks it as @internal. The function is only called internally by rte_eal_finalize(). Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com> Acked-by: Vipin Varghese <vipin.varghese@intel.com>
This commit is contained in:
parent
8824b74d8f
commit
1dd133ae07
@ -429,17 +429,6 @@ int32_t rte_service_attr_get(uint32_t id, uint32_t attr_id,
|
||||
*/
|
||||
int32_t rte_service_attr_reset_all(uint32_t id);
|
||||
|
||||
/**
|
||||
* @warning
|
||||
* @b EXPERIMENTAL: this API may change without prior notice
|
||||
*
|
||||
* Free up the memory that has been initialized. This routine
|
||||
* is to be invoked prior to process termination.
|
||||
*
|
||||
* @retval None
|
||||
*/
|
||||
void rte_service_finalize(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -139,4 +139,15 @@ int32_t rte_service_component_runstate_set(uint32_t id, uint32_t runstate);
|
||||
*/
|
||||
int32_t rte_service_init(void);
|
||||
|
||||
/**
|
||||
* @warning
|
||||
* @b EXPERIMENTAL: this API may change without prior notice
|
||||
*
|
||||
* @internal Free up the memory that has been initialized.
|
||||
* This routine is to be invoked prior to process termination.
|
||||
*
|
||||
* @retval None
|
||||
*/
|
||||
void rte_service_finalize(void);
|
||||
|
||||
#endif /* _RTE_SERVICE_PRIVATE_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user