From 82f9d834ad772b2f16b6524f679d14d8a7afe881 Mon Sep 17 00:00:00 2001
From: Gabriele Contini <gcontini@users.noreply.github.com>
Date: 周二, 10 9月 2019 23:29:10 +0800
Subject: [PATCH] fix issue #37 tests in windows

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

diff --git a/src/library/api/datatypes.h b/src/library/api/datatypes.h
index e2dcda3..ed30576 100644
--- a/src/library/api/datatypes.h
+++ b/src/library/api/datatypes.h
@@ -1,17 +1,15 @@
 #ifndef DATATYPES_H_
 #define DATATYPES_H_
 
-/*
- * This include file is the public api di License++
- * You should include this file if your software don't plan to use
- * the part of the library dealing with features.
- * Otherwise licensepp-features.h should be included.
- */
 #ifdef __cplusplus
 extern "C" {
 #endif
 
+//definition of size_t
+#include <stdlib.h>
+#ifndef _MSC_VER
 #include <stdbool.h>
+#endif
 
 #ifdef __unix__
 #define DllExport
@@ -24,8 +22,8 @@
 #define PC_IDENTIFIER_SIZE 18
 #define PROPRIETARY_DATA_SIZE 16
 
-#define LICENESE_INT_VERSION 100
-#define LICENSEPP_VERSION "1.0.0"
+#define LICENESE_INT_VERSION 110
+#define LICENSEPP_VERSION "1.1.0"
 
 typedef enum {
 	LICENSE_OK = 0, 						//OK
@@ -42,14 +40,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 +75,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 +89,13 @@
  * in most cases.
  */
 typedef enum {
-	DEFAULT, ETHERNET, IP_ADDRESS, DISK_NUM, DISK_LABEL, STRATEGY_UNKNOWN
+	DEFAULT,
+	ETHERNET,
+	IP_ADDRESS,
+	DISK_NUM,
+	DISK_LABEL,
+	PLATFORM_SPECIFIC,
+	STRATEGY_UNKNOWN
 } IDENTIFICATION_STRATEGY;
 
 #ifdef __cplusplus

--
Gitblit v1.9.1