From 97ca2423a4686f7f9e85a33a88556dae4aad1bab Mon Sep 17 00:00:00 2001
From: Maximilien Siavelis <m@siav.pw>
Date: 周一, 06 5月 2019 21:47:20 +0800
Subject: [PATCH] Merge pull request #21 from matteovaralta91/master

---
 src/library/api/datatypes.h |   22 +++++++++++++++-------
 1 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/src/library/api/datatypes.h b/src/library/api/datatypes.h
index dad399e..899d4c1 100644
--- a/src/library/api/datatypes.h
+++ b/src/library/api/datatypes.h
@@ -11,7 +11,11 @@
 extern "C" {
 #endif
 
+//definition of size_t
+#include <stdlib.h>
+#ifndef _MSC_VER
 #include <stdbool.h>
+#endif
 
 #ifdef __unix__
 #define DllExport
@@ -42,14 +46,14 @@
 	LICENSE_FILE_FOUND = 100,
 	LICENSE_VERIFIED = 101
 
-}  EVENT_TYPE;
+} EVENT_TYPE;
 
 typedef enum {
 	LOCAL, REMOTE //remote licenses are not supported now.
-}  LICENSE_TYPE;
+} LICENSE_TYPE;
 
 typedef enum {
-	INFO, SEVERITY_WARN, SEVERITY_ERROR
+	SVRT_INFO, SVRT_WARN, SVRT_ERROR
 } SEVERITY;
 
 typedef struct {
@@ -77,9 +81,7 @@
 	 * can be '\0' if the software don't expire
 	 * */
 	char expiry_date[11];
-	unsigned int days_left;
-	bool has_expiry;
-	bool linked_to_pc;
+	unsigned int days_left;bool has_expiry;bool linked_to_pc;
 	LICENSE_TYPE license_type; // Local or Remote
 	/* A string of character inserted into the license understood
 	 * by the calling application.
@@ -93,7 +95,13 @@
  * in most cases.
  */
 typedef enum {
-	DEFAULT, ETHERNET, IP_ADDRESS, DISK_NUM, DISK_LABEL
+	DEFAULT,
+	ETHERNET,
+	IP_ADDRESS,
+	DISK_NUM,
+	DISK_LABEL,
+	PLATFORM_SPECIFIC,
+	STRATEGY_UNKNOWN
 } IDENTIFICATION_STRATEGY;
 
 #ifdef __cplusplus

--
Gitblit v1.9.1