| | |
| | | extern "C" { |
| | | #endif |
| | | |
| | | #include <stdbool.h> |
| | | |
| | | #ifdef __unix__ |
| | | #define DllExport |
| | | #define MAX_PATH 1024 |
| | | #else |
| | | #include <windows.h> |
| | | #define DllExport __declspec( dllexport ) |
| | |
| | | #define LICENESE_INT_VERSION 100 |
| | | #define LICENSEPP_VERSION "1.0.0" |
| | | |
| | | enum EVENT_TYPE { |
| | | typedef enum { |
| | | LICENSE_OK = 0, //OK |
| | | LICENSE_FILE_NOT_FOUND = 1, //license file not found |
| | | LICENSE_SERVER_NOT_FOUND = 2, //license server can't be contacted |
| | |
| | | LICENSE_FILE_FOUND = 100, |
| | | LICENSE_VERIFIED = 101 |
| | | |
| | | }; |
| | | } EVENT_TYPE; |
| | | |
| | | enum LICENSE_TYPE { |
| | | typedef enum { |
| | | LOCAL, REMOTE //remote licenses are not supported now. |
| | | }; |
| | | } LICENSE_TYPE; |
| | | |
| | | enum SEVERITY { |
| | | typedef enum { |
| | | INFO, SEVERITY_WARN, SEVERITY_ERROR |
| | | }; |
| | | } SEVERITY; |
| | | |
| | | |
| | | |
| | | struct AuditEvent { |
| | | typedef struct { |
| | | SEVERITY severity; |
| | | EVENT_TYPE event_type; |
| | | char param1[256]; |
| | | char param2[256]; |
| | | }; |
| | | } AuditEvent; |
| | | |
| | | typedef struct { |
| | | const char *licenseFileLocation; |
| | |
| | | * Enum to select a specific pc identification_strategy. DEFAULT Should be used |
| | | * in most cases. |
| | | */ |
| | | enum IDENTIFICATION_STRATEGY { |
| | | typedef enum { |
| | | DEFAULT, ETHERNET, IP_ADDRESS, DISK_NUM, DISK_LABEL |
| | | }; |
| | | } IDENTIFICATION_STRATEGY; |
| | | |
| | | #ifdef __cplusplus |
| | | } |