| | |
| | | |
| | | #ifdef __unix__ |
| | | #define DllExport |
| | | #define MAX_PATH 1024 |
| | | #ifndef MAX_PATH |
| | | #define MAX_PATH 1024 |
| | | #endif |
| | | #else |
| | | #include <windows.h> |
| | | #define DllExport __declspec( dllexport ) |
| | |
| | | * 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 |
| | |
| | | * @param license[out] optional, can be NULL. |
| | | */ |
| | | |
| | | DllExport EVENT_TYPE acquire_license(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 enum EVENT_TYPE confirm_license(char * productName, |
| | | EVENT_TYPE confirm_license(char * productName, |
| | | LicenseLocation licenseLocation); |
| | | /** |
| | | * Do nothing for now, useful for network licenses. |
| | | */ |
| | | DllExport enum EVENT_TYPE release_license(char * productName, |
| | | EVENT_TYPE release_license(char * productName, |
| | | LicenseLocation licenseLocation); |
| | | |
| | | #ifdef __cplusplus |