1 /* 2 * The internal definitions 3 * 4 * Copyright (C) 2010-2018, Joachim Metz <joachim.metz@gmail.com> 5 * 6 * Refer to AUTHORS for acknowledgements. 7 * 8 * This software is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU Lesser General Public License as published by 10 * the Free Software Foundation, either version 3 of the License, or 11 * (at your option) any later version. 12 * 13 * This software is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU Lesser General Public License 19 * along with this software. If not, see <http://www.gnu.org/licenses/>. 20 */ 21 22 #if !defined( LIBFGUID_INTERNAL_DEFINITIONS_H ) 23 #define LIBFGUID_INTERNAL_DEFINITIONS_H 24 25 #include <common.h> 26 #include <types.h> 27 28 /* Define HAVE_LOCAL_LIBFGUID for local use of libfguid 29 */ 30 #if !defined( HAVE_LOCAL_LIBFGUID ) 31 #include <libfguid/definitions.h> 32 33 /* The definitions in <libfguid/definitions.h> are copied here 34 * for local use of libfguid 35 */ 36 #else 37 #include <byte_stream.h> 38 39 #define LIBFGUID_VERSION 20180724 40 41 /* The version string 42 */ 43 #define LIBFGUID_VERSION_STRING "20180724" 44 45 /* The byte order definitions 46 */ 47 #define LIBFGUID_ENDIAN_BIG _BYTE_STREAM_ENDIAN_BIG 48 #define LIBFGUID_ENDIAN_LITTLE _BYTE_STREAM_ENDIAN_LITTLE 49 50 /* The GUID identifier version definitions 51 */ 52 enum LIBFGUID_IDENTIFIER_VERSIONS 53 { 54 LIBFGUID_IDENTIFIER_VERSION_TIME_BASED = 1, 55 LIBFGUID_IDENTIFIER_VERSION_DCE = 2, 56 LIBFGUID_IDENTIFIER_VERSION_NAME_BASED = 3, 57 LIBFGUID_IDENTIFIER_VERSION_RANDOM_BASED = 4 58 }; 59 60 /* The string format definition flags 61 */ 62 enum LIBFGUID_STRING_FORMAT_FLAGS 63 { 64 /* Format the using lower case 65 */ 66 LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE = 0x00000001UL, 67 68 /* Format the using upper case 69 */ 70 LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE = 0x00000002UL, 71 72 /* Format the using mixed case 73 */ 74 LIBFGUID_STRING_FORMAT_FLAG_USE_MIXED_CASE = 0x00000003UL, 75 76 /* Format the using surrounding braces { GUID } 77 */ 78 LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES = 0x00000004UL 79 }; 80 81 #endif /* !defined( HAVE_LOCAL_LIBFGUID ) */ 82 83 #endif /* !defined( LIBFGUID_INTERNAL_DEFINITIONS_H ) */ 84 85