|
Scanbot SDK
|
Typedefs | |
| typedef enum scanbotsdk_license_status_t | scanbotsdk_license_status_t |
| scanbotsdk_license_status_t enum | |
| typedef struct scanbotsdk_device_deregistration_error_t | scanbotsdk_device_deregistration_error_t |
| scanbotsdk_device_deregistration_error_t class | |
| typedef struct scanbotsdk_license_info_t | scanbotsdk_license_info_t |
| scanbotsdk_license_info_t class | |
| typedef enum scanbotsdk_feature_t | scanbotsdk_feature_t |
| scanbotsdk_feature_t enum | |
Functions | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_status_t_to_string (scanbotsdk_license_status_t value, const char **result) |
| Returns the string representation of the given scanbotsdk_license_status_t value. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_device_deregistration_error_create (int device_id, const char *error_message, scanbotsdk_device_deregistration_error_t **result) |
| Creates a new instance of scanbotsdk_device_deregistration_error with given params and stores it in the location specified by the last argument. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_device_deregistration_error_free (scanbotsdk_device_deregistration_error_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_device_deregistration_error_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_device_deregistration_error_get_device_id (scanbotsdk_device_deregistration_error_t *self, int *device_id) |
| Returns value of device_id field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_device_deregistration_error_get_error_message (scanbotsdk_device_deregistration_error_t *self, const char **error_message) |
| Returns value of error_message field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_free (scanbotsdk_license_info_t *object) |
| Frees the memory allocated for the instance of scanbotsdk_license_info_t. If null is passed, the function does nothing. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_status (scanbotsdk_license_info_t *self, scanbotsdk_license_status_t *status) |
| Returns value of status field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_is_valid (scanbotsdk_license_info_t *self, bool *is_valid) |
| Returns value of is_valid field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_license_status_message (scanbotsdk_license_info_t *self, const char **license_status_message) |
| Returns value of license_status_message field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_expiration_timestamp (scanbotsdk_license_info_t *self, double *expiration_timestamp) |
| Returns value of expiration_timestamp field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_expiration_date_string (scanbotsdk_license_info_t *self, const char **expiration_date_string) |
| Returns value of expiration_date_string field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_error_message (scanbotsdk_license_info_t *self, const char **error_message) |
| Returns value of error_message field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_online_license_check_in_progress (scanbotsdk_license_info_t *self, bool *online_license_check_in_progress) |
| Returns value of online_license_check_in_progress field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_license (scanbotsdk_license_info_t *self, const char **license) |
| Returns value of license field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_devices (scanbotsdk_license_info_t *self, int **devices) |
| Returns value of devices field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_next_online_license_check_in_ms (scanbotsdk_license_info_t *self, double *next_online_license_check_in_ms) |
| Returns value of next_online_license_check_in_ms field of the given object. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_device_deregistation_errors (scanbotsdk_license_info_t *self, scanbotsdk_device_deregistration_error_t **device_deregistation_errors, size_t size) |
| Returns value of device_deregistation_errors field of the given object. The returned pointers do NOT own the underlying object, caller must not free them. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_license_info_get_device_deregistation_errors_size (scanbotsdk_license_info_t *self, size_t *size) |
| Returns size of device_deregistation_errors array. | |
| SBSDK_API scanbotsdk_error_code_t | scanbotsdk_feature_t_to_string (scanbotsdk_feature_t value, const char **result) |
| Returns the string representation of the given scanbotsdk_feature_t value. | |
scanbotsdk_device_deregistration_error_t class
Description of error that occurred during device deregistration.
| typedef enum scanbotsdk_feature_t scanbotsdk_feature_t |
scanbotsdk_feature_t enum
License features.
| typedef struct scanbotsdk_license_info_t scanbotsdk_license_info_t |
scanbotsdk_license_info_t class
Information about the SDK license.
| typedef enum scanbotsdk_license_status_t scanbotsdk_license_status_t |
scanbotsdk_license_status_t enum
Status of the license plate scanner.
| enum scanbotsdk_feature_t |
scanbotsdk_feature_t enum
License features.
scanbotsdk_license_status_t enum
Status of the license plate scanner.
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_device_deregistration_error_create | ( | int | device_id, |
| const char * | error_message, | ||
| scanbotsdk_device_deregistration_error_t ** | result ) |
Creates a new instance of scanbotsdk_device_deregistration_error with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| device_id | Sequential number of the device registration. Starts with 0. Each time a call to initializeLicense with a new license is made, the device ID. |
| error_message | Error message describing the error. The value must not be null. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_device_deregistration_error_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_device_deregistration_error_free | ( | scanbotsdk_device_deregistration_error_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_device_deregistration_error_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_device_deregistration_error_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_device_deregistration_error_get_device_id | ( | scanbotsdk_device_deregistration_error_t * | self, |
| int * | device_id ) |
Returns value of device_id field of the given object.
Sequential number of the device registration. Starts with 0. Each time a call to initializeLicense with a new license is made, the device ID.
| self | Pointer to the instance of scanbotsdk_device_deregistration_error_t |
| device_id | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_device_deregistration_error_get_error_message | ( | scanbotsdk_device_deregistration_error_t * | self, |
| const char ** | error_message ) |
Returns value of error_message field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Error message describing the error.
| self | Pointer to the instance of scanbotsdk_device_deregistration_error_t |
| error_message | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_feature_t_to_string | ( | scanbotsdk_feature_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_feature_t value.
The returned string doesn't need to be freed.
| value | The value to be converted to string. |
| result | Pointer to a variable that will store the string representation of the value. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_free | ( | scanbotsdk_license_info_t * | object | ) |
Frees the memory allocated for the instance of scanbotsdk_license_info_t. If null is passed, the function does nothing.
| object | Pointer to the instance of scanbotsdk_license_info_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_device_deregistation_errors | ( | scanbotsdk_license_info_t * | self, |
| scanbotsdk_device_deregistration_error_t ** | device_deregistation_errors, | ||
| size_t | size ) |
Returns value of device_deregistation_errors field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
List of errors that occurred during device deregistration. If for some device deregistration completed successfully, it will not be listed here. For each device at most one entry will be present.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| size | Size of the pre-allocated array. Must be equal to the size obtained by calling the corresponding _size function. |
| device_deregistation_errors | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_device_deregistation_errors_size | ( | scanbotsdk_license_info_t * | self, |
| size_t * | size ) |
Returns size of device_deregistation_errors array.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| size | Pointer to a variable that will store the size. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_devices | ( | scanbotsdk_license_info_t * | self, |
| int ** | devices ) |
Returns value of devices field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Number of devices the license is valid for, if the license is floating.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| devices | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_error_message | ( | scanbotsdk_license_info_t * | self, |
| const char ** | error_message ) |
Returns value of error_message field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Additional error message in case of a license error.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| error_message | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_expiration_date_string | ( | scanbotsdk_license_info_t * | self, |
| const char ** | expiration_date_string ) |
Returns value of expiration_date_string field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Expiration date of the license or trial period in ISO 8601 date-time format.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| expiration_date_string | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_expiration_timestamp | ( | scanbotsdk_license_info_t * | self, |
| double * | expiration_timestamp ) |
Returns value of expiration_timestamp field of the given object.
Expiration timestamp of the license or trial period in seconds since the UNIX epoch.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| expiration_timestamp | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_is_valid | ( | scanbotsdk_license_info_t * | self, |
| bool * | is_valid ) |
Returns value of is_valid field of the given object.
True if the license status corresponds to a valid license.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| is_valid | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_license | ( | scanbotsdk_license_info_t * | self, |
| const char ** | license ) |
Returns value of license field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
The currently active license. May be different from the license used to initialize the SDK if the online license check has completed and the server has sent an updated license.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| license | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_license_status_message | ( | scanbotsdk_license_info_t * | self, |
| const char ** | license_status_message ) |
Returns value of license_status_message field of the given object. The returned pointers do NOT own the underlying object, caller must not free them.
Message describing the license status.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| license_status_message | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_next_online_license_check_in_ms | ( | scanbotsdk_license_info_t * | self, |
| double * | next_online_license_check_in_ms ) |
Returns value of next_online_license_check_in_ms field of the given object.
Time in milliseconds until the next online license check will be performed. -1 if no online license check is scheduled.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| next_online_license_check_in_ms | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_online_license_check_in_progress | ( | scanbotsdk_license_info_t * | self, |
| bool * | online_license_check_in_progress ) |
Returns value of online_license_check_in_progress field of the given object.
True if an online license check is in progress.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| online_license_check_in_progress | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_info_get_status | ( | scanbotsdk_license_info_t * | self, |
| scanbotsdk_license_status_t * | status ) |
Returns value of status field of the given object.
License status.
| self | Pointer to the instance of scanbotsdk_license_info_t |
| status | Pointer to a variable that will store the value of the field. |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_license_status_t_to_string | ( | scanbotsdk_license_status_t | value, |
| const char ** | result ) |
Returns the string representation of the given scanbotsdk_license_status_t value.
The returned string doesn't need to be freed.
| value | The value to be converted to string. |
| result | Pointer to a variable that will store the string representation of the value. |