ONLP
Open Network Linux Platform APIs
stdattrs.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_STDATTRS_H__
29 #define __ONLP_STDATTRS_H__
30 
31 #include <onlp/oids.h>
32 #include <onlplib/onie.h>
33 
34 #include <AIM/aim_pvs.h>
35 
40 typedef struct onlp_asset_info_s {
43 
45  char* manufacturer;
46 
48  char* date;
49 
51  char* part_number;
52 
55 
58 
61 
64 
67 
69  char* description;
70 
72  char* additional;
73 
75 
76 
80 int onlp_asset_info_show(onlp_asset_info_t* aip, aim_pvs_t* pvs);
81 
86 
90 int onlp_asset_info_to_json(onlp_asset_info_t* aip, cJSON** rv);
91 
94 #endif /* __ONLP_STDATTRS_H__ */
95 /* @} */
char * additional
Definition: stdattrs.h:72
char * manufacturer
Definition: stdattrs.h:45
Object Identifiers.
uint32_t onlp_oid_t
Definition: oids.h:52
int onlp_asset_info_show(onlp_asset_info_t *aip, aim_pvs_t *pvs)
Show an asset structure.
struct onlp_asset_info_s onlp_asset_info_t
This structure describes general asset information that may be associated with a particular OID...
char * serial_number
Definition: stdattrs.h:54
char * hardware_revision
Definition: stdattrs.h:57
int onlp_asset_info_to_json(onlp_asset_info_t *aip, cJSON **rv)
Asset info to JSON.
char * part_number
Definition: stdattrs.h:51
char * description
Definition: stdattrs.h:69
char * firmware_revision
Definition: stdattrs.h:60
char * cpld_revision
Definition: stdattrs.h:63
onlp_oid_t oid
Definition: stdattrs.h:42
int onlp_asset_info_free(onlp_asset_info_t *aip)
Free an asset structure.
char * date
Definition: stdattrs.h:48
char * manufacture_date
Definition: stdattrs.h:66
This structure describes general asset information that may be associated with a particular OID...
Definition: stdattrs.h:40