ONLP
Open Network Linux Platform APIs
|
Functions | |
int | onlp_attributei_sw_init (void) |
Initialize the attribute subsystem. | |
int | onlp_attributei_hw_init (uint32_t flags) |
Initialize the attribute subsystem. | |
int | onlp_attributei_sw_denit (void) |
Deinitialize the attribute subsystem. | |
int | onlp_attributei_supported (onlp_oid_t oid, const char *attribute) |
Determine whether the OID supports the given attributei. More... | |
int | onlp_attributei_set (onlp_oid_t oid, const char *attribute, void *value) |
Set an attribute on the given OID. More... | |
int | onlp_attributei_get (onlp_oid_t oid, const char *attribute, void **value) |
Get an attribute from the given OID. More... | |
int | onlp_attributei_free (onlp_oid_t oid, const char *attribute, void *value) |
Free an attribute value returned from onlp_attributei_get(). More... | |
int | onlp_attributei_onie_info_get (onlp_oid_t oid, onlp_onie_info_t *rv) |
Get an OID's ONIE attribute. More... | |
int | onlp_attributei_asset_info_get (onlp_oid_t oid, onlp_asset_info_t *rv) |
Get an OID's Asset attribute. More... | |
int onlp_attributei_asset_info_get | ( | onlp_oid_t | oid, |
onlp_asset_info_t * | rv | ||
) |
Get an OID's Asset attribute.
oid | The target OID. |
rv | [out] Receives the Asset information if supported. |
int onlp_attributei_free | ( | onlp_oid_t | oid, |
const char * | attribute, | ||
void * | value | ||
) |
Free an attribute value returned from onlp_attributei_get().
oid | The OID. |
attribute | The attribute. |
value | The value. |
int onlp_attributei_get | ( | onlp_oid_t | oid, |
const char * | attribute, | ||
void ** | value | ||
) |
Get an attribute from the given OID.
oid | The OID. | |
attribute | The attribute to retrieve. | |
[out] | value | Receives the attributei's value. |
int onlp_attributei_onie_info_get | ( | onlp_oid_t | oid, |
onlp_onie_info_t * | rv | ||
) |
Get an OID's ONIE attribute.
Access to standard attributes.
oid | The target OID |
rv | [out] Receives the ONIE information if supported. |
int onlp_attributei_set | ( | onlp_oid_t | oid, |
const char * | attribute, | ||
void * | value | ||
) |
Set an attribute on the given OID.
oid | The OID. |
attribute | The attribute name. |
value | A pointer to the value. |
int onlp_attributei_supported | ( | onlp_oid_t | oid, |
const char * | attribute | ||
) |
Determine whether the OID supports the given attributei.
oid | The OID. |
attribute | The attribute name. |