File: libfguid_definitions.h

package info (click to toggle)
libfsntfs 20190104-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 14,708 kB
  • sloc: ansic: 230,932; sh: 5,968; makefile: 1,743; python: 492; sed: 16
file content (84 lines) | stat: -rw-r--r-- 2,343 bytes parent folder | download | duplicates (34)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/*
 * The internal definitions
 *
 * Copyright (C) 2010-2018, Joachim Metz <joachim.metz@gmail.com>
 *
 * Refer to AUTHORS for acknowledgements.
 *
 * This software is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this software.  If not, see <http://www.gnu.org/licenses/>.
 */

#if !defined( LIBFGUID_INTERNAL_DEFINITIONS_H )
#define LIBFGUID_INTERNAL_DEFINITIONS_H

#include <common.h>
#include <types.h>

/* Define HAVE_LOCAL_LIBFGUID for local use of libfguid
 */
#if !defined( HAVE_LOCAL_LIBFGUID )
#include <libfguid/definitions.h>

/* The definitions in <libfguid/definitions.h> are copied here
 * for local use of libfguid
 */
#else
#include <byte_stream.h>

#define LIBFGUID_VERSION					20180724

/* The version string
 */
#define LIBFGUID_VERSION_STRING					"20180724"

/* The byte order definitions
 */
#define LIBFGUID_ENDIAN_BIG					_BYTE_STREAM_ENDIAN_BIG
#define LIBFGUID_ENDIAN_LITTLE					_BYTE_STREAM_ENDIAN_LITTLE

/* The GUID identifier version definitions
 */
enum LIBFGUID_IDENTIFIER_VERSIONS
{
	LIBFGUID_IDENTIFIER_VERSION_TIME_BASED			= 1,
	LIBFGUID_IDENTIFIER_VERSION_DCE				= 2,
	LIBFGUID_IDENTIFIER_VERSION_NAME_BASED			= 3,
	LIBFGUID_IDENTIFIER_VERSION_RANDOM_BASED		= 4
};

/* The string format definition flags
 */
enum LIBFGUID_STRING_FORMAT_FLAGS
{
	/* Format the using lower case
	 */
	LIBFGUID_STRING_FORMAT_FLAG_USE_LOWER_CASE		= 0x00000001UL,

	/* Format the using upper case
	 */
	LIBFGUID_STRING_FORMAT_FLAG_USE_UPPER_CASE		= 0x00000002UL,

	/* Format the using mixed case
	 */
	LIBFGUID_STRING_FORMAT_FLAG_USE_MIXED_CASE		= 0x00000003UL,

	/* Format the using surrounding braces { GUID }
	 */
	LIBFGUID_STRING_FORMAT_FLAG_USE_SURROUNDING_BRACES	= 0x00000004UL
};

#endif /* !defined( HAVE_LOCAL_LIBFGUID ) */

#endif /* !defined( LIBFGUID_INTERNAL_DEFINITIONS_H ) */