Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.9.0.2
openapi_capability_licensing.h
Go to the documentation of this file.
1 
9 /**********************************************************************
10 *
11 * Copyright 2020-2021 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 ***********************************************************************
26 *
27 * @filename openapi_capability_licensing.h
28 *
29 * @purpose Capability Lisensing feature
30 *
31 * @component OPEN
32 *
33 * @create 03/31/2020
34 *
35 * @end
36 *
37 *********************************************************************/
38 #ifndef OPENAPI_CAPABILITY_LICENSING_H_INCLUDED
39 #define OPENAPI_CAPABILITY_LICENSING_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 #define OPEN_CAPAB_LIC_MAX_LICENSE_FILES 16
44 #define OPEN_CAPAB_LIC_MAX_VER_LEN 6
45 #define OPEN_CAPAB_LIC_MAX_KEY_LEN 32
46 #define OPEN_CAPAB_LIC_MAX_MODEL_LEN 32
47 #define OPEN_CAPAB_LIC_MAX_SERIAL_LEN 64
48 #define OPEN_CAPAB_LIC_MAX_FILE_PARAM_VAL_LEN 64
49 
50 /* License status code */
51 typedef enum
52 {
62 
63 /* License type */
64 typedef enum
65 {
66  OPEN_CAPAB_LICENSE_TYPE_UNKNOWN = 1,
71 
72 typedef enum
73 {
78 
79 
80 /*************************************************************************/
96  uint32_t *numOfLicenses);
97 
98 /*************************************************************************/
114  uint32_t *firstLicenseIndex);
115 
116 /*************************************************************************/
133  uint32_t currentIndex,
134  uint32_t *nextLicenseIndex);
135 
136 /*************************************************************************/
153  uint32_t licenseIndex,
155 
156 /*************************************************************************/
173  uint32_t licenseIndex,
175 
176 /*************************************************************************/
194  uint32_t licenseIndex,
196  open_buffdesc *paramValue);
197 
198 /*************************************************************************/
215  uint32_t licenseIndex,
216  open_buffdesc *version);
217 
218 /*************************************************************************/
235  uint32_t licenseIndex,
236  open_buffdesc *version);
237 
238 /*************************************************************************/
255  uint32_t licenseIndex,
256  open_buffdesc *model);
257 
258 /*************************************************************************/
275  uint32_t licenseIndex,
276  open_buffdesc *serialNum);
277 
278 
279 /*************************************************************************/
295  uint32_t licenseIndex);
296 
297 /*************************************************************************/
312 
313 #endif /* OPENAPI_CAPABILITY_LICENSING_H_INCLUDED */
314