Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
uuid_defs.h
Go to the documentation of this file.
1 /*
2 ** Copyright 2014-2021 The Earlham Institute
3 **
4 ** Licensed under the Apache License, Version 2.0 (the "License");
5 ** you may not use this file except in compliance with the License.
6 ** You may obtain a copy of the License at
7 **
8 ** http://www.apache.org/licenses/LICENSE-2.0
9 **
10 ** Unless required by applicable law or agreed to in writing, software
11 ** distributed under the License is distributed on an "AS IS" BASIS,
12 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ** See the License for the specific language governing permissions and
14 ** limitations under the License.
15 */
16 
17 /*
18  * uuid_constants.h
19  *
20  * Created on: 30 Apr 2021
21  * Author: billy
22  */
23 
24 #ifndef CORE_SHARED_UUID_INCLUDE_UUID_CONSTANTS_H_
25 #define CORE_SHARED_UUID_INCLUDE_UUID_CONSTANTS_H_
26 
32 #define UUID_STRING_BUFFER_SIZE (37)
33 
39 #define UUID_RAW_SIZE (16)
40 
41 /*
42  * We want to use the Unix uuid_t as the standard
43  * and wrap a Windows equivalent and since the
44  * structures differ slightly we need to untypedef
45  * uuid_t for Windows
46  */
47 
48 #ifdef _WIN32
49  #include "windows_uuid.h"
50 #else
51  #include "uuid/uuid.h"
52 #endif
53 
54 
55 #endif /* CORE_SHARED_UUID_INCLUDE_UUID_CONSTANTS_H_ */
windows_uuid.h