ONLP
Open Network Linux Platform APIs
|
Macros | |
#define | ONLP_ATTRIBUTE_EQUALS(_a, _b) (!strcmp(_a, _b)) |
Attribute comparitor. | |
Functions | |
int | onlp_attribute_sw_init (void) |
Initialize the attribute subsystem. More... | |
int | onlp_attribute_hw_init (uint32_t flags) |
Hardware initialization of the attribute subsystem. More... | |
int | onlp_attribute_sw_denit (void) |
Deinitialize the attribute subsystem. More... | |
int | onlp_attribute_supported (onlp_oid_t oid, const char *attribute) |
Determine whether the OID supports the given attribute. More... | |
int | onlp_attribute_set (onlp_oid_t oid, const char *attribute, void *value) |
Set an attribute on the given OID. More... | |
int | onlp_attribute_get (onlp_oid_t oid, const char *attribute, void **value) |
Get an attribute from the given OID. More... | |
int | onlp_attribute_free (onlp_oid_t oid, const char *attribute, void *value) |
Free an attribute value returned from onlp_attribute_get(). More... | |
int | onlp_attribute_onie_info_get (onlp_oid_t oid, onlp_onie_info_t **rp) |
Request the ONIE attribute. More... | |
int | onlp_attribute_onie_info_free (onlp_oid_t oid, onlp_onie_info_t *p) |
Free an ONIE attribute pointer. More... | |
int | onlp_attribute_onie_info_get_json (onlp_oid_t oid, cJSON **rp) |
Request the ONIE attribute in JSON. More... | |
int | onlp_attribute_onie_info_show (onlp_oid_t oid, aim_pvs_t *pvs) |
Show the ONIE attribute. More... | |
int | onlp_attribute_onie_info_show_json (onlp_oid_t oid, aim_pvs_t *pvs) |
Show the ONIE attribute (JSON) More... | |
int | onlp_attribute_asset_info_get (onlp_oid_t oid, onlp_asset_info_t **rp) |
Determine if the ONIE attribute is supported. More... | |
int | onlp_attribute_asset_info_free (onlp_oid_t oid, onlp_asset_info_t *p) |
Free an asset attribute pointer. More... | |
int | onlp_attribute_asset_info_get_json (onlp_oid_t oid, cJSON **rp) |
Request the asset attribute in JSON. More... | |
int | onlp_attribute_asset_info_show (onlp_oid_t oid, aim_pvs_t *pvs) |
Show the asset attribute. More... | |
int | onlp_attribute_asset_info_show_json (onlp_oid_t oid, aim_pvs_t *pvs) |
Show the asset attribute (JSON). More... | |
int onlp_attribute_asset_info_free | ( | onlp_oid_t | oid, |
onlp_asset_info_t * | p | ||
) |
Free an asset attribute pointer.
oid | The target oid. |
p | The asset attribute pointer. |
int onlp_attribute_asset_info_get | ( | onlp_oid_t | oid, |
onlp_asset_info_t ** | rp | ||
) |
Determine if the ONIE attribute is supported.
oid | The target OID. |
oid | The target oid. | |
[out] | rp | Receives the Asset information structure pointer. |
int onlp_attribute_asset_info_get_json | ( | onlp_oid_t | oid, |
cJSON ** | rp | ||
) |
Request the asset attribute in JSON.
oid | The target oid. | |
[out] | rp | Receives the cJSON object. |
int onlp_attribute_asset_info_show | ( | onlp_oid_t | oid, |
aim_pvs_t * | pvs | ||
) |
Show the asset attribute.
oid | The target oid. |
pvs | The output pvs. |
int onlp_attribute_asset_info_show_json | ( | onlp_oid_t | oid, |
aim_pvs_t * | pvs | ||
) |
Show the asset attribute (JSON).
oid | The target oid. |
pvs | The output pvs. |
int onlp_attribute_free | ( | onlp_oid_t | oid, |
const char * | attribute, | ||
void * | value | ||
) |
Free an attribute value returned from onlp_attribute_get().
oid | The OID. |
attribute | The attribute. |
value | The value. |
int onlp_attribute_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 attribute's value. |
int onlp_attribute_hw_init | ( | uint32_t | flags | ) |
Hardware initialization of the attribute subsystem.
flags | The initialization flags. |
int onlp_attribute_onie_info_free | ( | onlp_oid_t | oid, |
onlp_onie_info_t * | p | ||
) |
Free an ONIE attribute pointer.
oid | The target OID. |
p | The ONIE attribute pointer. |
int onlp_attribute_onie_info_get | ( | onlp_oid_t | oid, |
onlp_onie_info_t ** | rp | ||
) |
Request the ONIE attribute.
oid | The target OID. | |
[out] | rp | Receives the ONIE information structure pointer. |
int onlp_attribute_onie_info_get_json | ( | onlp_oid_t | oid, |
cJSON ** | rp | ||
) |
Request the ONIE attribute in JSON.
oid | The target OID. | |
[out] | rp | Receives the cJSON object. |
int onlp_attribute_onie_info_show | ( | onlp_oid_t | oid, |
aim_pvs_t * | pvs | ||
) |
Show the ONIE attribute.
oid | The target OID. |
pvs | The output pvs. |
int onlp_attribute_onie_info_show_json | ( | onlp_oid_t | oid, |
aim_pvs_t * | pvs | ||
) |
Show the ONIE attribute (JSON)
oid | The target OID. |
pvs | The output pvs. |
int onlp_attribute_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_attribute_supported | ( | onlp_oid_t | oid, |
const char * | attribute | ||
) |
Determine whether the OID supports the given attribute.
oid | The OID. |
attribute | The attribute name. |
int onlp_attribute_sw_denit | ( | void | ) |
Deinitialize the attribute subsystem.
int onlp_attribute_sw_init | ( | void | ) |
Initialize the attribute subsystem.