Gabriele Contini
2019-09-10 82f9d834ad772b2f16b6524f679d14d8a7afe881
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
38
/*
 * pc-identifiers.h
 *
 *  Created on: Apr 16, 2014
 *      
 */
 
#ifndef PC_IDENTIFIERS_H_
#define PC_IDENTIFIERS_H_
#include "api/datatypes.h"
#include "base/base.h"
 
#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_ */