Jack2 1.9.12

uuid.h
1 /*
2 Copyright (C) 2013 Paul Davis
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published by
6 the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 */
19
20 #ifndef __jack_uuid_h__
21 #define __jack_uuid_h__
22
23 #include <jack/types.h>
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 #define JACK_UUID_SIZE 36
30 #define JACK_UUID_STRING_SIZE (JACK_UUID_SIZE+1) /* includes trailing null */
31 #define JACK_UUID_EMPTY_INITIALIZER 0
32
33 extern jack_uuid_t jack_client_uuid_generate ();
34 extern jack_uuid_t jack_port_uuid_generate (uint32_t port_id);
35
36 extern uint32_t jack_uuid_to_index (jack_uuid_t);
37
38 extern int jack_uuid_compare (jack_uuid_t, jack_uuid_t);
39 extern void jack_uuid_copy (jack_uuid_t* dst, jack_uuid_t src);
40 extern void jack_uuid_clear (jack_uuid_t*);
41 extern int jack_uuid_parse (const char *buf, jack_uuid_t*);
42 extern void jack_uuid_unparse (jack_uuid_t, char buf[JACK_UUID_STRING_SIZE]);
43 extern int jack_uuid_empty (jack_uuid_t);
44
45 #ifdef __cplusplus
46 } /* namespace */
47 #endif
48
49 #endif /* __jack_uuid_h__ */
50