GNUstep CoreBase Library 0.2
CFUUID.h
1/* CFUUID.h
2
3 Copyright (C) 2011 Free Software Foundation, Inc.
4
5 Written by: Stefan Bidigaray
6 Date: May, 2011
7
8 This file is part of GNUstep CoreBase Library.
9
10 This library is free software; you can redisibute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
14
15 This library is disibuted in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; see the file COPYING.LIB.
22 If not, see <http://www.gnu.org/licenses/> or write to the
23 Free Software Foundation, 51 Franklin Street, Fifth Floor,
24 Boston, MA 02110-1301, USA.
25*/
26
27#ifndef __COREFOUNDATION_CFUUID_H__
28#define __COREFOUNDATION_CFUUID_H__
29
30#include <CoreFoundation/CFBase.h>
31
32CF_EXTERN_C_BEGIN
36typedef const struct __CFUUID *CFUUIDRef;
37
38typedef struct
39{
40 UInt8 byte0;
41 UInt8 byte1;
42 UInt8 byte2;
43 UInt8 byte3;
44 UInt8 byte4;
45 UInt8 byte5;
46 UInt8 byte6;
47 UInt8 byte7;
48 UInt8 byte8;
49 UInt8 byte9;
50 UInt8 byte10;
51 UInt8 byte11;
52 UInt8 byte12;
53 UInt8 byte13;
54 UInt8 byte14;
55 UInt8 byte15;
57
61CF_EXPORT CFUUIDRef CFUUIDCreate (CFAllocatorRef alloc);
62
63CF_EXPORT CFUUIDRef
64CFUUIDCreateFromString (CFAllocatorRef alloc, CFStringRef uuidStr);
65
66CF_EXPORT CFUUIDRef
67CFUUIDCreateFromUUIDBytes (CFAllocatorRef alloc, CFUUIDBytes bytes);
68
69CF_EXPORT CFUUIDRef
70CFUUIDCreateWithBytes (CFAllocatorRef alloc, UInt8 byte0, UInt8 byte1,
71 UInt8 byte2, UInt8 byte3, UInt8 byte4, UInt8 byte5,
72 UInt8 byte6, UInt8 byte7, UInt8 byte8, UInt8 byte9,
73 UInt8 byte10, UInt8 byte11, UInt8 byte12, UInt8 byte13,
74 UInt8 byte14, UInt8 byte15);
80CF_EXPORT CFStringRef CFUUIDCreateString (CFAllocatorRef alloc, CFUUIDRef uuid);
81
82CF_EXPORT CFUUIDRef
83CFUUIDGetConstantUUIDWithBytes (CFAllocatorRef alloc, UInt8 byte0, UInt8 byte1,
84 UInt8 byte2, UInt8 byte3, UInt8 byte4,
85 UInt8 byte5, UInt8 byte6, UInt8 byte7,
86 UInt8 byte8, UInt8 byte9, UInt8 byte10,
87 UInt8 byte11, UInt8 byte12, UInt8 byte13,
88 UInt8 byte14, UInt8 byte15);
89
90CF_EXPORT CFUUIDBytes CFUUIDGetUUIDBytes (CFUUIDRef uuid);
96CF_EXPORT CFTypeID CFUUIDGetTypeID (void);
100CF_EXTERN_C_END
101#endif /* __COREFOUNDATION_CFUUID_H__ */
const struct __CFAllocator * CFAllocatorRef
A reference to a CFAllocator object.
Definition CFBase.h:301
Definition CFUUID.h:39