From 7c2489cc3dc798484e11a449fd0e305210de901b Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周六, 14 12月 2019 20:12:41 +0800 Subject: [PATCH] fix codacy warnings --- src/library/pc-identifiers.h | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/library/pc-identifiers.h b/src/library/pc-identifiers.h index 88d2442..2eb0d56 100644 --- a/src/library/pc-identifiers.h +++ b/src/library/pc-identifiers.h @@ -2,21 +2,37 @@ * pc-identifiers.h * * Created on: Apr 16, 2014 - * Author: devel + * */ #ifndef PC_IDENTIFIERS_H_ #define PC_IDENTIFIERS_H_ -#include "api/datatypes.h" + +#include <licensecc/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[PC_IDENTIFIER_SIZE + 1]; 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 +} +#endif #endif /* PC_IDENTIFIERS_H_ */ -- Gitblit v1.9.1