From dda16735b94661b798d6c0fd3e41af944de0a1fe Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周日, 13 10月 2019 15:02:19 +0800
Subject: [PATCH] refactoring - locators

---
 src/library/api/datatypes.h |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/src/library/api/datatypes.h b/src/library/api/datatypes.h
index 0326fb4..1eadf88 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
@@ -20,24 +18,23 @@
 #define DllExport  __declspec( dllexport )
 #endif
 
-#define ENVIRONMENT_VAR_NAME_MAX 64
 #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
+	LICENSE_OK = 0, 					//OK
 	LICENSE_FILE_NOT_FOUND = 1, 		//license file not found
 	LICENSE_SERVER_NOT_FOUND = 2, 		//license server can't be contacted
 	ENVIRONMENT_VARIABLE_NOT_DEFINED = 3, //environment variable not defined
-	FILE_FORMAT_NOT_RECOGNIZED = 4,	//license file has invalid format (not .ini file)
-	LICENSE_MALFORMED = 5, //some mandatory field are missing, or data can't be fully read.
+	FILE_FORMAT_NOT_RECOGNIZED = 4,		 //license file has invalid format (not .ini file)
+	LICENSE_MALFORMED = 5,			//some mandatory field are missing, or data can't be fully read.
 	PRODUCT_NOT_LICENSED = 6,		//this product was not licensed
 	PRODUCT_EXPIRED = 7,
-	LICENSE_CORRUPTED = 8,//License signature didn't match with current license
-	IDENTIFIERS_MISMATCH = 9, //Calculated identifier and the one provided in license didn't match
+	LICENSE_CORRUPTED = 8,		//License signature didn't match with current license
+	IDENTIFIERS_MISMATCH = 9,   //Calculated identifier and the one provided in license didn't match
 
 	LICENSE_FILE_FOUND = 100,
 	LICENSE_VERIFIED = 101
@@ -49,7 +46,7 @@
 } LICENSE_TYPE;
 
 typedef enum {
-	INFO, SEVERITY_WARN, SEVERITY_ERROR
+	SVRT_INFO, SVRT_WARN, SVRT_ERROR
 } SEVERITY;
 
 typedef struct {
@@ -61,7 +58,8 @@
 
 typedef struct {
 	const char *licenseFileLocation;
-	const char *environmentVariableName;bool openFileNearModule;
+	const char *environmentVariableName;
+	bool openFileNearModule;
 } LicenseLocation;
 
 typedef struct {

--
Gitblit v1.9.1