SpCommon.h
Go to the documentation of this file.
1 
10 #ifndef SCANDIT_PARSER_COMMON_H_
11 #define SCANDIT_PARSER_COMMON_H_
12 
13 #include <stdint.h>
14 #include <string.h>
15 
16 #include <Scandit/ScConfig.h>
17 #include <Scandit/ScByteArray.h>
18 
19 #if defined(__cplusplus)
20 # define SP_BEGIN_EXTERN_C extern "C" {
21 # define SP_END_EXTERN_C }
22 #else
23 # define SP_BEGIN_EXTERN_C
24 # define SP_END_EXTERN_C
25 #endif
26 
27 SP_BEGIN_EXTERN_C
28 
29 typedef int SpBool;
30 
31 #define SP_TRUE 1
32 #define SP_FALSE 0
33 
39 typedef ScByteArray SpData;
40 
49 SC_EXPORT
50 void sp_data_free(SpData data);
51 
52 SP_END_EXTERN_C
53 
54 #endif // SCANDIT_PARSER_COMMON_H_
Functions to manage an array of bytes.
void sp_data_free(SpData data)
Free the data.
Represents a binary blob of data, or a string of characters.
Common definitions used throughout the ScanditSDK API.
A null terminated array of bytes.