ONLP
Open Network Linux Platform APIs
attributei.h
Go to the documentation of this file.
1 /************************************************************
2  * <bsn.cl fy=2017 v=onl>
3  *
4  * Copyright 2017 Big Switch Networks, Inc.
5  *
6  * Licensed under the Eclipse Public License, Version 1.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.eclipse.org/legal/epl-v10.html
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15  * either express or implied. See the License for the specific
16  * language governing permissions and limitations under the
17  * License.
18  *
19  * </bsn.cl>
20  ********************************************************/
28 #ifndef __ONLP_ATTRIBUTEI_H__
29 #define __ONLP_ATTRIBUTEI_H__
30 
31 #include <onlp/attribute.h>
32 #include <onlp/onlp.h>
33 
37 int onlp_attributei_sw_init(void);
38 
42 int onlp_attributei_hw_init(uint32_t flags);
43 
47 int onlp_attributei_sw_denit(void);
48 
54 int onlp_attributei_supported(onlp_oid_t oid, const char* attribute);
55 
62 int onlp_attributei_set(onlp_oid_t oid, const char* attribute, void* value);
63 
70 int onlp_attributei_get(onlp_oid_t oid, const char* attribute,
71  void** value);
72 
79 int onlp_attributei_free(onlp_oid_t oid, const char* attribute, void* value);
80 
91 int onlp_attributei_onie_info_get(onlp_oid_t oid, onlp_onie_info_t* rv);
92 
100 
101 #endif /* __ONLP_ATTRIBUTEI_H__ */
102 /* @} */
int onlp_attributei_hw_init(uint32_t flags)
Initialize the attribute subsystem.
uint32_t onlp_oid_t
Definition: oids.h:52
int onlp_attributei_sw_init(void)
Initialize the attribute subsystem.
Attributes.
int onlp_attributei_onie_info_get(onlp_oid_t oid, onlp_onie_info_t *rv)
Get an OID&#39;s ONIE attribute.
int onlp_attributei_free(onlp_oid_t oid, const char *attribute, void *value)
Free an attribute value returned from onlp_attributei_get().
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.
int onlp_attributei_asset_info_get(onlp_oid_t oid, onlp_asset_info_t *rv)
Get an OID&#39;s Asset attribute.
This structure describes general asset information that may be associated with a particular OID...
Definition: stdattrs.h:40
int onlp_attributei_get(onlp_oid_t oid, const char *attribute, void **value)
Get an attribute from the given OID.
int onlp_attributei_set(onlp_oid_t oid, const char *attribute, void *value)
Set an attribute on the given OID.