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/pc-identifiers.h | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/library/pc-identifiers.h b/src/library/pc-identifiers.h index 1b25936..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_ @@ -15,13 +15,22 @@ #endif typedef unsigned char PcIdentifier[6]; -typedef char UserPcIdentifier[21]; - +typedef char PcSignature[21]; FUNCTION_RETURN generate_pc_id(PcIdentifier * identifiers, unsigned int * array_size, IDENTIFICATION_STRATEGY strategy); -EVENT_TYPE validate_user_pc_identifier(UserPcIdentifier str_code); +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 } -- Gitblit v1.9.1