2 * Copyright (C) 2006 Josep Torra <josep@fluendo.com>
3 * Copyright (C) 2006 Mathieu Garcia <matthieu@fluendo.com>
4 * Copyright (C) 2006 Stefan Kost <ensonic@sonicpulse.de>
6 * gstregistrybinary.h: Header for registry handling
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library 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 GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
24 /* SUGGESTIONS AND TODO :
25 ** ====================
26 ** - Use a compressed registry, but would induce performance loss
27 ** - Encrypt the registry, for security purpose, but would also reduce performances
30 #ifndef __GST_REGISTRYBINARY_H__
31 #define __GST_REGISTRYBINARY_H__
33 #include <gst/gstpad.h>
34 #include <gst/gstregistry.h>
39 * GST_MAGIC_BINARY_REGISTRY_STR:
41 * A tag, written at the beginning of the file
43 #define GST_MAGIC_BINARY_REGISTRY_STR "\xc0\xde\xf0\x0d"
45 * GST_MAGIC_BINARY_REGISTRY_LEN:
47 * length of the header tag.
49 #define GST_MAGIC_BINARY_REGISTRY_LEN (4)
52 * GST_MAGIC_BINARY_VERSION_STR:
54 * The current version of the binary registry format.
55 * This _must_ be updated whenever the registry format changes,
56 * we currently use the core version where this change happened.
58 #define GST_MAGIC_BINARY_VERSION_STR "1.3.0"
61 * GST_MAGIC_BINARY_VERSION_LEN:
63 * Maximum length of the version string in the header.
65 #define GST_MAGIC_BINARY_VERSION_LEN (64)
67 typedef struct _GstBinaryRegistryMagic
69 gchar magic[GST_MAGIC_BINARY_REGISTRY_LEN];
70 gchar version[GST_MAGIC_BINARY_VERSION_LEN];
71 } GstBinaryRegistryMagic;
75 #endif /* !__GST_REGISTRYBINARY_H__ */