diff --git a/packages/base/any/onlp/src/onlp/doc/html/annotated.html b/packages/base/any/onlp/src/onlp/doc/html/annotated.html index 6ea41323..82494d48 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/annotated.html +++ b/packages/base/any/onlp/src/onlp/doc/html/annotated.html @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/attribute_8h.html b/packages/base/any/onlp/src/onlp/doc/html/attribute_8h.html index 42986fc1..f4a85560 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/attribute_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/attribute_8h.html @@ -165,7 +165,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/attribute_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/attribute_8h_source.html index 71cd4342..b9447054 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/attribute_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/attribute_8h_source.html @@ -184,7 +184,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/attributei_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/attributei_8h_source.html index f92711b4..1079f596 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/attributei_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/attributei_8h_source.html @@ -143,7 +143,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/base_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/base_8h_source.html index a28fcf75..bcf5aff0 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/base_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/base_8h_source.html @@ -137,7 +137,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/chassis_8h.html b/packages/base/any/onlp/src/onlp/doc/html/chassis_8h.html index 1c78b39b..321505e5 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/chassis_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/chassis_8h.html @@ -162,7 +162,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/chassis_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/chassis_8h_source.html index 39a1c0ed..0df5d3d5 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/chassis_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/chassis_8h_source.html @@ -175,12 +175,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
onlp_chassis_sw_init
int onlp_chassis_sw_init(void)
Initialize the chassis software module.
onlp_chassis_debug_show
int onlp_chassis_debug_show(aim_pvs_t *pvs)
Show the Chassis debug information. `*.
onlp_chassis_info_get
int onlp_chassis_info_get(onlp_oid_t oid, onlp_chassis_info_t *info)
Get the chassis info structure.
-
onlp_oid_hdr_s
Definition: oids.h:244
+
onlp_oid_hdr_s
Definition: oids.h:282
onlp_chassis_info_t
struct onlp_chassis_info_s onlp_chassis_info_t
Chassis Information Structure.
diff --git a/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h.html b/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h.html index a8ed5f73..ae4341f2 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h.html @@ -122,7 +122,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h_source.html index 8c32daef..5ba0a38e 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/chassisi_8h_source.html @@ -135,11 +135,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
onlp_chassisi_hdr_get
int onlp_chassisi_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t *hdr)
Get the chassis hdr structure.
chassis.h
Chassis OID Interface.
onlp_chassisi_sw_init
int onlp_chassisi_sw_init(void)
Software initializaiton of the Chassis module.
-
onlp_oid_hdr_s
Definition: oids.h:244
+
onlp_oid_hdr_s
Definition: oids.h:282
diff --git a/packages/base/any/onlp/src/onlp/doc/html/classes.html b/packages/base/any/onlp/src/onlp/doc/html/classes.html index fa8291b2..9197979a 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/classes.html +++ b/packages/base/any/onlp/src/onlp/doc/html/classes.html @@ -98,7 +98,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/debug_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/debug_8h_source.html index 3131e86d..de5d3d2c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/debug_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/debug_8h_source.html @@ -124,7 +124,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/debugi_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/debugi_8h_source.html index 0b3b5663..0b023686 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/debugi_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/debugi_8h_source.html @@ -101,7 +101,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/dir_72adef417dcbc5bf8193445c31305165.html b/packages/base/any/onlp/src/onlp/doc/html/dir_72adef417dcbc5bf8193445c31305165.html index 06425fb0..bb88a1a4 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/dir_72adef417dcbc5bf8193445c31305165.html +++ b/packages/base/any/onlp/src/onlp/doc/html/dir_72adef417dcbc5bf8193445c31305165.html @@ -143,7 +143,7 @@ Files diff --git a/packages/base/any/onlp/src/onlp/doc/html/dir_9b91cb305f6dfd5edb8153d5019adc55.html b/packages/base/any/onlp/src/onlp/doc/html/dir_9b91cb305f6dfd5edb8153d5019adc55.html index 7dbc2c94..f6bb4029 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/dir_9b91cb305f6dfd5edb8153d5019adc55.html +++ b/packages/base/any/onlp/src/onlp/doc/html/dir_9b91cb305f6dfd5edb8153d5019adc55.html @@ -92,7 +92,7 @@ Directories diff --git a/packages/base/any/onlp/src/onlp/doc/html/dir_a7b0466279106ea0b8f86f609f621680.html b/packages/base/any/onlp/src/onlp/doc/html/dir_a7b0466279106ea0b8f86f609f621680.html index 7c0ff79d..ff07b4a7 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/dir_a7b0466279106ea0b8f86f609f621680.html +++ b/packages/base/any/onlp/src/onlp/doc/html/dir_a7b0466279106ea0b8f86f609f621680.html @@ -92,7 +92,7 @@ Directories diff --git a/packages/base/any/onlp/src/onlp/doc/html/dir_ad96458042bbdd0196ba054c40055169.html b/packages/base/any/onlp/src/onlp/doc/html/dir_ad96458042bbdd0196ba054c40055169.html index 5c4d9be2..4eed3249 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/dir_ad96458042bbdd0196ba054c40055169.html +++ b/packages/base/any/onlp/src/onlp/doc/html/dir_ad96458042bbdd0196ba054c40055169.html @@ -98,8 +98,14 @@ Files file  fani.h [code]  Fan Platform Implementation.
  +file  generici.h [code] + Generic OID Platform Implementation.
+  file  ledi.h [code]   +file  modulei.h [code] + Module OID Platform Implementation.
+  file  platformi.h [code]   file  psui.h [code] @@ -115,7 +121,7 @@ Files diff --git a/packages/base/any/onlp/src/onlp/doc/html/fan_8h.html b/packages/base/any/onlp/src/onlp/doc/html/fan_8h.html index 801aa704..e9a276af 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/fan_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/fan_8h.html @@ -232,7 +232,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/fan_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/fan_8h_source.html index ea056995..7d52f1dd 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/fan_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/fan_8h_source.html @@ -268,7 +268,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
onlp_fan_info_s::caps
uint32_t caps
Definition: fan.h:69
onlp_fan_hw_init
int onlp_fan_hw_init(uint32_t flags)
Hardware Initialization of the Fan module.
onlp_fan_dir_desc_map
aim_map_si_t onlp_fan_dir_desc_map[]
-
onlp_oid_hdr_s
Definition: oids.h:244
+
onlp_oid_hdr_s
Definition: oids.h:282
onlp_fan_dir_name
const char * onlp_fan_dir_name(onlp_fan_dir_t e)
onlp_fan_caps_desc_map
aim_map_si_t onlp_fan_caps_desc_map[]
onlp_fan_hdr_get
int onlp_fan_hdr_get(onlp_oid_t id, onlp_oid_hdr_t *hdr)
Retrieve the fan's OID hdr.
@@ -277,7 +277,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/fani_8h.html b/packages/base/any/onlp/src/onlp/doc/html/fani_8h.html index fb8435d7..3c388e41 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/fani_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/fani_8h.html @@ -131,7 +131,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/fani_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/fani_8h_source.html index 41f36668..4fb69a86 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/fani_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/fani_8h_source.html @@ -146,11 +146,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
onlp_fani_hdr_get
int onlp_fani_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t *hdr)
Retrieve the fan's OID hdr.
onlp_fan_dir_t
enum onlp_fan_dir_e onlp_fan_dir_t
onlp_fani_percentage_set
int onlp_fani_percentage_set(onlp_oid_id_t id, int p)
Set the fan speed in percentage.
-
onlp_oid_hdr_s
Definition: oids.h:244
+
onlp_oid_hdr_s
Definition: oids.h:282
diff --git a/packages/base/any/onlp/src/onlp/doc/html/files.html b/packages/base/any/onlp/src/onlp/doc/html/files.html index bc6f19b4..b040c2ec 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/files.html +++ b/packages/base/any/onlp/src/onlp/doc/html/files.html @@ -96,11 +96,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');  chassisi.hChassis Platform Interface  debugi.h  fani.hFan Platform Implementation - ledi.h - platformi.h - psui.hPower Supply Management Implementation - sfpi.hSFP Platform Implementation Interface. This interface must be implemented and available for all platforms that support SFP interfaces - thermali.hThermal Sensor Platform Implementation + generici.hGeneric OID Platform Implementation + ledi.h + modulei.hModule OID Platform Implementation + platformi.h + psui.hPower Supply Management Implementation + sfpi.hSFP Platform Implementation Interface. This interface must be implemented and available for all platforms that support SFP interfaces + thermali.hThermal Sensor Platform Implementation  attribute.hAttributes  chassis.hChassis OID Interface  debug.h @@ -123,7 +125,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/functions.html b/packages/base/any/onlp/src/onlp/doc/html/functions.html index e23e90c9..ff94f732 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/functions.html +++ b/packages/base/any/onlp/src/onlp/doc/html/functions.html @@ -326,7 +326,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/functions_vars.html b/packages/base/any/onlp/src/onlp/doc/html/functions_vars.html index 670e1daf..2ee681c2 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/functions_vars.html +++ b/packages/base/any/onlp/src/onlp/doc/html/functions_vars.html @@ -326,7 +326,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/generic_8h.html b/packages/base/any/onlp/src/onlp/doc/html/generic_8h.html index 316a2f4e..300091eb 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/generic_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/generic_8h.html @@ -149,7 +149,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/generic_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/generic_8h_source.html index b2d5818c..da0cd13b 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/generic_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/generic_8h_source.html @@ -156,12 +156,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
onlp_generic_hw_init
int onlp_generic_hw_init(uint32_t flags)
Initialize the module.
onlp_generic_hdr_get
int onlp_generic_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t *hdr)
Get the generic header structure.
onlp_generic_info_to_json
int onlp_generic_info_to_json(onlp_generic_info_t *info, cJSON **cj, uint32_t flags)
Convert a generic info structure to JSON.
-
onlp_oid_hdr_s
Definition: oids.h:244
+
onlp_oid_hdr_s
Definition: oids.h:282
onlp_generic_info_from_json
int onlp_generic_info_from_json(cJSON *cj, onlp_generic_info_t *info)
Convert a JSON object to a generic info structure.
diff --git a/packages/base/any/onlp/src/onlp/doc/html/generici_8h.html b/packages/base/any/onlp/src/onlp/doc/html/generici_8h.html new file mode 100644 index 00000000..26b8fda6 --- /dev/null +++ b/packages/base/any/onlp/src/onlp/doc/html/generici_8h.html @@ -0,0 +1,130 @@ + + + + + + +ONLP: module/inc/onlp/platformi/generici.h File Reference + + + + + + + + + +
+
+ + + + + + +
+
ONLP +
+
Open Network Linux Platform APIs
+
+
+ + + + + + +
+ All Data Structures Files Functions Variables Typedefs Enumerations Modules Pages
+ + +
+ +
+ + +
+
+
+Functions
+
+
generici.h File Reference
+
+
+ +

Generic OID Platform Implementation. +More...

+
#include <onlp/generic.h>
+
+

Go to the source code of this file.

+ + + + + + + + + + + + + + + + + +

+Functions

+int onlp_generici_sw_init (void)
 Software initialization of the Generic module.
 
int onlp_generici_hw_init (uint32_t flags)
 Hardware initialization of the Generic module. More...
 
int onlp_generici_sw_denit (void)
 Deinitialize the generic software module. More...
 
int onlp_generici_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)
 Retrieve the generic's oid header. More...
 
int onlp_generici_info_get (onlp_oid_id_t id, onlp_generic_info_t *rv)
 Get the information for the given generic OID. More...
 
+

Detailed Description

+

Generic OID Platform Implementation.

+
+ + + + diff --git a/packages/base/any/onlp/src/onlp/doc/html/generici_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/generici_8h_source.html new file mode 100644 index 00000000..ce3ee9bd --- /dev/null +++ b/packages/base/any/onlp/src/onlp/doc/html/generici_8h_source.html @@ -0,0 +1,146 @@ + + + + + + +ONLP: module/inc/onlp/platformi/generici.h Source File + + + + + + + + + +
+
+ + + + + + +
+
ONLP +
+
Open Network Linux Platform APIs
+
+
+ + + + + + +
+ All Data Structures Files Functions Variables Typedefs Enumerations Modules Pages
+ + +
+ +
+ + +
+
+
+
generici.h
+
+
+Go to the documentation of this file.
1 /************************************************************
+
2  * <bsn.cl fy=2014 v=onl>
+
3  *
+
4  * Copyright 2014, 2015 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_GENERICI_H__
+
29 #define __ONLP_GENERICI_H__
+
30 
+
31 #include <onlp/generic.h>
+
32 
+
36 int onlp_generici_sw_init(void);
+
37 
+
42 int onlp_generici_hw_init(uint32_t flags);
+
43 
+
50 int onlp_generici_sw_denit(void);
+
51 
+ +
58 
+ +
65 
+
66 #endif /* __ONLP_GENERICI_H__ */
+
67 /* @} */
+
int onlp_generici_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t *rv)
Retrieve the generic's oid header.
+
int onlp_generici_sw_init(void)
Software initialization of the Generic module.
+
Generic OID Information Structure.
Definition: generic.h:41
+
uint32_t onlp_oid_id_t
Definition: oids.h:55
+
int onlp_generici_sw_denit(void)
Deinitialize the generic software module.
+
int onlp_generici_hw_init(uint32_t flags)
Hardware initialization of the Generic module.
+
int onlp_generici_info_get(onlp_oid_id_t id, onlp_generic_info_t *rv)
Get the information for the given generic OID.
+
Definition: oids.h:282
+
Generic OID Interface.
+
+ + + + diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals.html b/packages/base/any/onlp/src/onlp/doc/html/globals.html index f8439ab3..cb32978d 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals.html @@ -435,6 +435,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_generic_hw_init() : generic.h
  • +
  • ONLP_GENERIC_ID_CREATE +: oids.h +
  • onlp_generic_info_from_json() : generic.h
  • @@ -456,6 +459,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_generic_sw_init() : generic.h
  • +
  • onlp_generici_hdr_get() +: generici.h +
  • +
  • onlp_generici_hw_init() +: generici.h +
  • +
  • onlp_generici_info_get() +: generici.h +
  • +
  • onlp_generici_sw_denit() +: generici.h +
  • +
  • onlp_generici_sw_init() +: generici.h +
  • onlp_led_caps_desc() : led.h
  • @@ -576,6 +594,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_module_sw_init() : module.h
  • +
  • onlp_modulei_hdr_get() +: modulei.h +
  • +
  • onlp_modulei_hw_init() +: modulei.h +
  • +
  • onlp_modulei_info_get() +: modulei.h +
  • +
  • onlp_modulei_sw_denit() +: modulei.h +
  • +
  • onlp_modulei_sw_init() +: modulei.h +
  • ONLP_OID_CHASSIS : oids.h
  • @@ -591,12 +624,30 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_FAN_VALIDATE : oids.h
  • +
  • ONLP_OID_FAN_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_FAN_VALIDATE_GET_ID_NR +: oids.h +
  • ONLP_OID_FAN_VALIDATE_NR : oids.h
  • onlp_oid_from_str() : oids.h
  • +
  • ONLP_OID_GENERIC_VALIDATE +: oids.h +
  • +
  • ONLP_OID_GENERIC_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_GENERIC_VALIDATE_GET_ID_NR +: oids.h +
  • +
  • ONLP_OID_GENERIC_VALIDATE_NR +: oids.h +
  • onlp_oid_hdr_from_json() : oids.h
  • @@ -618,18 +669,33 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_info_get() : oids.h
  • +
  • onlp_oid_info_to_json() +: oids.h +
  • ONLP_OID_IS_CHASSIS : oids.h
  • ONLP_OID_IS_FAN : oids.h
  • +
  • ONLP_OID_IS_GENERIC +: oids.h +
  • +
  • ONLP_OID_IS_LED +: oids.h +
  • +
  • ONLP_OID_IS_MODULE +: oids.h +
  • onlp_oid_is_present() : oids.h
  • ONLP_OID_IS_PSU : oids.h
  • +
  • ONLP_OID_IS_SFP +: oids.h +
  • ONLP_OID_IS_THERMAL : oids.h
  • @@ -678,15 +744,57 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_json_verify() : oids.h
  • +
  • ONLP_OID_LED_VALIDATE +: oids.h +
  • +
  • ONLP_OID_LED_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_LED_VALIDATE_GET_ID_NR +: oids.h +
  • +
  • ONLP_OID_LED_VALIDATE_NR +: oids.h +
  • +
  • ONLP_OID_MODULE_VALIDATE +: oids.h +
  • +
  • ONLP_OID_MODULE_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_MODULE_VALIDATE_GET_ID_NR +: oids.h +
  • +
  • ONLP_OID_MODULE_VALIDATE_NR +: oids.h +
  • ONLP_OID_PRESENT : oids.h
  • ONLP_OID_PSU_VALIDATE : oids.h
  • +
  • ONLP_OID_PSU_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_PSU_VALIDATE_GET_ID_NR +: oids.h +
  • ONLP_OID_PSU_VALIDATE_NR : oids.h
  • +
  • ONLP_OID_SFP_VALIDATE +: oids.h +
  • +
  • ONLP_OID_SFP_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_SFP_VALIDATE_GET_ID_NR +: oids.h +
  • +
  • ONLP_OID_SFP_VALIDATE_NR +: oids.h +
  • onlp_oid_status_flag_desc() : oids.h
  • @@ -789,12 +897,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_type_flag_t : oids.h
  • -
  • ONLP_OID_TYPE_FLAG_VALID -: oids.h -
  • onlp_oid_type_flag_valid() : oids.h
  • +
  • ONLP_OID_TYPE_FLAG_VALID +: oids.h +
  • onlp_oid_type_flag_value() : oids.h
  • @@ -882,12 +990,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_psu_caps_t : psu.h
  • -
  • onlp_psu_caps_valid() -: psu.h -
  • ONLP_PSU_CAPS_VALID : psu.h
  • +
  • onlp_psu_caps_valid() +: psu.h +
  • onlp_psu_caps_value() : psu.h
  • @@ -1017,12 +1125,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_sfp_control_flag_t : sfp.h
  • -
  • onlp_sfp_control_flag_valid() -: sfp.h -
  • ONLP_SFP_CONTROL_FLAG_VALID : sfp.h
  • +
  • onlp_sfp_control_flag_valid() +: sfp.h +
  • onlp_sfp_control_flag_value() : sfp.h
  • @@ -1242,12 +1350,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_thermal_caps_t : thermal.h
  • -
  • onlp_thermal_caps_valid() -: thermal.h -
  • ONLP_THERMAL_CAPS_VALID : thermal.h
  • +
  • onlp_thermal_caps_valid() +: thermal.h +
  • onlp_thermal_caps_value() : thermal.h
  • @@ -1336,7 +1444,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_defs.html b/packages/base/any/onlp/src/onlp/doc/html/globals_defs.html index 828dce9d..afba94d1 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_defs.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_defs.html @@ -198,6 +198,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_FAN_STATUS_PRESENT : fan.h
  • +
  • ONLP_GENERIC_ID_CREATE +: oids.h +
  • ONLP_LED_CAPS_VALID : led.h
  • @@ -228,9 +231,27 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_FAN_VALIDATE : oids.h
  • +
  • ONLP_OID_FAN_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_FAN_VALIDATE_GET_ID_NR +: oids.h +
  • ONLP_OID_FAN_VALIDATE_NR : oids.h
  • +
  • ONLP_OID_GENERIC_VALIDATE +: oids.h +
  • +
  • ONLP_OID_GENERIC_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_GENERIC_VALIDATE_GET_ID_NR +: oids.h +
  • +
  • ONLP_OID_GENERIC_VALIDATE_NR +: oids.h +
  • ONLP_OID_ID_GET : oids.h
  • @@ -240,9 +261,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_IS_FAN : oids.h
  • +
  • ONLP_OID_IS_GENERIC +: oids.h +
  • +
  • ONLP_OID_IS_LED +: oids.h +
  • +
  • ONLP_OID_IS_MODULE +: oids.h +
  • ONLP_OID_IS_PSU : oids.h
  • +
  • ONLP_OID_IS_SFP +: oids.h +
  • ONLP_OID_IS_THERMAL : oids.h
  • @@ -258,15 +291,57 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • ONLP_OID_JSON_FLAG_VALID : oids.h
  • +
  • ONLP_OID_LED_VALIDATE +: oids.h +
  • +
  • ONLP_OID_LED_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_LED_VALIDATE_GET_ID_NR +: oids.h +
  • +
  • ONLP_OID_LED_VALIDATE_NR +: oids.h +
  • +
  • ONLP_OID_MODULE_VALIDATE +: oids.h +
  • +
  • ONLP_OID_MODULE_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_MODULE_VALIDATE_GET_ID_NR +: oids.h +
  • +
  • ONLP_OID_MODULE_VALIDATE_NR +: oids.h +
  • ONLP_OID_PRESENT : oids.h
  • ONLP_OID_PSU_VALIDATE : oids.h
  • +
  • ONLP_OID_PSU_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_PSU_VALIDATE_GET_ID_NR +: oids.h +
  • ONLP_OID_PSU_VALIDATE_NR : oids.h
  • +
  • ONLP_OID_SFP_VALIDATE +: oids.h +
  • +
  • ONLP_OID_SFP_VALIDATE_GET_ID +: oids.h +
  • +
  • ONLP_OID_SFP_VALIDATE_GET_ID_NR +: oids.h +
  • +
  • ONLP_OID_SFP_VALIDATE_NR +: oids.h +
  • ONLP_OID_STATUS_FLAG_VALID : oids.h
  • @@ -397,7 +472,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_enum.html b/packages/base/any/onlp/src/onlp/doc/html/globals_enum.html index 5cff59ad..6a50354e 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_enum.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_enum.html @@ -141,7 +141,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_func.html b/packages/base/any/onlp/src/onlp/doc/html/globals_func.html index 7f911ee0..1970da64 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_func.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_func.html @@ -315,6 +315,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_generic_sw_init() : generic.h
  • +
  • onlp_generici_hdr_get() +: generici.h +
  • +
  • onlp_generici_hw_init() +: generici.h +
  • +
  • onlp_generici_info_get() +: generici.h +
  • +
  • onlp_generici_sw_denit() +: generici.h +
  • +
  • onlp_generici_sw_init() +: generici.h +
  • onlp_led_caps_desc() : led.h
  • @@ -390,6 +405,21 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_module_sw_init() : module.h
  • +
  • onlp_modulei_hdr_get() +: modulei.h +
  • +
  • onlp_modulei_hw_init() +: modulei.h +
  • +
  • onlp_modulei_info_get() +: modulei.h +
  • +
  • onlp_modulei_sw_denit() +: modulei.h +
  • +
  • onlp_modulei_sw_init() +: modulei.h +
  • onlp_oid_from_str() : oids.h
  • @@ -405,6 +435,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • onlp_oid_info_get() : oids.h
  • +
  • onlp_oid_info_to_json() +: oids.h +
  • onlp_oid_is_present() : oids.h
  • @@ -808,7 +841,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_type.html b/packages/base/any/onlp/src/onlp/doc/html/globals_type.html index eccaa4a6..d7c4792f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_type.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_type.html @@ -199,7 +199,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/globals_vars.html b/packages/base/any/onlp/src/onlp/doc/html/globals_vars.html index b0bf1063..23b997ac 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/globals_vars.html +++ b/packages/base/any/onlp/src/onlp/doc/html/globals_vars.html @@ -196,7 +196,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__attributei.html b/packages/base/any/onlp/src/onlp/doc/html/group__attributei.html index 879a001c..20dd2fbe 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__attributei.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__attributei.html @@ -82,7 +82,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__attributes.html b/packages/base/any/onlp/src/onlp/doc/html/group__attributes.html index 5881946d..2ceeee06 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__attributes.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__attributes.html @@ -714,7 +714,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__chassisi.html b/packages/base/any/onlp/src/onlp/doc/html/group__chassisi.html index 01e0a99c..7d4e4fa4 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__chassisi.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__chassisi.html @@ -219,7 +219,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__fani.html b/packages/base/any/onlp/src/onlp/doc/html/group__fani.html index f8f99d61..5dc1e7c2 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__fani.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__fani.html @@ -335,7 +335,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__generici.html b/packages/base/any/onlp/src/onlp/doc/html/group__generici.html index 09870f48..d0d0de84 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__generici.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__generici.html @@ -75,14 +75,151 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    +
    +Functions
    + + + + + + + + + + + + + + + + + +

    +Functions

    +int onlp_generici_sw_init (void)
     Software initialization of the Generic module.
     
    int onlp_generici_hw_init (uint32_t flags)
     Hardware initialization of the Generic module. More...
     
    int onlp_generici_sw_denit (void)
     Deinitialize the generic software module. More...
     
    int onlp_generici_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)
     Retrieve the generic's oid header. More...
     
    int onlp_generici_info_get (onlp_oid_id_t id, onlp_generic_info_t *rv)
     Get the information for the given generic OID. More...
     
    +

    Detailed Description

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_generici_hdr_get (onlp_oid_id_t id,
    onlp_oid_hdr_trv 
    )
    +
    + +

    Retrieve the generic's oid header.

    +
    Parameters
    + + + +
    idThe generic oid.
    [out]rvReceives the header.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_generici_hw_init (uint32_t flags)
    +
    + +

    Hardware initialization of the Generic module.

    +
    Parameters
    + + +
    flagsThe hardware initialization flags.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_generici_info_get (onlp_oid_id_t id,
    onlp_generic_info_trv 
    )
    +
    + +

    Get the information for the given generic OID.

    +
    Parameters
    + + + +
    idThe Generic OID
    [out]rvReceives the generic information.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_generici_sw_denit (void )
    +
    + +

    Deinitialize the generic software module.

    +
    Note
    The primary purpose of this API is to properly deallocate any resources used by the module in order faciliate detection of real resouce leaks.
    + +
    +
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__ledi.html b/packages/base/any/onlp/src/onlp/doc/html/group__ledi.html index 487bfb16..31529c6c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__ledi.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__ledi.html @@ -82,7 +82,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__module-interfaces.html b/packages/base/any/onlp/src/onlp/doc/html/group__module-interfaces.html index fd0c7373..be5fc819 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__module-interfaces.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__module-interfaces.html @@ -93,7 +93,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__modulei.html b/packages/base/any/onlp/src/onlp/doc/html/group__modulei.html index e1cdf021..43a7dede 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__modulei.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__modulei.html @@ -75,14 +75,151 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    +
    +Functions
    + + + + + + + + + + + + + + + + + +

    +Functions

    +int onlp_modulei_sw_init (void)
     Software initialization of the Module module.
     
    int onlp_modulei_hw_init (uint32_t flags)
     Hardware initialization of the Module module. More...
     
    int onlp_modulei_sw_denit (void)
     Deinitialize the module software module. More...
     
    int onlp_modulei_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)
     Retrieve the module's oid header. More...
     
    int onlp_modulei_info_get (onlp_oid_id_t id, onlp_module_info_t *rv)
     Get the information for the given module OID. More...
     
    +

    Detailed Description

    +

    Function Documentation

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_modulei_hdr_get (onlp_oid_id_t id,
    onlp_oid_hdr_trv 
    )
    +
    + +

    Retrieve the module's oid header.

    +
    Parameters
    + + + +
    idThe module oid.
    [out]rvReceives the header.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_modulei_hw_init (uint32_t flags)
    +
    + +

    Hardware initialization of the Module module.

    +
    Parameters
    + + +
    flagsThe hardware initialization flags.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    int onlp_modulei_info_get (onlp_oid_id_t id,
    onlp_module_info_trv 
    )
    +
    + +

    Get the information for the given module OID.

    +
    Parameters
    + + + +
    idThe Module OID
    [out]rvReceives the module information.
    +
    +
    + +
    +
    + +
    +
    + + + + + + + + +
    int onlp_modulei_sw_denit (void )
    +
    + +

    Deinitialize the module software module.

    +
    Note
    The primary purpose of this API is to properly deallocate any resources used by the module in order faciliate detection of real resouce leaks.
    + +
    +
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-chassis.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-chassis.html index d400f450..b97a2fa4 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-chassis.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-chassis.html @@ -513,7 +513,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-fan.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-fan.html index bea6c181..8ae2cdcb 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-fan.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-fan.html @@ -946,7 +946,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-generic.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-generic.html index 00cefde7..c3e4af7c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-generic.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-generic.html @@ -380,7 +380,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-interfaces.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-interfaces.html index acd3e142..8aae5d70 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-interfaces.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-interfaces.html @@ -94,7 +94,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-led.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-led.html index f428d82c..de3d2116 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-led.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-led.html @@ -845,7 +845,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-module.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-module.html index 2579f96f..e0795526 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-module.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-module.html @@ -380,7 +380,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-psu.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-psu.html index 43a8d1a9..f76af89d 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-psu.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-psu.html @@ -836,7 +836,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-sfp.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-sfp.html index 3bb3b431..0fadfc66 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-sfp.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-sfp.html @@ -1769,7 +1769,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-thermal.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-thermal.html index 7ea37001..3bfa260f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-thermal.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-thermal.html @@ -819,7 +819,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid-types.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid-types.html index 491f8743..6e2793e7 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid-types.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid-types.html @@ -106,7 +106,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__oid.html b/packages/base/any/onlp/src/onlp/doc/html/group__oid.html index af516f5d..0898ba59 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__oid.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__oid.html @@ -128,6 +128,8 @@ Macros   #define ONLP_MODULE_ID_CREATE(_id)   ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_MODULE, _id)   +#define ONLP_GENERIC_ID_CREATE(_id)   ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_GENERIC, _id) +  #define ONLP_OID_IS_CHASSIS(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_CHASSIS, _id)   #define ONLP_OID_CHASSIS_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_CHASSIS, _id) @@ -150,48 +152,60 @@ Macros   #define ONLP_OID_FAN_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_FAN, _id)   +#define ONLP_OID_FAN_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_FAN, _oid, _id) +  +#define ONLP_OID_FAN_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_FAN, _oid, _id) +  #define ONLP_OID_IS_PSU(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_PSU, _id)   #define ONLP_OID_PSU_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_PSU, _id)   #define ONLP_OID_PSU_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_PSU, _id)   - -#define ONLP_OID_IS_LED(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_LED, _id) +#define ONLP_OID_PSU_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_PSU, _oid, _id) +  +#define ONLP_OID_PSU_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_PSU, _oid, _id) +  +#define ONLP_OID_IS_LED(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_LED, _id)   - -#define ONLP_OID_LED_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_LED, _id) +#define ONLP_OID_LED_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_LED, _id)   - -#define ONLP_OID_LED_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_LED, _id) +#define ONLP_OID_LED_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_LED, _id)   - -#define ONLP_OID_IS_SFP(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_SFP, _id) +#define ONLP_OID_LED_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_LED, _oid, _id) +  +#define ONLP_OID_LED_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_LED, _oid, _id) +  +#define ONLP_OID_IS_SFP(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_SFP, _id)   - -#define ONLP_OID_SFP_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_SFP, _id) +#define ONLP_OID_SFP_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_SFP, _id)   - -#define ONLP_OID_SFP_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_SFP, _id) +#define ONLP_OID_SFP_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_SFP, _id)   - -#define ONLP_OID_IS_MODULE(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_MODULE, _id) +#define ONLP_OID_SFP_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_SFP, _oid, _id) +  +#define ONLP_OID_SFP_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_SFP, _oid, _id) +  +#define ONLP_OID_IS_MODULE(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_MODULE, _id)   - -#define ONLP_OID_MODULE_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_MODULE, _id) +#define ONLP_OID_MODULE_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_MODULE, _id)   - -#define ONLP_OID_MODULE_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_MODULE, _id) +#define ONLP_OID_MODULE_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_MODULE, _id)   - -#define ONLP_OID_IS_GENERIC(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_GENERIC, _id) +#define ONLP_OID_MODULE_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_MODULE, _oid, _id) +  +#define ONLP_OID_MODULE_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_MODULE, _oid, _id) +  +#define ONLP_OID_IS_GENERIC(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_GENERIC, _id)   - -#define ONLP_OID_GENERIC_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_GENERIC, _id) +#define ONLP_OID_GENERIC_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_GENERIC, _id)   - -#define ONLP_OID_GENERIC_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_GENERIC, _id) +#define ONLP_OID_GENERIC_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_GENERIC, _id)   +#define ONLP_OID_GENERIC_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_GENERIC, _oid, _id) +  +#define ONLP_OID_GENERIC_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_GENERIC, _oid, _id) +  #define ONLP_OID_CHASSIS   ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_CHASSIS, 1)   #define ONLP_OID_DESC_SIZE   128 @@ -369,8 +383,8 @@ int int onlp_oid_hdr_from_json (cJSON *cj, onlp_oid_hdr_t *hdr)  JSON -> OID Header. More...
      - -int onlp_oid_info_to_json (onlp_oid_hdr_t *info, cJSON **cj, uint32_t flags) +int onlp_oid_info_to_json (onlp_oid_hdr_t *info, cJSON **cj, uint32_t flags) + OID Info Structure -> JSON. More...
      int onlp_oid_to_user_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) @@ -470,6 +484,23 @@ Variables

    Create a Fan OID

    +
    + + +
    +
    + + + + + + + + +
    #define ONLP_GENERIC_ID_CREATE( _id)   ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_GENERIC, _id)
    +
    +

    Create a Generic OID

    +
    @@ -581,6 +612,60 @@ Variables

    Validate that the given OID is a Fan

    +
    + + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_FAN_VALIDATE_GET_ID( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_FAN, _oid, _id)
    +
    +

    Validate and retrieve a Fan ID

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_FAN_VALIDATE_GET_ID_NR( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_FAN, _oid, _id)
    +
    +

    Validate and retrieve a Fan ID

    +
    @@ -598,6 +683,94 @@ Variables

    Validate that the given OID is a Fan

    +
    + + +
    +
    + + + + + + + + +
    #define ONLP_OID_GENERIC_VALIDATE( _id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_GENERIC, _id)
    +
    +

    Validate that the given OID is a Generic

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_GENERIC_VALIDATE_GET_ID( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_GENERIC, _oid, _id)
    +
    +

    Validate and retrieve a Generic ID

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_GENERIC_VALIDATE_GET_ID_NR( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_GENERIC, _oid, _id)
    +
    +

    Validate and retrieve a Generic ID

    + +
    +
    + +
    +
    + + + + + + + + +
    #define ONLP_OID_GENERIC_VALIDATE_NR( _id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_GENERIC, _id)
    +
    +

    Validate that the given OID is a Generic

    +
    @@ -649,6 +822,57 @@ Variables

    Is the given OID a Fan?

    +
    + + +
    +
    + + + + + + + + +
    #define ONLP_OID_IS_GENERIC( _id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_GENERIC, _id)
    +
    +

    Is the given OID a Generic?

    + +
    +
    + +
    +
    + + + + + + + + +
    #define ONLP_OID_IS_LED( _id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_LED, _id)
    +
    +

    Is the given OID an LED?

    + +
    +
    + +
    +
    + + + + + + + + +
    #define ONLP_OID_IS_MODULE( _id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_MODULE, _id)
    +
    +

    Is the given OID a Module?

    +
    @@ -666,6 +890,23 @@ Variables

    Is the given OID a PSU?

    +
    + + +
    +
    + + + + + + + + +
    #define ONLP_OID_IS_SFP( _id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_SFP, _id)
    +
    +

    Is the given OID an SFP?

    +
    @@ -781,6 +1022,182 @@ Variables

    validator

    +
    + + +
    +
    + + + + + + + + +
    #define ONLP_OID_LED_VALIDATE( _id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_LED, _id)
    +
    +

    Validate that the given OID is an LED

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_LED_VALIDATE_GET_ID( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_LED, _oid, _id)
    +
    +

    Validate and retrieve an LED ID

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_LED_VALIDATE_GET_ID_NR( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_LED, _oid, _id)
    +
    +

    Validate and retrieve an LED ID

    + +
    +
    + +
    +
    + + + + + + + + +
    #define ONLP_OID_LED_VALIDATE_NR( _id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_LED, _id)
    +
    +

    Validate that the given OID is an LED

    + +
    +
    + +
    +
    + + + + + + + + +
    #define ONLP_OID_MODULE_VALIDATE( _id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_MODULE, _id)
    +
    +

    Validate that the given OID is a Module

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_MODULE_VALIDATE_GET_ID( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_MODULE, _oid, _id)
    +
    +

    Validate and retrieve a Module ID

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_MODULE_VALIDATE_GET_ID_NR( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_MODULE, _oid, _id)
    +
    +

    Validate and retrieve a Module ID

    + +
    +
    + +
    +
    + + + + + + + + +
    #define ONLP_OID_MODULE_VALIDATE_NR( _id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_MODULE, _id)
    +
    +

    Validate that the given OID is a Module

    +
    @@ -815,6 +1232,60 @@ Variables

    Validate that the given OID is a PSU

    +
    + + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_PSU_VALIDATE_GET_ID( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_PSU, _oid, _id)
    +
    +

    Validate and retrieve a PSU ID

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_PSU_VALIDATE_GET_ID_NR( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_PSU, _oid, _id)
    +
    +

    Validate and retrieve a PSU ID

    +
    @@ -832,6 +1303,94 @@ Variables

    Validate that the given OID is a PSU

    +
    + + +
    +
    + + + + + + + + +
    #define ONLP_OID_SFP_VALIDATE( _id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_SFP, _id)
    +
    +

    Validate that the given OID is an SFP

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_SFP_VALIDATE_GET_ID( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_SFP, _oid, _id)
    +
    +

    Validate and retrieve a SFP ID

    + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + + +
    #define ONLP_OID_SFP_VALIDATE_GET_ID_NR( _oid,
     _id 
    )   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_SFP, _oid, _id)
    +
    +

    Validate and retrieve a SFP ID

    + +
    +
    + +
    +
    + + + + + + + + +
    #define ONLP_OID_SFP_VALIDATE_NR( _id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_SFP, _id)
    +
    +

    Validate that the given OID is an SFP

    +
    @@ -1680,6 +2239,7 @@ Variables +
    hdrThe header
    [out]cjReceives the JSON representation.
    flagsThe JSON conversion flags.
    @@ -1719,6 +2279,48 @@ Variables + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    int onlp_oid_info_to_json (onlp_oid_hdr_tinfo,
    cJSON ** cj,
    uint32_t flags 
    )
    +
    + +

    OID Info Structure -> JSON.

    +
    Parameters
    + + + + +
    infoThe pointer to the OID's info structure.
    [out]cjReceives the JSON representation.
    flagsThe JSON conversion flags.
    +
    +
    +
    @@ -1761,7 +2363,7 @@ Variables
    Parameters
    - +
    oidThe root OID.
    typeThe OID type filter (optional)
    typesThe OID types filter (optional)
    itfThe iterator function.
    cookieThe cookie.
    @@ -2018,7 +2620,7 @@ Variables
    Parameters
    - +
    tableThe table.
    [out]Receivesthe JSON array object.
    [out]cjpReceives the JSON array object.
    @@ -2301,7 +2903,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-appication.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-appication.html index b1ebf7a6..6d27a12a 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-appication.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-appication.html @@ -95,7 +95,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-config.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-config.html index 76c55d99..9e4fc809 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-config.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-config.html @@ -516,7 +516,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-main.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-main.html index 28ea87b2..c33542e5 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-main.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-main.html @@ -95,7 +95,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-platform.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-platform.html index e34b6333..21fef3aa 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-platform.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-platform.html @@ -108,7 +108,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-porting.html b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-porting.html index 2c0bc5b6..8955ba09 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__onlp-porting.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__onlp-porting.html @@ -82,7 +82,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__platform.html b/packages/base/any/onlp/src/onlp/doc/html/group__platform.html index 9e6c238c..ae59b2a8 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__platform.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__platform.html @@ -235,7 +235,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__psui.html b/packages/base/any/onlp/src/onlp/doc/html/group__psui.html index f341b582..40806385 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__psui.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__psui.html @@ -140,7 +140,7 @@ int  .poid = ONLP_OID_CHASSIS, \
    }, \
    }
    -
    #define ONLP_OID_CHASSIS
    Definition: oids.h:217
    +
    #define ONLP_OID_CHASSIS
    Definition: oids.h:255

    Initialize a static PSU info structure.

    @@ -263,7 +263,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__sfpi.html b/packages/base/any/onlp/src/onlp/doc/html/group__sfpi.html index c9066507..6d51681b 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__sfpi.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__sfpi.html @@ -861,7 +861,7 @@ An error condition.
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__stdattrs.html b/packages/base/any/onlp/src/onlp/doc/html/group__stdattrs.html index 3a0c580e..ef81cef0 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__stdattrs.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__stdattrs.html @@ -116,7 +116,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__system-interfaces.html b/packages/base/any/onlp/src/onlp/doc/html/group__system-interfaces.html index 35da9f12..8c87b6d6 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__system-interfaces.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__system-interfaces.html @@ -94,7 +94,7 @@ Modules diff --git a/packages/base/any/onlp/src/onlp/doc/html/group__thermali.html b/packages/base/any/onlp/src/onlp/doc/html/group__thermali.html index 0a25febf..13e0f037 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/group__thermali.html +++ b/packages/base/any/onlp/src/onlp/doc/html/group__thermali.html @@ -212,7 +212,7 @@ int  .caps = ONLP_THERMAL_CAPS_ALL, \
    }
    ONLP_THERMAL_ID_CREATE
    #define ONLP_THERMAL_ID_CREATE(_id)
    Definition: oids.h:153
    -
    ONLP_OID_CHASSIS
    #define ONLP_OID_CHASSIS
    Definition: oids.h:217
    +
    ONLP_OID_CHASSIS
    #define ONLP_OID_CHASSIS
    Definition: oids.h:255
    ONLP_THERMAL_CAPS_ALL
    #define ONLP_THERMAL_CAPS_ALL
    Definition: thermal.h:55

    This macro should be used in your implementation to declare your static chassis thermal sensors.

    @@ -335,7 +335,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/index.html b/packages/base/any/onlp/src/onlp/doc/html/index.html index f2ce6f0b..0cbf3cef 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/index.html +++ b/packages/base/any/onlp/src/onlp/doc/html/index.html @@ -89,7 +89,7 @@ Section2 diff --git a/packages/base/any/onlp/src/onlp/doc/html/led_8h.html b/packages/base/any/onlp/src/onlp/doc/html/led_8h.html index 202ef991..0c339364 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/led_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/led_8h.html @@ -245,7 +245,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/led_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/led_8h_source.html index 666dfb07..4e319254 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/led_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/led_8h_source.html @@ -281,12 +281,12 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_led_caps_t
    enum onlp_led_caps_e onlp_led_caps_t
    onlp_led_info_t
    struct onlp_led_info_s onlp_led_info_t
    onlp_led_mode_e
    onlp_led_mode_e
    Definition: led.h:56
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    onlp_led_hw_init
    int onlp_led_hw_init(uint32_t flags)
    Hardware initialization of the LED module.
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/ledi_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/ledi_8h_source.html index b74de72b..ed40b137 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/ledi_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/ledi_8h_source.html @@ -154,11 +154,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_led_mode_t
    enum onlp_led_mode_e onlp_led_mode_t
    led.h
    LED Management.
    onlp_led_info_s
    Definition: led.h:83
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/module_8h.html b/packages/base/any/onlp/src/onlp/doc/html/module_8h.html index 72a5ec41..2ded3b2c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/module_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/module_8h.html @@ -149,7 +149,7 @@ Functions diff --git a/packages/base/any/onlp/src/onlp/doc/html/module_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/module_8h_source.html index a2d2876b..c395dda5 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/module_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/module_8h_source.html @@ -154,14 +154,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_module_info_s::hdr
    onlp_oid_hdr_t hdr
    Definition: module.h:43
    onlp_module_hdr_get
    int onlp_module_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t *hdr)
    Get the module header structure.
    onlp_module_info_s
    Module OID Information Structure.
    Definition: module.h:41
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    onlp_module_info_t
    struct onlp_module_info_s onlp_module_info_t
    Module OID Information Structure.
    onlp_module_sw_denit
    int onlp_module_sw_denit(void)
    Deinitialize the module software module.
    onlp_module_info_get
    int onlp_module_info_get(onlp_oid_t oid, onlp_module_info_t *info)
    Get the module info structure.
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/modulei_8h.html b/packages/base/any/onlp/src/onlp/doc/html/modulei_8h.html new file mode 100644 index 00000000..063cf7f0 --- /dev/null +++ b/packages/base/any/onlp/src/onlp/doc/html/modulei_8h.html @@ -0,0 +1,130 @@ + + + + + + +ONLP: module/inc/onlp/platformi/modulei.h File Reference + + + + + + + + + +
    +
    + + + + + + +
    +
    ONLP +
    +
    Open Network Linux Platform APIs
    +
    +
    + + + + + + +
    + All Data Structures Files Functions Variables Typedefs Enumerations Modules Pages
    + + +
    + +
    + + +
    +
    +
    +Functions
    +
    +
    modulei.h File Reference
    +
    +
    + +

    Module OID Platform Implementation. +More...

    +
    #include <onlp/module.h>
    +
    +

    Go to the source code of this file.

    + + + + + + + + + + + + + + + + + +

    +Functions

    +int onlp_modulei_sw_init (void)
     Software initialization of the Module module.
     
    int onlp_modulei_hw_init (uint32_t flags)
     Hardware initialization of the Module module. More...
     
    int onlp_modulei_sw_denit (void)
     Deinitialize the module software module. More...
     
    int onlp_modulei_hdr_get (onlp_oid_id_t id, onlp_oid_hdr_t *rv)
     Retrieve the module's oid header. More...
     
    int onlp_modulei_info_get (onlp_oid_id_t id, onlp_module_info_t *rv)
     Get the information for the given module OID. More...
     
    +

    Detailed Description

    +

    Module OID Platform Implementation.

    +
    + + + + diff --git a/packages/base/any/onlp/src/onlp/doc/html/modulei_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/modulei_8h_source.html new file mode 100644 index 00000000..3922ebac --- /dev/null +++ b/packages/base/any/onlp/src/onlp/doc/html/modulei_8h_source.html @@ -0,0 +1,146 @@ + + + + + + +ONLP: module/inc/onlp/platformi/modulei.h Source File + + + + + + + + + +
    +
    + + + + + + +
    +
    ONLP +
    +
    Open Network Linux Platform APIs
    +
    +
    + + + + + + +
    + All Data Structures Files Functions Variables Typedefs Enumerations Modules Pages
    + + +
    + +
    + + +
    +
    +
    +
    modulei.h
    +
    +
    +Go to the documentation of this file.
    1 /************************************************************
    +
    2  * <bsn.cl fy=2014 v=onl>
    +
    3  *
    +
    4  * Copyright 2014, 2015 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_MODULEI_H__
    +
    29 #define __ONLP_MODULEI_H__
    +
    30 
    +
    31 #include <onlp/module.h>
    +
    32 
    +
    36 int onlp_modulei_sw_init(void);
    +
    37 
    +
    42 int onlp_modulei_hw_init(uint32_t flags);
    +
    43 
    +
    50 int onlp_modulei_sw_denit(void);
    +
    51 
    + +
    58 
    + +
    65 
    +
    66 #endif /* __ONLP_MODULEI_H__ */
    +
    67 /* @} */
    +
    int onlp_modulei_hw_init(uint32_t flags)
    Hardware initialization of the Module module.
    +
    int onlp_modulei_sw_denit(void)
    Deinitialize the module software module.
    +
    Module OID Information Structure.
    Definition: module.h:41
    +
    int onlp_modulei_info_get(onlp_oid_id_t id, onlp_module_info_t *rv)
    Get the information for the given module OID.
    +
    uint32_t onlp_oid_id_t
    Definition: oids.h:55
    +
    int onlp_modulei_sw_init(void)
    Software initialization of the Module module.
    +
    int onlp_modulei_hdr_get(onlp_oid_id_t id, onlp_oid_hdr_t *rv)
    Retrieve the module's oid header.
    +
    Module OID Interface.
    +
    Definition: oids.h:282
    +
    + + + + diff --git a/packages/base/any/onlp/src/onlp/doc/html/modules.html b/packages/base/any/onlp/src/onlp/doc/html/modules.html index 3133b302..08dcc324 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/modules.html +++ b/packages/base/any/onlp/src/onlp/doc/html/modules.html @@ -116,7 +116,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/oids_8h.html b/packages/base/any/onlp/src/onlp/doc/html/oids_8h.html index 7ef53815..cd661fec 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/oids_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/oids_8h.html @@ -149,6 +149,8 @@ Macros   #define ONLP_MODULE_ID_CREATE(_id)   ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_MODULE, _id)   +#define ONLP_GENERIC_ID_CREATE(_id)   ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_GENERIC, _id) +  #define ONLP_OID_IS_CHASSIS(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_CHASSIS, _id)   #define ONLP_OID_CHASSIS_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_CHASSIS, _id) @@ -171,48 +173,60 @@ Macros   #define ONLP_OID_FAN_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_FAN, _id)   +#define ONLP_OID_FAN_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_FAN, _oid, _id) +  +#define ONLP_OID_FAN_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_FAN, _oid, _id) +  #define ONLP_OID_IS_PSU(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_PSU, _id)   #define ONLP_OID_PSU_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_PSU, _id)   #define ONLP_OID_PSU_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_PSU, _id)   - -#define ONLP_OID_IS_LED(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_LED, _id) +#define ONLP_OID_PSU_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_PSU, _oid, _id) +  +#define ONLP_OID_PSU_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_PSU, _oid, _id) +  +#define ONLP_OID_IS_LED(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_LED, _id)   - -#define ONLP_OID_LED_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_LED, _id) +#define ONLP_OID_LED_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_LED, _id)   - -#define ONLP_OID_LED_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_LED, _id) +#define ONLP_OID_LED_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_LED, _id)   - -#define ONLP_OID_IS_SFP(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_SFP, _id) +#define ONLP_OID_LED_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_LED, _oid, _id) +  +#define ONLP_OID_LED_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_LED, _oid, _id) +  +#define ONLP_OID_IS_SFP(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_SFP, _id)   - -#define ONLP_OID_SFP_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_SFP, _id) +#define ONLP_OID_SFP_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_SFP, _id)   - -#define ONLP_OID_SFP_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_SFP, _id) +#define ONLP_OID_SFP_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_SFP, _id)   - -#define ONLP_OID_IS_MODULE(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_MODULE, _id) +#define ONLP_OID_SFP_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_SFP, _oid, _id) +  +#define ONLP_OID_SFP_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_SFP, _oid, _id) +  +#define ONLP_OID_IS_MODULE(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_MODULE, _id)   - -#define ONLP_OID_MODULE_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_MODULE, _id) +#define ONLP_OID_MODULE_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_MODULE, _id)   - -#define ONLP_OID_MODULE_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_MODULE, _id) +#define ONLP_OID_MODULE_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_MODULE, _id)   - -#define ONLP_OID_IS_GENERIC(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_GENERIC, _id) +#define ONLP_OID_MODULE_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_MODULE, _oid, _id) +  +#define ONLP_OID_MODULE_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_MODULE, _oid, _id) +  +#define ONLP_OID_IS_GENERIC(_id)   ONLP_OID_IS_TYPE(ONLP_OID_TYPE_GENERIC, _id)   - -#define ONLP_OID_GENERIC_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_GENERIC, _id) +#define ONLP_OID_GENERIC_VALIDATE(_id)   ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_GENERIC, _id)   - -#define ONLP_OID_GENERIC_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_GENERIC, _id) +#define ONLP_OID_GENERIC_VALIDATE_NR(_id)   ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_GENERIC, _id)   +#define ONLP_OID_GENERIC_VALIDATE_GET_ID(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_GENERIC, _oid, _id) +  +#define ONLP_OID_GENERIC_VALIDATE_GET_ID_NR(_oid, _id)   ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_GENERIC, _oid, _id) +  #define ONLP_OID_CHASSIS   ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_CHASSIS, 1)   #define ONLP_OID_DESC_SIZE   128 @@ -390,8 +404,8 @@ int int onlp_oid_hdr_from_json (cJSON *cj, onlp_oid_hdr_t *hdr)  JSON -> OID Header. More...
      - -int onlp_oid_info_to_json (onlp_oid_hdr_t *info, cJSON **cj, uint32_t flags) +int onlp_oid_info_to_json (onlp_oid_hdr_t *info, cJSON **cj, uint32_t flags) + OID Info Structure -> JSON. More...
      int onlp_oid_to_user_json (onlp_oid_t oid, cJSON **rv, uint32_t flags) @@ -462,7 +476,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/oids_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/oids_8h_source.html index e1bd84a0..b51d52a6 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/oids_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/oids_8h_source.html @@ -217,233 +217,269 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    162 
    163 #define ONLP_MODULE_ID_CREATE(_id) ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_MODULE, _id)
    164 
    -
    166 #define ONLP_OID_IS_CHASSIS(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_CHASSIS, _id)
    -
    167 
    -
    168 #define ONLP_OID_CHASSIS_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_CHASSIS, _id)
    +
    165 #define ONLP_GENERIC_ID_CREATE(_id) ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_GENERIC, _id)
    +
    166 
    +
    168 #define ONLP_OID_IS_CHASSIS(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_CHASSIS, _id)
    169 
    -
    170 #define ONLP_OID_CHASSIS_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_CHASSIS, _id)
    +
    170 #define ONLP_OID_CHASSIS_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_CHASSIS, _id)
    171 
    -
    173 #define ONLP_OID_IS_THERMAL(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_THERMAL, _id)
    -
    174 
    -
    175 #define ONLP_OID_THERMAL_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_THERMAL, _id)
    +
    172 #define ONLP_OID_CHASSIS_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_CHASSIS, _id)
    +
    173 
    +
    175 #define ONLP_OID_IS_THERMAL(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_THERMAL, _id)
    176 
    -
    177 #define ONLP_OID_THERMAL_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_THERMAL, _id)
    +
    177 #define ONLP_OID_THERMAL_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_THERMAL, _id)
    178 
    -
    179 #define ONLP_OID_THERMAL_VALIDATE_GET_ID(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_THERMAL, _oid, _id)
    +
    179 #define ONLP_OID_THERMAL_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_THERMAL, _id)
    180 
    -
    181 #define ONLP_OID_THERMAL_VALIDATE_GET_ID_NR(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_THERMAL, _oid, _id)
    +
    181 #define ONLP_OID_THERMAL_VALIDATE_GET_ID(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_THERMAL, _oid, _id)
    182 
    -
    184 #define ONLP_OID_IS_FAN(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_FAN, _id)
    -
    185 
    -
    186 #define ONLP_OID_FAN_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_FAN, _id)
    +
    183 #define ONLP_OID_THERMAL_VALIDATE_GET_ID_NR(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_THERMAL, _oid, _id)
    +
    184 
    +
    186 #define ONLP_OID_IS_FAN(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_FAN, _id)
    187 
    -
    188 #define ONLP_OID_FAN_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_FAN, _id)
    +
    188 #define ONLP_OID_FAN_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_FAN, _id)
    189 
    -
    191 #define ONLP_OID_IS_PSU(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_PSU, _id)
    -
    192 
    -
    193 #define ONLP_OID_PSU_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_PSU, _id)
    -
    194 
    -
    195 #define ONLP_OID_PSU_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_PSU, _id)
    -
    196 
    -
    197 #define ONLP_OID_IS_LED(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_LED, _id)
    -
    198 #define ONLP_OID_LED_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_LED, _id)
    -
    199 #define ONLP_OID_LED_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_LED, _id)
    +
    190 #define ONLP_OID_FAN_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_FAN, _id)
    +
    191 
    +
    192 #define ONLP_OID_FAN_VALIDATE_GET_ID(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_FAN, _oid, _id)
    +
    193 
    +
    194 #define ONLP_OID_FAN_VALIDATE_GET_ID_NR(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_FAN, _oid, _id)
    +
    195 
    +
    197 #define ONLP_OID_IS_PSU(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_PSU, _id)
    +
    198 
    +
    199 #define ONLP_OID_PSU_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_PSU, _id)
    200 
    -
    201 #define ONLP_OID_IS_SFP(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_SFP, _id)
    -
    202 #define ONLP_OID_SFP_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_SFP, _id)
    -
    203 #define ONLP_OID_SFP_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_SFP, _id)
    +
    201 #define ONLP_OID_PSU_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_PSU, _id)
    +
    202 
    +
    203 #define ONLP_OID_PSU_VALIDATE_GET_ID(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_PSU, _oid, _id)
    204 
    -
    205 #define ONLP_OID_IS_MODULE(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_MODULE, _id)
    -
    206 #define ONLP_OID_MODULE_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_MODULE, _id)
    -
    207 #define ONLP_OID_MODULE_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_MODULE, _id)
    -
    208 
    -
    209 #define ONLP_OID_IS_GENERIC(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_GENERIC, _id)
    -
    210 #define ONLP_OID_GENERIC_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_GENERIC, _id)
    -
    211 #define ONLP_OID_GENERIC_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_GENERIC, _id)
    -
    212 
    +
    205 #define ONLP_OID_PSU_VALIDATE_GET_ID_NR(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_PSU, _oid, _id)
    +
    206 
    +
    208 #define ONLP_OID_IS_LED(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_LED, _id)
    +
    209 
    +
    210 #define ONLP_OID_LED_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_LED, _id)
    +
    211 
    +
    212 #define ONLP_OID_LED_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_LED, _id)
    213 
    -
    217 #define ONLP_OID_CHASSIS ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_CHASSIS, 1)
    +
    214 #define ONLP_OID_LED_VALIDATE_GET_ID(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_LED, _oid, _id)
    +
    215 
    +
    216 #define ONLP_OID_LED_VALIDATE_GET_ID_NR(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_LED, _oid, _id)
    +
    217 
    218 
    -
    222 #define ONLP_OID_DESC_SIZE 128
    +
    220 #define ONLP_OID_IS_SFP(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_SFP, _id)
    +
    221 
    +
    222 #define ONLP_OID_SFP_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_SFP, _id)
    223 
    -
    224 typedef char onlp_oid_desc_t[ONLP_OID_DESC_SIZE];
    +
    224 #define ONLP_OID_SFP_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_SFP, _id)
    225 
    -
    226 /* fixme */
    -
    227 #define ONLP_OID_TABLE_SIZE 256
    -
    228 typedef onlp_oid_t onlp_oid_table_t[ONLP_OID_TABLE_SIZE];
    -
    229 #define ONLP_OID_TABLE_SIZE_BYTES (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE)
    -
    230 #define ONLP_OID_TABLE_COPY(_dst, _src) memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES)
    -
    231 #define ONLP_OID_TABLE_CLEAR(_table) memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES)
    +
    226 #define ONLP_OID_SFP_VALIDATE_GET_ID(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_SFP, _oid, _id)
    +
    227 
    +
    228 #define ONLP_OID_SFP_VALIDATE_GET_ID_NR(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_SFP, _oid, _id)
    +
    229 
    +
    231 #define ONLP_OID_IS_MODULE(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_MODULE, _id)
    232 
    -
    233 
    -
    237 #define ONLP_OID_THERMAL_ENTRY(_id, _desc, _parent_type, _parent_id) \
    -
    238  { ONLP_THERMAL_ID_CREATE(_id), _desc, ONLP_OID_TYPE_CREATE(_parent_type, _parent_id) }
    -
    239 
    +
    233 #define ONLP_OID_MODULE_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_MODULE, _id)
    +
    234 
    +
    235 #define ONLP_OID_MODULE_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_MODULE, _id)
    +
    236 
    +
    237 #define ONLP_OID_MODULE_VALIDATE_GET_ID(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_MODULE, _oid, _id)
    +
    238 
    +
    239 #define ONLP_OID_MODULE_VALIDATE_GET_ID_NR(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_MODULE, _oid, _id)
    240 
    -
    244 typedef struct onlp_oid_hdr_s {
    -
    246  onlp_oid_t id;
    -
    248  onlp_oid_desc_t description;
    -
    250  onlp_oid_t poid;
    -
    252  onlp_oid_table_t coids;
    -
    253 
    -
    255  onlp_oid_status_flags_t status;
    +
    242 #define ONLP_OID_IS_GENERIC(_id) ONLP_OID_IS_TYPE(ONLP_OID_TYPE_GENERIC, _id)
    +
    243 
    +
    244 #define ONLP_OID_GENERIC_VALIDATE(_id) ONLP_OID_TYPE_VALIDATE(ONLP_OID_TYPE_GENERIC, _id)
    +
    245 
    +
    246 #define ONLP_OID_GENERIC_VALIDATE_NR(_id) ONLP_OID_TYPE_VALIDATE_NR(ONLP_OID_TYPE_GENERIC, _id)
    +
    247 
    +
    248 #define ONLP_OID_GENERIC_VALIDATE_GET_ID(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID(ONLP_OID_TYPE_GENERIC, _oid, _id)
    +
    249 
    +
    250 #define ONLP_OID_GENERIC_VALIDATE_GET_ID_NR(_oid, _id) ONLP_OID_TYPE_VALIDATE_GET_ID_NR(ONLP_OID_TYPE_GENERIC, _oid, _id)
    +
    251 
    +
    255 #define ONLP_OID_CHASSIS ONLP_OID_TYPE_CREATE(ONLP_OID_TYPE_CHASSIS, 1)
    256 
    -
    257 } onlp_oid_hdr_t;
    -
    258 
    -
    259 
    -
    265 int onlp_oid_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* hdr);
    -
    266 
    -
    272 int onlp_oid_info_get(onlp_oid_t oid, onlp_oid_hdr_t** info);
    -
    273 
    -
    274 
    -
    278 typedef int (*onlp_oid_iterate_f)(onlp_oid_t oid, void* cookie);
    -
    279 
    -
    287 int onlp_oid_iterate(onlp_oid_t oid, onlp_oid_type_flags_t types,
    -
    288  onlp_oid_iterate_f itf, void* cookie);
    -
    289 
    -
    290 
    -
    291 int onlp_oid_info_get_all(onlp_oid_t root, onlp_oid_type_flags_t types,
    -
    292  uint32_t flags, biglist_t** list);
    -
    293 
    -
    294 int onlp_oid_hdr_get_all(onlp_oid_t root, onlp_oid_type_flags_t types,
    -
    295  uint32_t flags, biglist_t** list);
    +
    260 #define ONLP_OID_DESC_SIZE 128
    +
    261 
    +
    262 typedef char onlp_oid_desc_t[ONLP_OID_DESC_SIZE];
    +
    263 
    +
    264 /* fixme */
    +
    265 #define ONLP_OID_TABLE_SIZE 256
    +
    266 typedef onlp_oid_t onlp_oid_table_t[ONLP_OID_TABLE_SIZE];
    +
    267 #define ONLP_OID_TABLE_SIZE_BYTES (sizeof(onlp_oid_t)*ONLP_OID_TABLE_SIZE)
    +
    268 #define ONLP_OID_TABLE_COPY(_dst, _src) memcpy(_dst, _src, ONLP_OID_TABLE_SIZE_BYTES)
    +
    269 #define ONLP_OID_TABLE_CLEAR(_table) memset(_table, 0, ONLP_OID_TABLE_SIZE_BYTES)
    +
    270 
    +
    271 
    +
    275 #define ONLP_OID_THERMAL_ENTRY(_id, _desc, _parent_type, _parent_id) \
    +
    276  { ONLP_THERMAL_ID_CREATE(_id), _desc, ONLP_OID_TYPE_CREATE(_parent_type, _parent_id) }
    +
    277 
    +
    278 
    +
    282 typedef struct onlp_oid_hdr_s {
    +
    284  onlp_oid_t id;
    +
    286  onlp_oid_desc_t description;
    +
    288  onlp_oid_t poid;
    +
    290  onlp_oid_table_t coids;
    +
    291 
    +
    293  onlp_oid_status_flags_t status;
    +
    294 
    +
    295 } onlp_oid_hdr_t;
    296 
    -
    297 int onlp_oid_get_all_free(biglist_t* list);
    -
    298 
    -
    302 #define ONLP_OID_STATUS_FLAGS_GET(_ptr) \
    -
    303  (((onlp_oid_hdr_t*)_ptr)->status)
    +
    297 
    +
    303 int onlp_oid_hdr_get(onlp_oid_t oid, onlp_oid_hdr_t* hdr);
    304 
    -
    305 #define ONLP_OID_STATUS_FLAG_GET_VALUE(_ptr, _name) \
    -
    306  AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    307 
    -
    308 #define ONLP_OID_STATUS_FLAG_SET_VALUE(_ptr, _name, _value) \
    -
    309  AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value)
    -
    310 
    -
    311 #define ONLP_OID_STATUS_FLAG_SET(_ptr, _name) \
    -
    312  AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    313 
    -
    314 #define ONLP_OID_STATUS_FLAG_CLR(_ptr, _name) \
    -
    315  AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    316 
    -
    317 #define ONLP_OID_STATUS_FLAG_IS_SET(_ptr, _name) \
    -
    318  AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    319 
    -
    320 #define ONLP_OID_STATUS_FLAG_NOT_SET(_ptr, _name) \
    -
    321  AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    -
    322 
    -
    326 #define ONLP_OID_PRESENT(_ptr) \
    -
    327  ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT)
    +
    310 int onlp_oid_info_get(onlp_oid_t oid, onlp_oid_hdr_t** info);
    +
    311 
    +
    312 
    +
    316 typedef int (*onlp_oid_iterate_f)(onlp_oid_t oid, void* cookie);
    +
    317 
    +
    325 int onlp_oid_iterate(onlp_oid_t oid, onlp_oid_type_flags_t types,
    +
    326  onlp_oid_iterate_f itf, void* cookie);
    +
    327 
    328 
    -
    329 #define ONLP_OID_FAILED(_ptr) \
    -
    330  ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED)
    +
    329 int onlp_oid_info_get_all(onlp_oid_t root, onlp_oid_type_flags_t types,
    +
    330  uint32_t flags, biglist_t** list);
    331 
    -
    338 #define ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, _expr) \
    -
    339  for(_oidp = _table; _oidp < (_table+ONLP_OID_TABLE_SIZE); _oidp++) \
    -
    340  if( (*_oidp) && (_expr) )
    -
    341 
    -
    347 #define ONLP_OID_TABLE_ITER(_table, _oidp) ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, 1)
    +
    332 int onlp_oid_hdr_get_all(onlp_oid_t root, onlp_oid_type_flags_t types,
    +
    333  uint32_t flags, biglist_t** list);
    +
    334 
    +
    335 int onlp_oid_get_all_free(biglist_t* list);
    +
    336 
    +
    340 #define ONLP_OID_STATUS_FLAGS_GET(_ptr) \
    +
    341  (((onlp_oid_hdr_t*)_ptr)->status)
    +
    342 
    +
    343 #define ONLP_OID_STATUS_FLAG_GET_VALUE(_ptr, _name) \
    +
    344  AIM_FLAG_GET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    345 
    +
    346 #define ONLP_OID_STATUS_FLAG_SET_VALUE(_ptr, _name, _value) \
    +
    347  AIM_FLAG_SET_VALUE(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name, _value)
    348 
    -
    356 #define ONLP_OID_TABLE_ITER_TYPE(_table, _oidp, _type) \
    -
    357  ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, ONLP_OID_IS_TYPE(ONLP_OID_TYPE_##_type, *_oidp))
    -
    358 
    -
    359 
    -
    363 int onlp_oid_is_present(onlp_oid_t* oid);
    -
    364 
    -
    365 
    -
    369 int onlp_oid_to_str(onlp_oid_t oid, char* rstr);
    -
    370 int onlp_oid_to_user_str(onlp_oid_t oid, char* rstr);
    -
    371 
    -
    375 int onlp_oid_from_str(char* str, onlp_oid_t* roid);
    -
    376 
    -
    382 int onlp_oid_table_to_json(onlp_oid_table_t table, cJSON** cjp);
    -
    383 
    -
    389 int onlp_oid_table_from_json(cJSON* cj, onlp_oid_table_t table);
    -
    390 
    -
    396 int onlp_oid_hdr_to_json(onlp_oid_hdr_t* hdr, cJSON** cj, uint32_t flags);
    +
    349 #define ONLP_OID_STATUS_FLAG_SET(_ptr, _name) \
    +
    350  AIM_FLAG_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    351 
    +
    352 #define ONLP_OID_STATUS_FLAG_CLR(_ptr, _name) \
    +
    353  AIM_FLAG_CLR(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    354 
    +
    355 #define ONLP_OID_STATUS_FLAG_IS_SET(_ptr, _name) \
    +
    356  AIM_FLAG_IS_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    357 
    +
    358 #define ONLP_OID_STATUS_FLAG_NOT_SET(_ptr, _name) \
    +
    359  AIM_FLAG_NOT_SET(ONLP_OID_STATUS_FLAGS_GET(_ptr), ONLP_OID_STATUS_FLAG_##_name)
    +
    360 
    +
    364 #define ONLP_OID_PRESENT(_ptr) \
    +
    365  ONLP_OID_STATUS_FLAG_IS_SET(_ptr, PRESENT)
    +
    366 
    +
    367 #define ONLP_OID_FAILED(_ptr) \
    +
    368  ONLP_OID_STATUS_FLAG_IS_SET(_ptr, FAILED)
    +
    369 
    +
    376 #define ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, _expr) \
    +
    377  for(_oidp = _table; _oidp < (_table+ONLP_OID_TABLE_SIZE); _oidp++) \
    +
    378  if( (*_oidp) && (_expr) )
    +
    379 
    +
    385 #define ONLP_OID_TABLE_ITER(_table, _oidp) ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, 1)
    +
    386 
    +
    394 #define ONLP_OID_TABLE_ITER_TYPE(_table, _oidp, _type) \
    +
    395  ONLP_OID_TABLE_ITER_EXPR(_table, _oidp, ONLP_OID_IS_TYPE(ONLP_OID_TYPE_##_type, *_oidp))
    +
    396 
    397 
    -
    403 int onlp_oid_hdr_from_json(cJSON* cj, onlp_oid_hdr_t* hdr);
    -
    404 
    -
    405 int onlp_oid_info_to_json(onlp_oid_hdr_t* info, cJSON** cj, uint32_t flags);
    -
    409 int onlp_oid_to_user_json(onlp_oid_t oid, cJSON** rv, uint32_t flags);
    -
    410 int onlp_oid_to_json(onlp_oid_t oid, cJSON** rv, uint32_t flags);
    -
    411 int onlp_oid_from_json(cJSON* cj, onlp_oid_hdr_t** hdr, biglist_t** all, uint32_t flags);
    -
    412 
    -
    416 int onlp_oid_json_verify(onlp_oid_t oid);
    -
    417 
    -
    418 /******************************************************************************
    -
    419  *
    -
    420  * Enumeration Support Definitions.
    -
    421  *
    -
    422  * Please do not add additional code beyond this point.
    -
    423  *
    -
    424  *****************************************************************************/
    -
    425 /* <auto.start.enum(tag:oid).supportheader> */
    -
    427 const char* onlp_oid_json_flag_name(onlp_oid_json_flag_t e);
    +
    401 int onlp_oid_is_present(onlp_oid_t* oid);
    +
    402 
    +
    403 
    +
    407 int onlp_oid_to_str(onlp_oid_t oid, char* rstr);
    +
    408 int onlp_oid_to_user_str(onlp_oid_t oid, char* rstr);
    +
    409 
    +
    413 int onlp_oid_from_str(char* str, onlp_oid_t* roid);
    +
    414 
    +
    420 int onlp_oid_table_to_json(onlp_oid_table_t table, cJSON** cjp);
    +
    421 
    +
    427 int onlp_oid_table_from_json(cJSON* cj, onlp_oid_table_t table);
    428 
    -
    430 int onlp_oid_json_flag_value(const char* str, onlp_oid_json_flag_t* e, int substr);
    -
    431 
    -
    433 const char* onlp_oid_json_flag_desc(onlp_oid_json_flag_t e);
    -
    434 
    -
    436 int onlp_oid_json_flag_valid(onlp_oid_json_flag_t e);
    -
    437 
    -
    439 #define ONLP_OID_JSON_FLAG_VALID(_e) \
    -
    440  (onlp_oid_json_flag_valid((_e)))
    -
    441 
    -
    443 extern aim_map_si_t onlp_oid_json_flag_map[];
    -
    445 extern aim_map_si_t onlp_oid_json_flag_desc_map[];
    -
    446 
    -
    448 const char* onlp_oid_status_flag_name(onlp_oid_status_flag_t e);
    -
    449 
    -
    451 int onlp_oid_status_flag_value(const char* str, onlp_oid_status_flag_t* e, int substr);
    -
    452 
    -
    454 const char* onlp_oid_status_flag_desc(onlp_oid_status_flag_t e);
    -
    455 
    -
    457 int onlp_oid_status_flag_valid(onlp_oid_status_flag_t e);
    +
    435 int onlp_oid_hdr_to_json(onlp_oid_hdr_t* hdr, cJSON** cj, uint32_t flags);
    +
    436 
    +
    442 int onlp_oid_hdr_from_json(cJSON* cj, onlp_oid_hdr_t* hdr);
    +
    443 
    +
    450 int onlp_oid_info_to_json(onlp_oid_hdr_t* info, cJSON** cj, uint32_t flags);
    +
    451 
    +
    455 int onlp_oid_to_user_json(onlp_oid_t oid, cJSON** rv, uint32_t flags);
    +
    456 int onlp_oid_to_json(onlp_oid_t oid, cJSON** rv, uint32_t flags);
    +
    457 int onlp_oid_from_json(cJSON* cj, onlp_oid_hdr_t** hdr, biglist_t** all, uint32_t flags);
    458 
    -
    460 #define ONLP_OID_STATUS_FLAG_VALID(_e) \
    -
    461  (onlp_oid_status_flag_valid((_e)))
    -
    462 
    -
    464 extern aim_map_si_t onlp_oid_status_flag_map[];
    -
    466 extern aim_map_si_t onlp_oid_status_flag_desc_map[];
    -
    467 
    -
    469 const char* onlp_oid_type_name(onlp_oid_type_t e);
    -
    470 
    -
    472 int onlp_oid_type_value(const char* str, onlp_oid_type_t* e, int substr);
    -
    473 
    -
    475 const char* onlp_oid_type_desc(onlp_oid_type_t e);
    -
    476 
    -
    478 int onlp_oid_type_valid(onlp_oid_type_t e);
    -
    479 
    -
    481 #define ONLP_OID_TYPE_VALID(_e) \
    -
    482  (onlp_oid_type_valid((_e)))
    +
    462 int onlp_oid_json_verify(onlp_oid_t oid);
    +
    463 
    +
    464 /******************************************************************************
    +
    465  *
    +
    466  * Enumeration Support Definitions.
    +
    467  *
    +
    468  * Please do not add additional code beyond this point.
    +
    469  *
    +
    470  *****************************************************************************/
    +
    471 /* <auto.start.enum(tag:oid).supportheader> */
    +
    473 const char* onlp_oid_json_flag_name(onlp_oid_json_flag_t e);
    +
    474 
    +
    476 int onlp_oid_json_flag_value(const char* str, onlp_oid_json_flag_t* e, int substr);
    +
    477 
    +
    479 const char* onlp_oid_json_flag_desc(onlp_oid_json_flag_t e);
    +
    480 
    +
    482 int onlp_oid_json_flag_valid(onlp_oid_json_flag_t e);
    483 
    -
    485 extern aim_map_si_t onlp_oid_type_map[];
    -
    487 extern aim_map_si_t onlp_oid_type_desc_map[];
    -
    488 
    -
    490 const char* onlp_oid_type_flag_name(onlp_oid_type_flag_t e);
    -
    491 
    -
    493 int onlp_oid_type_flag_value(const char* str, onlp_oid_type_flag_t* e, int substr);
    -
    494 
    -
    496 const char* onlp_oid_type_flag_desc(onlp_oid_type_flag_t e);
    -
    497 
    -
    499 int onlp_oid_type_flag_valid(onlp_oid_type_flag_t e);
    -
    500 
    -
    502 #define ONLP_OID_TYPE_FLAG_VALID(_e) \
    -
    503  (onlp_oid_type_flag_valid((_e)))
    +
    485 #define ONLP_OID_JSON_FLAG_VALID(_e) \
    +
    486  (onlp_oid_json_flag_valid((_e)))
    +
    487 
    +
    489 extern aim_map_si_t onlp_oid_json_flag_map[];
    +
    491 extern aim_map_si_t onlp_oid_json_flag_desc_map[];
    +
    492 
    +
    494 const char* onlp_oid_status_flag_name(onlp_oid_status_flag_t e);
    +
    495 
    +
    497 int onlp_oid_status_flag_value(const char* str, onlp_oid_status_flag_t* e, int substr);
    +
    498 
    +
    500 const char* onlp_oid_status_flag_desc(onlp_oid_status_flag_t e);
    +
    501 
    +
    503 int onlp_oid_status_flag_valid(onlp_oid_status_flag_t e);
    504 
    -
    506 extern aim_map_si_t onlp_oid_type_flag_map[];
    -
    508 extern aim_map_si_t onlp_oid_type_flag_desc_map[];
    -
    509 /* <auto.end.enum(tag:oid).supportheader> */
    -
    510 
    -
    511 #endif /* __ONLP_OID_H__ */
    -
    512 /* @} */
    +
    506 #define ONLP_OID_STATUS_FLAG_VALID(_e) \
    +
    507  (onlp_oid_status_flag_valid((_e)))
    +
    508 
    +
    510 extern aim_map_si_t onlp_oid_status_flag_map[];
    +
    512 extern aim_map_si_t onlp_oid_status_flag_desc_map[];
    +
    513 
    +
    515 const char* onlp_oid_type_name(onlp_oid_type_t e);
    +
    516 
    +
    518 int onlp_oid_type_value(const char* str, onlp_oid_type_t* e, int substr);
    +
    519 
    +
    521 const char* onlp_oid_type_desc(onlp_oid_type_t e);
    +
    522 
    +
    524 int onlp_oid_type_valid(onlp_oid_type_t e);
    +
    525 
    +
    527 #define ONLP_OID_TYPE_VALID(_e) \
    +
    528  (onlp_oid_type_valid((_e)))
    +
    529 
    +
    531 extern aim_map_si_t onlp_oid_type_map[];
    +
    533 extern aim_map_si_t onlp_oid_type_desc_map[];
    +
    534 
    +
    536 const char* onlp_oid_type_flag_name(onlp_oid_type_flag_t e);
    +
    537 
    +
    539 int onlp_oid_type_flag_value(const char* str, onlp_oid_type_flag_t* e, int substr);
    +
    540 
    +
    542 const char* onlp_oid_type_flag_desc(onlp_oid_type_flag_t e);
    +
    543 
    +
    545 int onlp_oid_type_flag_valid(onlp_oid_type_flag_t e);
    +
    546 
    +
    548 #define ONLP_OID_TYPE_FLAG_VALID(_e) \
    +
    549  (onlp_oid_type_flag_valid((_e)))
    +
    550 
    +
    552 extern aim_map_si_t onlp_oid_type_flag_map[];
    +
    554 extern aim_map_si_t onlp_oid_type_flag_desc_map[];
    +
    555 /* <auto.end.enum(tag:oid).supportheader> */
    +
    556 
    +
    557 #endif /* __ONLP_OID_H__ */
    +
    558 /* @} */
    onlp_config.h
    onlp Configuration Header
    onlp_oid_json_flag_name
    const char * onlp_oid_json_flag_name(onlp_oid_json_flag_t e)
    onlp_oid_hdr_t
    struct onlp_oid_hdr_s onlp_oid_hdr_t
    onlp_oid_status_flag_value
    int onlp_oid_status_flag_value(const char *str, onlp_oid_status_flag_t *e, int substr)
    -
    onlp_oid_hdr_s::status
    onlp_oid_status_flags_t status
    Definition: oids.h:255
    +
    onlp_oid_hdr_s::status
    onlp_oid_status_flags_t status
    Definition: oids.h:293
    onlp_oid_info_get
    int onlp_oid_info_get(onlp_oid_t oid, onlp_oid_hdr_t **info)
    Get the information structure for a given OID.
    onlp_oid_json_flag_desc_map
    aim_map_si_t onlp_oid_json_flag_desc_map[]
    +
    onlp_oid_info_to_json
    int onlp_oid_info_to_json(onlp_oid_hdr_t *info, cJSON **cj, uint32_t flags)
    OID Info Structure -> JSON.
    onlp_oid_type_flag_value
    int onlp_oid_type_flag_value(const char *str, onlp_oid_type_flag_t *e, int substr)
    onlp_oid_status_flag_desc
    const char * onlp_oid_status_flag_desc(onlp_oid_status_flag_t e)
    onlp_oid_status_flag_map
    aim_map_si_t onlp_oid_status_flag_map[]
    @@ -467,11 +503,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_oid_status_flag_desc_map
    aim_map_si_t onlp_oid_status_flag_desc_map[]
    onlp_oid_table_from_json
    int onlp_oid_table_from_json(cJSON *cj, onlp_oid_table_t table)
    JSON -> OID Table.
    onlp_oid_id_t
    uint32_t onlp_oid_id_t
    Definition: oids.h:55
    -
    onlp_oid_hdr_s::coids
    onlp_oid_table_t coids
    Definition: oids.h:252
    +
    onlp_oid_hdr_s::coids
    onlp_oid_table_t coids
    Definition: oids.h:290
    onlp_oid_type_flag_map
    aim_map_si_t onlp_oid_type_flag_map[]
    onlp_oid_type_desc_map
    aim_map_si_t onlp_oid_type_desc_map[]
    onlp_oid_status_flag_t
    enum onlp_oid_status_flag_e onlp_oid_status_flag_t
    -
    onlp_oid_hdr_s::id
    onlp_oid_t id
    Definition: oids.h:246
    +
    onlp_oid_hdr_s::id
    onlp_oid_t id
    Definition: oids.h:284
    onlp_oid_json_flag_e
    onlp_oid_json_flag_e
    Definition: oids.h:59
    onlp_oid_table_to_json
    int onlp_oid_table_to_json(onlp_oid_table_t table, cJSON **cjp)
    OID Table -> JSON.
    onlp_oid_json_flag_desc
    const char * onlp_oid_json_flag_desc(onlp_oid_json_flag_t e)
    @@ -480,25 +516,25 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_oid_status_flags_t
    uint32_t onlp_oid_status_flags_t
    Definition: oids.h:106
    onlp_oid_json_flag_valid
    int onlp_oid_json_flag_valid(onlp_oid_json_flag_t e)
    onlp_oid_type_e
    onlp_oid_type_e
    Definition: oids.h:74
    -
    ONLP_OID_DESC_SIZE
    #define ONLP_OID_DESC_SIZE
    Definition: oids.h:222
    +
    ONLP_OID_DESC_SIZE
    #define ONLP_OID_DESC_SIZE
    Definition: oids.h:260
    onlp_oid_json_flag_value
    int onlp_oid_json_flag_value(const char *str, onlp_oid_json_flag_t *e, int substr)
    -
    onlp_oid_hdr_s::description
    onlp_oid_desc_t description
    Definition: oids.h:248
    -
    onlp_oid_hdr_s::poid
    onlp_oid_t poid
    Definition: oids.h:250
    +
    onlp_oid_hdr_s::description
    onlp_oid_desc_t description
    Definition: oids.h:286
    +
    onlp_oid_hdr_s::poid
    onlp_oid_t poid
    Definition: oids.h:288
    onlp_oid_json_verify
    int onlp_oid_json_verify(onlp_oid_t oid)
    onlp_oid_type_flag_valid
    int onlp_oid_type_flag_valid(onlp_oid_type_flag_t e)
    onlp_oid_type_flags_t
    uint32_t onlp_oid_type_flags_t
    Definition: oids.h:101
    onlp_oid_status_flag_valid
    int onlp_oid_status_flag_valid(onlp_oid_status_flag_t e)
    onlp_oid_iterate
    int onlp_oid_iterate(onlp_oid_t oid, onlp_oid_type_flags_t types, onlp_oid_iterate_f itf, void *cookie)
    Iterate over all platform OIDs.
    onlp_oid_json_flag_t
    enum onlp_oid_json_flag_e onlp_oid_json_flag_t
    -
    onlp_oid_iterate_f
    int(* onlp_oid_iterate_f)(onlp_oid_t oid, void *cookie)
    Definition: oids.h:278
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_iterate_f
    int(* onlp_oid_iterate_f)(onlp_oid_t oid, void *cookie)
    Definition: oids.h:316
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    onlp_oid_type_name
    const char * onlp_oid_type_name(onlp_oid_type_t e)
    onlp_oid_is_present
    int onlp_oid_is_present(onlp_oid_t *oid)
    Return whether an OID is present or not.
    onlp_oid_type_flag_desc
    const char * onlp_oid_type_flag_desc(onlp_oid_type_flag_t e)
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/onlp_8h_source.html index c9e9b738..0ffebb08 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp_8h_source.html @@ -209,7 +209,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h.html index 7bba510e..9bec27e8 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h.html @@ -176,7 +176,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h_source.html index 2d337665..a42199ee 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__config_8h_source.html @@ -231,7 +231,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__dox_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__dox_8h_source.html index a8d4d77c..0094630b 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__dox_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__dox_8h_source.html @@ -120,7 +120,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h.html index 83635088..c6f9f552 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h.html @@ -104,7 +104,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h_source.html index 6352e40f..e68c95ba 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/onlp__porting_8h_source.html @@ -176,7 +176,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/platform_8h.html b/packages/base/any/onlp/src/onlp/doc/html/platform_8h.html index 2caf5fdd..349eec46 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/platform_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/platform_8h.html @@ -143,7 +143,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/platform_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/platform_8h_source.html index f3bd01d4..3c4b488e 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/platform_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/platform_8h_source.html @@ -154,7 +154,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/platformi_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/platformi_8h_source.html index cb096d40..0b1ef23c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/platformi_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/platformi_8h_source.html @@ -138,7 +138,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/psu_8h.html b/packages/base/any/onlp/src/onlp/doc/html/psu_8h.html index bbfc7e31..7311dd12 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/psu_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/psu_8h.html @@ -219,7 +219,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/psu_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/psu_8h_source.html index c7f3c650..c9298c5d 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/psu_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/psu_8h_source.html @@ -272,13 +272,13 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_psu_caps_desc_map
    aim_map_si_t onlp_psu_caps_desc_map[]
    onlp_psu_info_from_json
    int onlp_psu_info_from_json(cJSON *cj, onlp_psu_info_t *info)
    Convert a JSON object to a PSU info structure.
    onlp_psu_type_desc_map
    aim_map_si_t onlp_psu_type_desc_map[]
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    onlp_psu_info_t::model
    char model[ONLP_CONFIG_INFO_STR_MAX]
    Definition: psu.h:66
    onlp_psu_info_t::mpout
    int mpout
    Definition: psu.h:93
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/psui_8h.html b/packages/base/any/onlp/src/onlp/doc/html/psui_8h.html index da68f23b..a5699248 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/psui_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/psui_8h.html @@ -129,7 +129,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/psui_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/psui_8h_source.html index c36cccd9..110f5dcf 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/psui_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/psui_8h_source.html @@ -144,11 +144,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    psu.h
    Power Supply Management.
    onlp_psui_info_get
    int onlp_psui_info_get(onlp_oid_id_t id, onlp_psu_info_t *rv)
    Get the information structure for the given PSU.
    onlp_psu_info_t
    Definition: psu.h:61
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/all_6.js b/packages/base/any/onlp/src/onlp/doc/html/search/all_6.js index 68f1d6e9..81724e2e 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/all_6.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/all_6.js @@ -2,6 +2,7 @@ var searchData= [ ['generic_2eh',['generic.h',['../generic_8h.html',1,'']]], ['generici',['generici',['../group__generici.html',1,'']]], + ['generici_2eh',['generici.h',['../generici_8h.html',1,'']]], ['generics',['Generics',['../group__oid-generic.html',1,'']]], ['general_20oid_20interfaces',['General OID Interfaces',['../group__oid-interfaces.html',1,'']]], ['general_20system_20interfaces',['General System Interfaces',['../group__system-interfaces.html',1,'']]] diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/all_a.js b/packages/base/any/onlp/src/onlp/doc/html/search/all_a.js index 689e56e8..8e9abbf2 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/all_a.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/all_a.js @@ -10,6 +10,7 @@ var searchData= ['module_20documentation',['Module Documentation',['../group__module-interfaces.html',1,'']]], ['module_2eh',['module.h',['../module_8h.html',1,'']]], ['modulei',['modulei',['../group__modulei.html',1,'']]], + ['modulei_2eh',['modulei.h',['../modulei_8h.html',1,'']]], ['mpin',['mpin',['../structonlp__psu__info__t.html#af213d7ec94b6dbcc467fa64d35bfc1ab',1,'onlp_psu_info_t']]], ['mpout',['mpout',['../structonlp__psu__info__t.html#ae477a0f4b80d4073632b641fb4efdd4d',1,'onlp_psu_info_t']]], ['mvin',['mvin',['../structonlp__psu__info__t.html#a0a255c38ff5f8cdb6272c9dcde64a1b8',1,'onlp_psu_info_t']]], diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/all_c.js b/packages/base/any/onlp/src/onlp/doc/html/search/all_c.js index d1988b71..3b1a2b66 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/all_c.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/all_c.js @@ -121,6 +121,7 @@ var searchData= ['onlp_5ffani_5fsw_5finit',['onlp_fani_sw_init',['../group__fani.html#ga1feeaf21197e6fca528db5bb9a6a28f6',1,'fani.h']]], ['onlp_5fgeneric_5fhdr_5fget',['onlp_generic_hdr_get',['../group__oid-generic.html#gae6be5cc3102ef407b2107dd73e1c3d82',1,'generic.h']]], ['onlp_5fgeneric_5fhw_5finit',['onlp_generic_hw_init',['../group__oid-generic.html#gaf08e41b2394efc5c6c5ac5f404f7271e',1,'generic.h']]], + ['onlp_5fgeneric_5fid_5fcreate',['ONLP_GENERIC_ID_CREATE',['../group__oid.html#ga4df3e5b423011e9daf67b001375ae1db',1,'oids.h']]], ['onlp_5fgeneric_5finfo_5ffrom_5fjson',['onlp_generic_info_from_json',['../group__oid-generic.html#ga38ec8e74265983fb67e744d3d19b55f8',1,'generic.h']]], ['onlp_5fgeneric_5finfo_5fget',['onlp_generic_info_get',['../group__oid-generic.html#gae24e262357a44ba5d5c10c2bb9aacaf9',1,'generic.h']]], ['onlp_5fgeneric_5finfo_5fs',['onlp_generic_info_s',['../structonlp__generic__info__s.html',1,'']]], @@ -129,6 +130,11 @@ var searchData= ['onlp_5fgeneric_5finfo_5fto_5fuser_5fjson',['onlp_generic_info_to_user_json',['../group__oid-generic.html#ga52f776c183f45d6231c403736ed1baff',1,'generic.h']]], ['onlp_5fgeneric_5fsw_5fdenit',['onlp_generic_sw_denit',['../group__oid-generic.html#ga2281d926ce9b0cce1dc98d8a37d70b4b',1,'generic.h']]], ['onlp_5fgeneric_5fsw_5finit',['onlp_generic_sw_init',['../group__oid-generic.html#ga3841de07d924ade1c32716764b72dce3',1,'generic.h']]], + ['onlp_5fgenerici_5fhdr_5fget',['onlp_generici_hdr_get',['../group__generici.html#ga252b7e660b14e1ee5f7e99d0adc3e727',1,'generici.h']]], + ['onlp_5fgenerici_5fhw_5finit',['onlp_generici_hw_init',['../group__generici.html#gafe4af9c0f25fefc4aff0e9a709a9542c',1,'generici.h']]], + ['onlp_5fgenerici_5finfo_5fget',['onlp_generici_info_get',['../group__generici.html#gadb7c7f45baa85fdb5631434ec46f7da1',1,'generici.h']]], + ['onlp_5fgenerici_5fsw_5fdenit',['onlp_generici_sw_denit',['../group__generici.html#ga3e6830e8861e5c2ae8cc531aa33c144f',1,'generici.h']]], + ['onlp_5fgenerici_5fsw_5finit',['onlp_generici_sw_init',['../group__generici.html#gadf30acc3764fde4bcd4a35100e2957ae',1,'generici.h']]], ['onlp_5fled_5fcaps_5fdesc',['onlp_led_caps_desc',['../group__oid-led.html#gaaf41313dcfdbb0cdde99e248ca055b77',1,'led.h']]], ['onlp_5fled_5fcaps_5fdesc_5fmap',['onlp_led_caps_desc_map',['../group__oid-led.html#ga00e008cec6186da03a466eca835e4023',1,'led.h']]], ['onlp_5fled_5fcaps_5fe',['onlp_led_caps_e',['../group__oid-led.html#ga52beae08f5bad6f90b9e9c590445c41a',1,'led.h']]], @@ -170,13 +176,24 @@ var searchData= ['onlp_5fmodule_5finfo_5fto_5fuser_5fjson',['onlp_module_info_to_user_json',['../group__oid-module.html#gaa6c560b25a4d38d5ad373e266c671f54',1,'module.h']]], ['onlp_5fmodule_5fsw_5fdenit',['onlp_module_sw_denit',['../group__oid-module.html#gafcf71feb9c8da89f6c5d1d474aa08c86',1,'module.h']]], ['onlp_5fmodule_5fsw_5finit',['onlp_module_sw_init',['../group__oid-module.html#gaf0fffd240af6133de708bd5826d6b53b',1,'module.h']]], + ['onlp_5fmodulei_5fhdr_5fget',['onlp_modulei_hdr_get',['../group__modulei.html#gad84e8c03045948d17e36b1c1ed445851',1,'modulei.h']]], + ['onlp_5fmodulei_5fhw_5finit',['onlp_modulei_hw_init',['../group__modulei.html#ga4339962c26c2ac7d03b1a13f71073553',1,'modulei.h']]], + ['onlp_5fmodulei_5finfo_5fget',['onlp_modulei_info_get',['../group__modulei.html#ga9dcdcd462f191c8ff92d6dbfee956a81',1,'modulei.h']]], + ['onlp_5fmodulei_5fsw_5fdenit',['onlp_modulei_sw_denit',['../group__modulei.html#ga0629d528fb9d62e9453674f274d767cc',1,'modulei.h']]], + ['onlp_5fmodulei_5fsw_5finit',['onlp_modulei_sw_init',['../group__modulei.html#ga965774c575282a7653b80433ae59307a',1,'modulei.h']]], ['onlp_5foid_5fchassis',['ONLP_OID_CHASSIS',['../group__oid.html#gad4ef39fa45f462965b32608b91d8277b',1,'oids.h']]], ['onlp_5foid_5fchassis_5fvalidate',['ONLP_OID_CHASSIS_VALIDATE',['../group__oid.html#ga6bfcf34ba72b53864e2b686cc1a1a575',1,'oids.h']]], ['onlp_5foid_5fchassis_5fvalidate_5fnr',['ONLP_OID_CHASSIS_VALIDATE_NR',['../group__oid.html#ga291f053450c585d9a5356c6833c2d1df',1,'oids.h']]], ['onlp_5foid_5fdesc_5fsize',['ONLP_OID_DESC_SIZE',['../group__oid.html#ga2bdd7dcf1493bf2d557e74d38007ca36',1,'oids.h']]], ['onlp_5foid_5ffan_5fvalidate',['ONLP_OID_FAN_VALIDATE',['../group__oid.html#ga47cf687227cc19e03782867e2e2a2a83',1,'oids.h']]], + ['onlp_5foid_5ffan_5fvalidate_5fget_5fid',['ONLP_OID_FAN_VALIDATE_GET_ID',['../group__oid.html#ga3cbd36040dd6b6dc50cc560f947410bc',1,'oids.h']]], + ['onlp_5foid_5ffan_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_FAN_VALIDATE_GET_ID_NR',['../group__oid.html#ga9dfe43731cde70ab7b8554334871cd3a',1,'oids.h']]], ['onlp_5foid_5ffan_5fvalidate_5fnr',['ONLP_OID_FAN_VALIDATE_NR',['../group__oid.html#ga14ee5172219a7d00f6e096f98cc65659',1,'oids.h']]], ['onlp_5foid_5ffrom_5fstr',['onlp_oid_from_str',['../group__oid.html#gaaee5d0adf57df99e61c7fa98bcde6c52',1,'oids.h']]], + ['onlp_5foid_5fgeneric_5fvalidate',['ONLP_OID_GENERIC_VALIDATE',['../group__oid.html#ga450a8765801e797bb9692efa3caad7f5',1,'oids.h']]], + ['onlp_5foid_5fgeneric_5fvalidate_5fget_5fid',['ONLP_OID_GENERIC_VALIDATE_GET_ID',['../group__oid.html#ga5ebd9530d48e8ca25849e60b8404c1e9',1,'oids.h']]], + ['onlp_5foid_5fgeneric_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_GENERIC_VALIDATE_GET_ID_NR',['../group__oid.html#gaf3dba2e55f717b919b96cfc612098c96',1,'oids.h']]], + ['onlp_5foid_5fgeneric_5fvalidate_5fnr',['ONLP_OID_GENERIC_VALIDATE_NR',['../group__oid.html#ga51c4c834fc4902bc14797ab5920796a8',1,'oids.h']]], ['onlp_5foid_5fhdr_5ffrom_5fjson',['onlp_oid_hdr_from_json',['../group__oid.html#ga57ad4b774e5b848c96d12362bdaf6a89',1,'oids.h']]], ['onlp_5foid_5fhdr_5fget',['onlp_oid_hdr_get',['../group__oid.html#ga58bc61bfa3245a6ff481e158a48057a1',1,'oids.h']]], ['onlp_5foid_5fhdr_5fs',['onlp_oid_hdr_s',['../structonlp__oid__hdr__s.html',1,'']]], @@ -185,10 +202,15 @@ var searchData= ['onlp_5foid_5fid_5fget',['ONLP_OID_ID_GET',['../group__oid.html#gac184cdebe8c6d9d016e7029248855703',1,'oids.h']]], ['onlp_5foid_5fid_5ft',['onlp_oid_id_t',['../group__oid.html#gafeead7b8b6e6434d56d2ee5a66c02f71',1,'oids.h']]], ['onlp_5foid_5finfo_5fget',['onlp_oid_info_get',['../group__oid.html#gac51dc68f4de1337b408a3bac84066014',1,'oids.h']]], + ['onlp_5foid_5finfo_5fto_5fjson',['onlp_oid_info_to_json',['../group__oid.html#ga153351e35d7c15ae410bb28e3714c2eb',1,'oids.h']]], ['onlp_5foid_5fis_5fchassis',['ONLP_OID_IS_CHASSIS',['../group__oid.html#ga10823d6ebcca675cebd199f0adffd851',1,'oids.h']]], ['onlp_5foid_5fis_5ffan',['ONLP_OID_IS_FAN',['../group__oid.html#ga6b7ca2801564bd7e9c919c8957661826',1,'oids.h']]], + ['onlp_5foid_5fis_5fgeneric',['ONLP_OID_IS_GENERIC',['../group__oid.html#ga1b7d82f6819d489f3afc8938488240f5',1,'oids.h']]], + ['onlp_5foid_5fis_5fled',['ONLP_OID_IS_LED',['../group__oid.html#ga7c874330fa9f485c2b767cb5760d9508',1,'oids.h']]], + ['onlp_5foid_5fis_5fmodule',['ONLP_OID_IS_MODULE',['../group__oid.html#ga6a4f0596746fc7de034847b038f2968f',1,'oids.h']]], ['onlp_5foid_5fis_5fpresent',['onlp_oid_is_present',['../group__oid.html#gacd775219c684b7f02a73aed4a1e54c6a',1,'oids.h']]], ['onlp_5foid_5fis_5fpsu',['ONLP_OID_IS_PSU',['../group__oid.html#ga1aff0b8997f166efb565ad9f6d2fb93b',1,'oids.h']]], + ['onlp_5foid_5fis_5fsfp',['ONLP_OID_IS_SFP',['../group__oid.html#gac0d172267739ea7bef9c276e1ae8e27a',1,'oids.h']]], ['onlp_5foid_5fis_5fthermal',['ONLP_OID_IS_THERMAL',['../group__oid.html#ga4bb865eb0255959eb53bb0936e44f47d',1,'oids.h']]], ['onlp_5foid_5fis_5ftype',['ONLP_OID_IS_TYPE',['../group__oid.html#gaeb2e11ebb24c87c68ebf71bdb05b3abb',1,'oids.h']]], ['onlp_5foid_5fis_5ftype_5fflags',['ONLP_OID_IS_TYPE_FLAGS',['../group__oid.html#gaa0b8bb4be0bc16bf88256ed331980b43',1,'oids.h']]], @@ -204,9 +226,23 @@ var searchData= ['onlp_5foid_5fjson_5fflag_5fvalid',['ONLP_OID_JSON_FLAG_VALID',['../group__oid.html#gac4ca92b3231f2375c4bc8a24083eaf14',1,'ONLP_OID_JSON_FLAG_VALID(): oids.h'],['../group__oid.html#gaea7754a2133ca3b4ca2aa594930bc9c0',1,'onlp_oid_json_flag_valid(onlp_oid_json_flag_t e): oids.h']]], ['onlp_5foid_5fjson_5fflag_5fvalue',['onlp_oid_json_flag_value',['../group__oid.html#ga4b911dec2a2dc21623ebc40fa96d3ad0',1,'oids.h']]], ['onlp_5foid_5fjson_5fverify',['onlp_oid_json_verify',['../group__oid.html#ga3cbac841a2ab45cac927819694a26543',1,'oids.h']]], + ['onlp_5foid_5fled_5fvalidate',['ONLP_OID_LED_VALIDATE',['../group__oid.html#ga0f8d057dc1deb1bb4aba5b3667076011',1,'oids.h']]], + ['onlp_5foid_5fled_5fvalidate_5fget_5fid',['ONLP_OID_LED_VALIDATE_GET_ID',['../group__oid.html#ga53f0ce948e67a61a885a16bc9e4a7d4e',1,'oids.h']]], + ['onlp_5foid_5fled_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_LED_VALIDATE_GET_ID_NR',['../group__oid.html#ga341fd8e90dae119fb34f2283d3dfe568',1,'oids.h']]], + ['onlp_5foid_5fled_5fvalidate_5fnr',['ONLP_OID_LED_VALIDATE_NR',['../group__oid.html#ga7256b07144727d5f8dfdcfa876fe9ba4',1,'oids.h']]], + ['onlp_5foid_5fmodule_5fvalidate',['ONLP_OID_MODULE_VALIDATE',['../group__oid.html#ga3eb988fc85e5b309d49fa031bb0b559a',1,'oids.h']]], + ['onlp_5foid_5fmodule_5fvalidate_5fget_5fid',['ONLP_OID_MODULE_VALIDATE_GET_ID',['../group__oid.html#ga52fbb91963cd55a09ea00ba79dd81d29',1,'oids.h']]], + ['onlp_5foid_5fmodule_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_MODULE_VALIDATE_GET_ID_NR',['../group__oid.html#ga44e0c12a8e2a621b9d3599b84bde61e5',1,'oids.h']]], + ['onlp_5foid_5fmodule_5fvalidate_5fnr',['ONLP_OID_MODULE_VALIDATE_NR',['../group__oid.html#gabca6fad0bb1064dbc1c6f7f6de735cfc',1,'oids.h']]], ['onlp_5foid_5fpresent',['ONLP_OID_PRESENT',['../group__oid.html#gaef2d13fe0bd0604016eea499b5076092',1,'oids.h']]], ['onlp_5foid_5fpsu_5fvalidate',['ONLP_OID_PSU_VALIDATE',['../group__oid.html#gad17fffd463b5500bdfbdbbef298e2048',1,'oids.h']]], + ['onlp_5foid_5fpsu_5fvalidate_5fget_5fid',['ONLP_OID_PSU_VALIDATE_GET_ID',['../group__oid.html#gaf9afaa8a20d70aa7694165aeb5083d72',1,'oids.h']]], + ['onlp_5foid_5fpsu_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_PSU_VALIDATE_GET_ID_NR',['../group__oid.html#gad22204571c06bda475a853130a5c3b57',1,'oids.h']]], ['onlp_5foid_5fpsu_5fvalidate_5fnr',['ONLP_OID_PSU_VALIDATE_NR',['../group__oid.html#gac2ff589e077b0ebb6d63e6b940d0770b',1,'oids.h']]], + ['onlp_5foid_5fsfp_5fvalidate',['ONLP_OID_SFP_VALIDATE',['../group__oid.html#gab8b3d3a34c9d08fdc7b2a5d584a466c9',1,'oids.h']]], + ['onlp_5foid_5fsfp_5fvalidate_5fget_5fid',['ONLP_OID_SFP_VALIDATE_GET_ID',['../group__oid.html#gadd01414f4910d781a14a386559f81e7e',1,'oids.h']]], + ['onlp_5foid_5fsfp_5fvalidate_5fget_5fid_5fnr',['ONLP_OID_SFP_VALIDATE_GET_ID_NR',['../group__oid.html#ga4a8cba45250e50568406a10d382f4ca0',1,'oids.h']]], + ['onlp_5foid_5fsfp_5fvalidate_5fnr',['ONLP_OID_SFP_VALIDATE_NR',['../group__oid.html#gaa72b17468326720f00a21c822c124212',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fdesc',['onlp_oid_status_flag_desc',['../group__oid.html#gaf69d4042750fd73e85a290d7bfefb4d1',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fdesc_5fmap',['onlp_oid_status_flag_desc_map',['../group__oid.html#ga06e2c1a51ab76484a5f06b5ea9a88b15',1,'oids.h']]], ['onlp_5foid_5fstatus_5fflag_5fe',['onlp_oid_status_flag_e',['../group__oid.html#ga8c4d39e3f86319310dd3c4839aa152c1',1,'oids.h']]], @@ -270,7 +306,7 @@ var searchData= ['onlp_5fpsu_5fcaps_5fmap',['onlp_psu_caps_map',['../group__oid-psu.html#ga5a15784398faa7998a5453e0cc0a5da9',1,'psu.h']]], ['onlp_5fpsu_5fcaps_5fname',['onlp_psu_caps_name',['../group__oid-psu.html#ga672c5a2f5b63a48b1e8bf6a8dc4a9391',1,'psu.h']]], ['onlp_5fpsu_5fcaps_5ft',['onlp_psu_caps_t',['../group__oid-psu.html#ga5216b462cd966b7e8a7b60bb4f7edb3c',1,'psu.h']]], - ['onlp_5fpsu_5fcaps_5fvalid',['onlp_psu_caps_valid',['../group__oid-psu.html#ga9fc8b05cd2e00ce40ab79f36915e8a83',1,'onlp_psu_caps_valid(onlp_psu_caps_t e): psu.h'],['../group__oid-psu.html#ga9ae51dbe38792bdba2ebca18cec08a07',1,'ONLP_PSU_CAPS_VALID(): psu.h']]], + ['onlp_5fpsu_5fcaps_5fvalid',['ONLP_PSU_CAPS_VALID',['../group__oid-psu.html#ga9ae51dbe38792bdba2ebca18cec08a07',1,'ONLP_PSU_CAPS_VALID(): psu.h'],['../group__oid-psu.html#ga9fc8b05cd2e00ce40ab79f36915e8a83',1,'onlp_psu_caps_valid(onlp_psu_caps_t e): psu.h']]], ['onlp_5fpsu_5fcaps_5fvalue',['onlp_psu_caps_value',['../group__oid-psu.html#ga75b459b893e21dc6e24b44461312a01c',1,'psu.h']]], ['onlp_5fpsu_5fhdr_5fget',['onlp_psu_hdr_get',['../group__oid-psu.html#ga92999b5dea1b92e35941bf9ac2acfa9d',1,'psu.h']]], ['onlp_5fpsu_5fhw_5finit',['onlp_psu_hw_init',['../group__oid-psu.html#ga44cb63826a53ee5f13489a08a51ab885',1,'psu.h']]], @@ -314,7 +350,7 @@ var searchData= ['onlp_5fsfp_5fcontrol_5fflag_5fmap',['onlp_sfp_control_flag_map',['../group__oid-sfp.html#ga4a3e5b31a83eb0ce5991a898da26fb3b',1,'sfp.h']]], ['onlp_5fsfp_5fcontrol_5fflag_5fname',['onlp_sfp_control_flag_name',['../group__oid-sfp.html#ga3ee038ae3c4ac44ea189a6a741e7d5d4',1,'sfp.h']]], ['onlp_5fsfp_5fcontrol_5fflag_5ft',['onlp_sfp_control_flag_t',['../group__oid-sfp.html#gad45e59ad466b61cb579b9e48c43da267',1,'sfp.h']]], - ['onlp_5fsfp_5fcontrol_5fflag_5fvalid',['ONLP_SFP_CONTROL_FLAG_VALID',['../group__oid-sfp.html#ga989005679eaffc3d92faf981a81f3fa4',1,'ONLP_SFP_CONTROL_FLAG_VALID(): sfp.h'],['../group__oid-sfp.html#gaaceb5da539f4bf3b5f28d3d709070f50',1,'onlp_sfp_control_flag_valid(onlp_sfp_control_flag_t e): sfp.h']]], + ['onlp_5fsfp_5fcontrol_5fflag_5fvalid',['onlp_sfp_control_flag_valid',['../group__oid-sfp.html#gaaceb5da539f4bf3b5f28d3d709070f50',1,'onlp_sfp_control_flag_valid(onlp_sfp_control_flag_t e): sfp.h'],['../group__oid-sfp.html#ga989005679eaffc3d92faf981a81f3fa4',1,'ONLP_SFP_CONTROL_FLAG_VALID(): sfp.h']]], ['onlp_5fsfp_5fcontrol_5fflag_5fvalue',['onlp_sfp_control_flag_value',['../group__oid-sfp.html#ga89e30eaca0210dfa9f05ba792688d336',1,'sfp.h']]], ['onlp_5fsfp_5fcontrol_5fflags_5fget',['onlp_sfp_control_flags_get',['../group__oid-sfp.html#ga4e8927190aea45c34b3c127f9f34a9c7',1,'sfp.h']]], ['onlp_5fsfp_5fcontrol_5fget',['onlp_sfp_control_get',['../group__oid-sfp.html#ga81b48168ee3d731c9c4f2cae10f5bb28',1,'sfp.h']]], @@ -410,7 +446,7 @@ var searchData= ['onlp_5fthermal_5fthreshold_5fmap',['onlp_thermal_threshold_map',['../group__oid-thermal.html#ga6de44a610c9ac2709df9fcb533aad686',1,'thermal.h']]], ['onlp_5fthermal_5fthreshold_5fname',['onlp_thermal_threshold_name',['../group__oid-thermal.html#ga8c6862b5ba87d0888485742b36070ffc',1,'thermal.h']]], ['onlp_5fthermal_5fthreshold_5ft',['onlp_thermal_threshold_t',['../group__oid-thermal.html#gae0e09173e43b1c395bb736bfb921189e',1,'thermal.h']]], - ['onlp_5fthermal_5fthreshold_5fvalid',['ONLP_THERMAL_THRESHOLD_VALID',['../group__oid-thermal.html#ga6b61390719a2494ccce576c8dc752f4b',1,'ONLP_THERMAL_THRESHOLD_VALID(): thermal.h'],['../group__oid-thermal.html#ga7cc9cab4f8fa591261ba5f57148f0a98',1,'onlp_thermal_threshold_valid(onlp_thermal_threshold_t e): thermal.h']]], + ['onlp_5fthermal_5fthreshold_5fvalid',['onlp_thermal_threshold_valid',['../group__oid-thermal.html#ga7cc9cab4f8fa591261ba5f57148f0a98',1,'onlp_thermal_threshold_valid(onlp_thermal_threshold_t e): thermal.h'],['../group__oid-thermal.html#ga6b61390719a2494ccce576c8dc752f4b',1,'ONLP_THERMAL_THRESHOLD_VALID(): thermal.h']]], ['onlp_5fthermal_5fthreshold_5fvalue',['onlp_thermal_threshold_value',['../group__oid-thermal.html#ga669136096981abfb4bdf7aa0a489b28c',1,'thermal.h']]], ['onlp_5fthermali_5fhdr_5fget',['onlp_thermali_hdr_get',['../group__thermali.html#ga2f66502008cbd30edeedb075d10abc4b',1,'thermali.h']]], ['onlp_5fthermali_5fhw_5finit',['onlp_thermali_hw_init',['../group__thermali.html#ga2d9449f582f13c5b5845ce966e0aeca6',1,'thermali.h']]], diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/files_3.js b/packages/base/any/onlp/src/onlp/doc/html/search/files_3.js index ae93da53..859444c5 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/files_3.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/files_3.js @@ -1,4 +1,5 @@ var searchData= [ - ['generic_2eh',['generic.h',['../generic_8h.html',1,'']]] + ['generic_2eh',['generic.h',['../generic_8h.html',1,'']]], + ['generici_2eh',['generici.h',['../generici_8h.html',1,'']]] ]; diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/files_5.js b/packages/base/any/onlp/src/onlp/doc/html/search/files_5.js index bd085562..8dd01347 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/files_5.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/files_5.js @@ -1,4 +1,5 @@ var searchData= [ - ['module_2eh',['module.h',['../module_8h.html',1,'']]] + ['module_2eh',['module.h',['../module_8h.html',1,'']]], + ['modulei_2eh',['modulei.h',['../modulei_8h.html',1,'']]] ]; diff --git a/packages/base/any/onlp/src/onlp/doc/html/search/functions_0.js b/packages/base/any/onlp/src/onlp/doc/html/search/functions_0.js index 5d2b789a..c1bc843c 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/search/functions_0.js +++ b/packages/base/any/onlp/src/onlp/doc/html/search/functions_0.js @@ -72,6 +72,11 @@ var searchData= ['onlp_5fgeneric_5finfo_5fto_5fuser_5fjson',['onlp_generic_info_to_user_json',['../group__oid-generic.html#ga52f776c183f45d6231c403736ed1baff',1,'generic.h']]], ['onlp_5fgeneric_5fsw_5fdenit',['onlp_generic_sw_denit',['../group__oid-generic.html#ga2281d926ce9b0cce1dc98d8a37d70b4b',1,'generic.h']]], ['onlp_5fgeneric_5fsw_5finit',['onlp_generic_sw_init',['../group__oid-generic.html#ga3841de07d924ade1c32716764b72dce3',1,'generic.h']]], + ['onlp_5fgenerici_5fhdr_5fget',['onlp_generici_hdr_get',['../group__generici.html#ga252b7e660b14e1ee5f7e99d0adc3e727',1,'generici.h']]], + ['onlp_5fgenerici_5fhw_5finit',['onlp_generici_hw_init',['../group__generici.html#gafe4af9c0f25fefc4aff0e9a709a9542c',1,'generici.h']]], + ['onlp_5fgenerici_5finfo_5fget',['onlp_generici_info_get',['../group__generici.html#gadb7c7f45baa85fdb5631434ec46f7da1',1,'generici.h']]], + ['onlp_5fgenerici_5fsw_5fdenit',['onlp_generici_sw_denit',['../group__generici.html#ga3e6830e8861e5c2ae8cc531aa33c144f',1,'generici.h']]], + ['onlp_5fgenerici_5fsw_5finit',['onlp_generici_sw_init',['../group__generici.html#gadf30acc3764fde4bcd4a35100e2957ae',1,'generici.h']]], ['onlp_5fled_5fcaps_5fdesc',['onlp_led_caps_desc',['../group__oid-led.html#gaaf41313dcfdbb0cdde99e248ca055b77',1,'led.h']]], ['onlp_5fled_5fcaps_5fname',['onlp_led_caps_name',['../group__oid-led.html#gab101123b97271b6c50da64f063ce2828',1,'led.h']]], ['onlp_5fled_5fcaps_5fvalid',['onlp_led_caps_valid',['../group__oid-led.html#gaee0c3cbe12d548c8b5d2f4e2cee3dd63',1,'led.h']]], @@ -97,11 +102,17 @@ var searchData= ['onlp_5fmodule_5finfo_5fto_5fuser_5fjson',['onlp_module_info_to_user_json',['../group__oid-module.html#gaa6c560b25a4d38d5ad373e266c671f54',1,'module.h']]], ['onlp_5fmodule_5fsw_5fdenit',['onlp_module_sw_denit',['../group__oid-module.html#gafcf71feb9c8da89f6c5d1d474aa08c86',1,'module.h']]], ['onlp_5fmodule_5fsw_5finit',['onlp_module_sw_init',['../group__oid-module.html#gaf0fffd240af6133de708bd5826d6b53b',1,'module.h']]], + ['onlp_5fmodulei_5fhdr_5fget',['onlp_modulei_hdr_get',['../group__modulei.html#gad84e8c03045948d17e36b1c1ed445851',1,'modulei.h']]], + ['onlp_5fmodulei_5fhw_5finit',['onlp_modulei_hw_init',['../group__modulei.html#ga4339962c26c2ac7d03b1a13f71073553',1,'modulei.h']]], + ['onlp_5fmodulei_5finfo_5fget',['onlp_modulei_info_get',['../group__modulei.html#ga9dcdcd462f191c8ff92d6dbfee956a81',1,'modulei.h']]], + ['onlp_5fmodulei_5fsw_5fdenit',['onlp_modulei_sw_denit',['../group__modulei.html#ga0629d528fb9d62e9453674f274d767cc',1,'modulei.h']]], + ['onlp_5fmodulei_5fsw_5finit',['onlp_modulei_sw_init',['../group__modulei.html#ga965774c575282a7653b80433ae59307a',1,'modulei.h']]], ['onlp_5foid_5ffrom_5fstr',['onlp_oid_from_str',['../group__oid.html#gaaee5d0adf57df99e61c7fa98bcde6c52',1,'oids.h']]], ['onlp_5foid_5fhdr_5ffrom_5fjson',['onlp_oid_hdr_from_json',['../group__oid.html#ga57ad4b774e5b848c96d12362bdaf6a89',1,'oids.h']]], ['onlp_5foid_5fhdr_5fget',['onlp_oid_hdr_get',['../group__oid.html#ga58bc61bfa3245a6ff481e158a48057a1',1,'oids.h']]], ['onlp_5foid_5fhdr_5fto_5fjson',['onlp_oid_hdr_to_json',['../group__oid.html#ga949ba468a25f72b43c4ba2ea3eced717',1,'oids.h']]], ['onlp_5foid_5finfo_5fget',['onlp_oid_info_get',['../group__oid.html#gac51dc68f4de1337b408a3bac84066014',1,'oids.h']]], + ['onlp_5foid_5finfo_5fto_5fjson',['onlp_oid_info_to_json',['../group__oid.html#ga153351e35d7c15ae410bb28e3714c2eb',1,'oids.h']]], ['onlp_5foid_5fis_5fpresent',['onlp_oid_is_present',['../group__oid.html#gacd775219c684b7f02a73aed4a1e54c6a',1,'oids.h']]], ['onlp_5foid_5fiterate',['onlp_oid_iterate',['../group__oid.html#gaaf632d0d7e8f7efd0e945e533d5f8cc2',1,'oids.h']]], ['onlp_5foid_5fjson_5fflag_5fdesc',['onlp_oid_json_flag_desc',['../group__oid.html#gaaeda891e338cb4c3c305d0e3568ba909',1,'oids.h']]], diff --git a/packages/base/any/onlp/src/onlp/doc/html/sfp_8h.html b/packages/base/any/onlp/src/onlp/doc/html/sfp_8h.html index 0eadf587..b9361e2b 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/sfp_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/sfp_8h.html @@ -320,7 +320,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/sfp_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/sfp_8h_source.html index 2326a9e3..d22370c2 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/sfp_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/sfp_8h_source.html @@ -398,7 +398,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_sfp_dev_readb
    int onlp_sfp_dev_readb(onlp_oid_t port, int devaddr, int addr)
    Read a byte from the target device on the given SFP port.
    onlp_sfp_info_from_json
    int onlp_sfp_info_from_json(cJSON *cj, onlp_sfp_info_t *info)
    Convert a JSON object to an SFP info structure.
    onlp_sfp_info_t
    struct onlp_sfp_info_t onlp_sfp_info_t
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    onlp_sfp_dev_writew
    int onlp_sfp_dev_writew(onlp_oid_t port, int devaddr, int addr, uint16_t value)
    Write a word to the target device on the given SFP port.
    ONLP_SFP_BLOCK_DATA_SIZE
    #define ONLP_SFP_BLOCK_DATA_SIZE
    Definition: sfp.h:86
    onlp_sfp_control_flag_desc_map
    aim_map_si_t onlp_sfp_control_flag_desc_map[]
    @@ -406,7 +406,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h.html b/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h.html index a441a299..e37aacbd 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h.html @@ -169,7 +169,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h_source.html index 64b86fb0..0eb57f05 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/sfpi_8h_source.html @@ -195,11 +195,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_sfpi_rx_los_bitmap_get
    int onlp_sfpi_rx_los_bitmap_get(onlp_sfp_bitmap_t *dst)
    Return the RX_LOS bitmap for all SFP ports.
    onlp_sfpi_sw_init
    int onlp_sfpi_sw_init(void)
    Software initialization of the SFP module.
    onlp_sfpi_control_set
    int onlp_sfpi_control_set(onlp_oid_id_t id, onlp_sfp_control_t control, int value)
    Set an SFP control.
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h.html b/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h.html index d382c858..134ab381 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h.html @@ -135,7 +135,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h_source.html index 8d878a21..185f076f 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/stdattrs_8h_source.html @@ -172,7 +172,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__asset__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__asset__info__s.html index 1601525d..1d9a448e 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__asset__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__asset__info__s.html @@ -271,7 +271,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__chassis__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__chassis__info__s.html index 5ba722b9..b83cfb48 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__chassis__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__chassis__info__s.html @@ -121,7 +121,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__config__settings__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__config__settings__s.html index 6f97097e..6ab04ed6 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__config__settings__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__config__settings__s.html @@ -133,7 +133,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__fan__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__fan__info__s.html index 8c1c78fc..1a6fde9d 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__fan__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__fan__info__s.html @@ -208,7 +208,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__generic__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__generic__info__s.html index ed129efc..ad96a126 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__generic__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__generic__info__s.html @@ -121,7 +121,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__led__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__led__info__s.html index 09fb479a..1032c4ca 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__led__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__led__info__s.html @@ -163,7 +163,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__module__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__module__info__s.html index 12476c1e..09b638f3 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__module__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__module__info__s.html @@ -121,7 +121,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__oid__hdr__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__oid__hdr__s.html index e1de1f9e..fe770b86 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__oid__hdr__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__oid__hdr__s.html @@ -178,7 +178,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__psu__info__t.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__psu__info__t.html index 791b01b6..fb598db0 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__psu__info__t.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__psu__info__t.html @@ -268,7 +268,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__sfp__info__t.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__sfp__info__t.html index da5efd4a..561d2b09 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__sfp__info__t.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__sfp__info__t.html @@ -225,7 +225,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/structonlp__thermal__info__s.html b/packages/base/any/onlp/src/onlp/doc/html/structonlp__thermal__info__s.html index 704c70b1..5b181c38 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/structonlp__thermal__info__s.html +++ b/packages/base/any/onlp/src/onlp/doc/html/structonlp__thermal__info__s.html @@ -209,7 +209,7 @@ Data Fields diff --git a/packages/base/any/onlp/src/onlp/doc/html/thermal_8h.html b/packages/base/any/onlp/src/onlp/doc/html/thermal_8h.html index 69ee97b3..2f4f2615 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/thermal_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/thermal_8h.html @@ -209,7 +209,7 @@ Variables diff --git a/packages/base/any/onlp/src/onlp/doc/html/thermal_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/thermal_8h_source.html index 9e42d047..c9530c1d 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/thermal_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/thermal_8h_source.html @@ -256,14 +256,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_thermal_caps_desc
    const char * onlp_thermal_caps_desc(onlp_thermal_caps_t e)
    onlp_thermal_info_s::mcelsius
    int mcelsius
    Definition: thermal.h:85
    onlp_thermal_threshold_value
    int onlp_thermal_threshold_value(const char *str, onlp_thermal_threshold_t *e, int substr)
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    onlp_thermal_threshold_map
    aim_map_si_t onlp_thermal_threshold_map[]
    onlp_thermal_info_from_json
    int onlp_thermal_info_from_json(cJSON *cj, onlp_thermal_info_t *info)
    Convert a JSON object to a thermal info structure.
    onlp_thermal_caps_desc_map
    aim_map_si_t onlp_thermal_caps_desc_map[]
    diff --git a/packages/base/any/onlp/src/onlp/doc/html/thermali_8h.html b/packages/base/any/onlp/src/onlp/doc/html/thermali_8h.html index 3ae0c67b..24da6324 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/thermali_8h.html +++ b/packages/base/any/onlp/src/onlp/doc/html/thermali_8h.html @@ -132,7 +132,7 @@ int  diff --git a/packages/base/any/onlp/src/onlp/doc/html/thermali_8h_source.html b/packages/base/any/onlp/src/onlp/doc/html/thermali_8h_source.html index 810661d1..fe9c3969 100644 --- a/packages/base/any/onlp/src/onlp/doc/html/thermali_8h_source.html +++ b/packages/base/any/onlp/src/onlp/doc/html/thermali_8h_source.html @@ -151,11 +151,11 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    onlp_oid_id_t
    uint32_t onlp_oid_id_t
    Definition: oids.h:55
    onlp_thermali_info_get
    int onlp_thermali_info_get(onlp_oid_id_t id, onlp_thermal_info_t *rv)
    Get the information for the given thermal OID.
    onlp_thermali_hw_init
    int onlp_thermali_hw_init(uint32_t flags)
    Hardware initialization of the Thermal module.
    -
    onlp_oid_hdr_s
    Definition: oids.h:244
    +
    onlp_oid_hdr_s
    Definition: oids.h:282
    diff --git a/packages/base/any/onlp/src/onlp/module/inc/onlp/oids.h b/packages/base/any/onlp/src/onlp/module/inc/onlp/oids.h index 41605e91..0801aa2e 100644 --- a/packages/base/any/onlp/src/onlp/module/inc/onlp/oids.h +++ b/packages/base/any/onlp/src/onlp/module/inc/onlp/oids.h @@ -318,7 +318,7 @@ typedef int (*onlp_oid_iterate_f)(onlp_oid_t oid, void* cookie); /** * @brief Iterate over all platform OIDs. * @param oid The root OID. - * @param type The OID type filter (optional) + * @param types The OID types filter (optional) * @param itf The iterator function. * @param cookie The cookie. */ @@ -415,7 +415,7 @@ int onlp_oid_from_str(char* str, onlp_oid_t* roid); /** * @brief OID Table -> JSON * @param table The table. - * @param[out] Receives the JSON array object. + * @param[out] cjp Receives the JSON array object. */ int onlp_oid_table_to_json(onlp_oid_table_t table, cJSON** cjp); @@ -430,6 +430,7 @@ int onlp_oid_table_from_json(cJSON* cj, onlp_oid_table_t table); * @brief OID Header -> JSON * @param hdr The header * @param[out] cj Receives the JSON representation. + * @param flags The JSON conversion flags. */ int onlp_oid_hdr_to_json(onlp_oid_hdr_t* hdr, cJSON** cj, uint32_t flags); @@ -440,7 +441,14 @@ int onlp_oid_hdr_to_json(onlp_oid_hdr_t* hdr, cJSON** cj, uint32_t flags); */ int onlp_oid_hdr_from_json(cJSON* cj, onlp_oid_hdr_t* hdr); +/** + * @brief OID Info Structure -> JSON + * @param info The pointer to the OID's info structure. + * @param [out] cj Receives the JSON representation. + * @param flags The JSON conversion flags. + */ int onlp_oid_info_to_json(onlp_oid_hdr_t* info, cJSON** cj, uint32_t flags); + /** * @brief OID -> JSON */