37 printf(
"wait for license \"%s\", status=\"%s\", type=\"%s\", err=\"%s\"\n",
53 char license_str[4096];
sb_t_err wait_license(void)
The functions wait until the license status is active.
Examples - Common header.
sb_t_err
Errors code enum.
const char * sb_err_format(sb_t_err code)
Returns the error message.
@ SB_ERR_LICENSE_NOT_FOUND
License key not found.
@ SB_ERR_LICENSE_WAIT_SERVER
Waiting to contact the license server.
@ SB_ERR_LICENSE_FILE
License file error (not exist, not readable, wrong format, wrong mail address)
const char * sb_license_format_type(sb_t_license_type type)
Returns the string of the license type.
sb_t_err sb_license_get_info(sb_t_license *const info)
Returns the license information.
sb_t_license_module_id
Enumerations of modules of the SB library.
const char * sb_license_format_module_id(sb_t_license_module_id code)
Returns the string of the module id.
sb_t_err sb_license_format_info(const sb_t_license *const info, char *const str, int str_size)
Formats the license structure.
const char * sb_license_format_module_status(sb_t_license_module_status status)
Returns the string of the feature status.
@ SB_LICENSE_MODULE_STATUS_ERR
There is an error. See the field sb_t_license_module::err.
@ SB_LICENSE_MODULE_STATUS_NULL
The license status is undefined.
@ SB_LICENSE_MODULE_NUMBER
Number of modules.
@ SB_LICENSE_NULL
License type isn't defined.
@ SB_LICENSE_DEMO
Demo license: has an expiry date.
sb_t_license_module_status status
The license status.
sb_t_err err
The license error.
sb_t_license_type type
License type of the module.
Defines the license and its properties.
sb_t_license_module module[SB_LICENSE_MODULE_NUMBER]
Array of the license of the modules Retina, Surface, Deep Surface and Deep Cortex.