Gabriele Contini
2020-01-11 1d1082fe695366da3498f528b953203a90fe7385
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * pc-identifiers.h
 *
 *  Created on: Apr 16, 2014
 *
 */
 
#ifndef PC_IDENTIFIERS_H_
#define PC_IDENTIFIERS_H_
 
#include <licensecc/datatypes.h>
 
#ifdef __cplusplus
extern "C" {
#endif
#include "../base/base.h"
 
typedef char PcSignature[LCC_API_PC_IDENTIFIER_SIZE + 1];
 
FUNCTION_RETURN generate_pc_id(PcIdentifier * identifiers, unsigned int * array_size,
        LCC_IDENTIFICATION_STRATEGY strategy);
 
LCC_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, LCC_IDENTIFICATION_STRATEGY strategy);
 
#ifdef __cplusplus
}
#endif
#endif /* PC_IDENTIFIERS_H_ */