Add missing onlp_attribute_sw_denit().

This commit is contained in:
Jeffrey Townsend
2019-03-28 17:32:42 +00:00
parent 2fc2a580a9
commit 8aca252c82
3 changed files with 20 additions and 0 deletions

View File

@@ -49,6 +49,14 @@ int onlp_attribute_sw_init(void);
*/
int onlp_attribute_hw_init(uint32_t flags);
/**
* @brief Deinitialize the attribute subsystem.
* @note The primary purpose of this API is to properly
* deallocate any resources used by the module in order
* faciliate detection of real resouce leaks.
*/
int onlp_attribute_sw_denit(void);
/**
* @brief Determine whether the OID supports the given attribute.
* @param oid The OID.

View File

@@ -38,6 +38,11 @@ int onlp_attributei_sw_init(void);
*/
int onlp_attributei_hw_init(uint32_t flags);
/**
* @brief Deinitialize the attribute subsystem.
*/
int onlp_attributei_sw_denit(void);
/**
* @brief Determine whether the OID supports the given attributei.
* @param oid The OID.

View File

@@ -47,6 +47,13 @@ onlp_attribute_hw_init_locked__(uint32_t flags)
}
ONLP_LOCKED_API1(onlp_attribute_hw_init, uint32_t, flags)
static int
onlp_attribute_sw_denit_locked__(void)
{
return onlp_attributei_sw_denit();
}
ONLP_LOCKED_API0(onlp_attribute_sw_denit)
/**
* @brief Determine whether the OID supports the given attribute.
* @param oid The OID.