| | |
| | | * Method used to convert the LicenseInfo into a human readable |
| | | * representation. |
| | | */ |
| | | DllExport void print_error(char out_buffer[256], LicenseInfo* licenseInfo); |
| | | void print_error(char out_buffer[256], LicenseInfo* licenseInfo); |
| | | |
| | | /** |
| | | * This method calculate the pc identifier. The string has to be shown |
| | | * to the user in order to calculate the license. |
| | | */ |
| | | DllExport void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, |
| | | void identify_pc(IDENTIFICATION_STRATEGY pc_id_method, |
| | | char chbuffer[PC_IDENTIFIER_SIZE + 1]); |
| | | /* |
| | | * The optional parameter License contains the information the program that uses the library |
| | |
| | | * @param license[out] optional, can be NULL. |
| | | */ |
| | | |
| | | DllExport EVENT_TYPE acquire_license(const char * productName, |
| | | EVENT_TYPE acquire_license(const char * productName, |
| | | LicenseLocation licenseLocation, LicenseInfo* license); |
| | | |
| | | /** |
| | |
| | | * Should be called from time to time to confirm we're still using the |
| | | * slicense. |
| | | */ |
| | | DllExport EVENT_TYPE confirm_license(char * productName, |
| | | EVENT_TYPE confirm_license(char * productName, |
| | | LicenseLocation licenseLocation); |
| | | /** |
| | | * Do nothing for now, useful for network licenses. |
| | | */ |
| | | DllExport EVENT_TYPE release_license(char * productName, |
| | | EVENT_TYPE release_license(char * productName, |
| | | LicenseLocation licenseLocation); |
| | | |
| | | #ifdef __cplusplus |