From 0d8b39c94e9bee14ec9c33fa6a53c48f20f0ac70 Mon Sep 17 00:00:00 2001
From: Maximilien Siavelis <maximilien.siavelis@simulease.com>
Date: 周日, 21 4月 2019 23:06:05 +0800
Subject: [PATCH] copy ini/SimpleIni.h into install directory

---
 src/library/pc-identifiers.h |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/src/library/pc-identifiers.h b/src/library/pc-identifiers.h
index 99d50c0..2d36da8 100644
--- a/src/library/pc-identifiers.h
+++ b/src/library/pc-identifiers.h
@@ -2,7 +2,7 @@
  * pc-identifiers.h
  *
  *  Created on: Apr 16, 2014
- *      Author: devel
+ *      
  */
 
 #ifndef PC_IDENTIFIERS_H_
@@ -10,11 +10,29 @@
 #include "api/datatypes.h"
 #include "base/base.h"
 
-typedef unsigned char PcIdentifier[6];
-typedef char UserPcIdentifier[21];
+#ifdef __cplusplus
+extern "C" {
+#endif
 
+typedef unsigned char PcIdentifier[6];
+typedef char PcSignature[21];
 
 FUNCTION_RETURN generate_pc_id(PcIdentifier * identifiers, unsigned int * array_size,
 		IDENTIFICATION_STRATEGY strategy);
 
+EVENT_TYPE validate_pc_signature(PcSignature str_code);
+
+/**
+ * Generates an UserPcIdentifier.
+ *
+ * @param identifier_out
+ * @param strategy
+ * @return
+ */
+FUNCTION_RETURN generate_user_pc_signature(PcSignature identifier_out,
+		IDENTIFICATION_STRATEGY strategy);
+
+#ifdef __cplusplus
+}
+#endif
 #endif /* PC_IDENTIFIERS_H_ */

--
Gitblit v1.9.1