38 #ifndef OPENAPI_CAPABILITY_LICENSING_H_INCLUDED
39 #define OPENAPI_CAPABILITY_LICENSING_H_INCLUDED
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
66 OPEN_CAPAB_LICENSE_TYPE_UNKNOWN = 1,
96 uint32_t *numOfLicenses);
114 uint32_t *firstLicenseIndex);
133 uint32_t currentIndex,
134 uint32_t *nextLicenseIndex);
153 uint32_t licenseIndex,
173 uint32_t licenseIndex,
194 uint32_t licenseIndex,
215 uint32_t licenseIndex,
235 uint32_t licenseIndex,
255 uint32_t licenseIndex,
275 uint32_t licenseIndex,
295 uint32_t licenseIndex);
OPEN_CAPAB_LICENSE_STATUS_TYPE_t
open_error_t openapiCapabLicenseVersionGet(openapiClientHandle_t *client_handle, uint32_t licenseIndex, open_buffdesc *version)
Get the version number of license file in the system.
open_error_t openapiCapabLicenseNextIndexGet(openapiClientHandle_t *client_handle, uint32_t currentIndex, uint32_t *nextLicenseIndex)
Get the next license index in the system.
OPEN_CAPAB_LICENSE_FILE_PARAM_TYPE_t
open_error_t openapiCapabLicenseParamGet(openapiClientHandle_t *client_handle, uint32_t licenseIndex, OPEN_CAPAB_LICENSE_FILE_PARAM_TYPE_t paramType, open_buffdesc *paramValue)
Get the parameter value of license file in the system.
open_error_t openapiCapabLicenseFirstIndexGet(openapiClientHandle_t *client_handle, uint32_t *firstLicenseIndex)
Get the first license index in the system.
open_error_t openapiCapabLicenseLicenseRemove(openapiClientHandle_t *client_handle, uint32_t licenseIndex)
Remove a license file.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiCapabLicenseStatusGet(openapiClientHandle_t *client_handle, uint32_t licenseIndex, OPEN_CAPAB_LICENSE_STATUS_TYPE_t *status)
Get the status of license in the system.
License applied successfully.
License file was applied but got removed.
Unsupported capability/features.
open_error_t openapiCapabLicenseSerialNumberGet(openapiClientHandle_t *client_handle, uint32_t licenseIndex, open_buffdesc *serialNum)
Get the serial number of license file.
Valid license file after installation.
open_error_t openapiCapabLicenseTypeGet(openapiClientHandle_t *client_handle, uint32_t licenseIndex, OPEN_CAPAB_LICENSE_TYPE_t *type)
Get the type of license.
open_error_t openapiCapabLicenseKeyGet(openapiClientHandle_t *client_handle, uint32_t licenseIndex, open_buffdesc *version)
Get the key of license file in the system.
open_error_t openapiCapabLicenseLicenseRemoveAll(openapiClientHandle_t *client_handle)
Remove all license files in the System.
License file is not present.
OPEN_CAPAB_LICENSE_TYPE_t
Port and Feature license.
open_error_t openapiCapabLicenseModelGet(openapiClientHandle_t *client_handle, uint32_t licenseIndex, open_buffdesc *model)
Get the model name of license file.
open_error_t openapiCapabLicenseCountGet(openapiClientHandle_t *client_handle, uint32_t *numOfLicenses)
Get the number of license files in the system.