29 #ifndef __ONLP_ATTRIBUTE_H__ 30 #define __ONLP_ATTRIBUTE_H__ 33 #include <onlp/onlp.h> 35 #include <AIM/aim_pvs.h> 95 #define ONLP_ATTRIBUTE_EQUALS(_a, _b) (!strcmp(_a, _b)) int onlp_attribute_onie_info_free(onlp_oid_t oid, onlp_onie_info_t *p)
Free an ONIE attribute pointer.
int onlp_attribute_asset_info_get_json(onlp_oid_t oid, cJSON **rp)
Request the asset attribute in JSON.
int onlp_attribute_onie_info_show(onlp_oid_t oid, aim_pvs_t *pvs)
Show the ONIE attribute.
int onlp_attribute_sw_denit(void)
Deinitialize the attribute subsystem.
uint32_t onlp_oid_t
Definition: oids.h:52
int onlp_attribute_asset_info_show(onlp_oid_t oid, aim_pvs_t *pvs)
Show the asset attribute.
int onlp_attribute_asset_info_show_json(onlp_oid_t oid, aim_pvs_t *pvs)
Show the asset attribute (JSON).
int onlp_attribute_onie_info_get_json(onlp_oid_t oid, cJSON **rp)
Request the ONIE attribute in JSON.
int onlp_attribute_hw_init(uint32_t flags)
Hardware initialization of the attribute subsystem.
int onlp_attribute_onie_info_show_json(onlp_oid_t oid, aim_pvs_t *pvs)
Show the ONIE attribute (JSON)
int onlp_attribute_asset_info_get(onlp_oid_t oid, onlp_asset_info_t **rp)
Determine if the ONIE attribute is supported.
int onlp_attribute_asset_info_free(onlp_oid_t oid, onlp_asset_info_t *p)
Free an asset attribute pointer.
int onlp_attribute_sw_init(void)
Initialize the attribute subsystem.
int onlp_attribute_set(onlp_oid_t oid, const char *attribute, void *value)
Set an attribute on the given OID.
int onlp_attribute_supported(onlp_oid_t oid, const char *attribute)
Determine whether the OID supports the given attribute.
int onlp_attribute_get(onlp_oid_t oid, const char *attribute, void **value)
Get an attribute from the given OID.
int onlp_attribute_onie_info_get(onlp_oid_t oid, onlp_onie_info_t **rp)
Request the ONIE attribute.
This structure describes general asset information that may be associated with a particular OID...
Definition: stdattrs.h:40
int onlp_attribute_free(onlp_oid_t oid, const char *attribute, void *value)
Free an attribute value returned from onlp_attribute_get().