Blame gst/gstregistrybinary.h

Packit a6ee4b
/* GStreamer
Packit a6ee4b
 * Copyright (C) 2006 Josep Torra <josep@fluendo.com>
Packit a6ee4b
 * Copyright (C) 2006 Mathieu Garcia  <matthieu@fluendo.com>
Packit a6ee4b
 * Copyright (C) 2006 Stefan Kost <ensonic@sonicpulse.de>
Packit a6ee4b
 *
Packit a6ee4b
 * gstregistrybinary.h: Header for registry handling
Packit a6ee4b
 *
Packit a6ee4b
 * This library is free software; you can redistribute it and/or
Packit a6ee4b
 * modify it under the terms of the GNU Library General Public
Packit a6ee4b
 * License as published by the Free Software Foundation; either
Packit a6ee4b
 * version 2 of the License, or (at your option) any later version.
Packit a6ee4b
 *
Packit a6ee4b
 * This library is distributed in the hope that it will be useful,
Packit a6ee4b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit a6ee4b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit a6ee4b
 * Library General Public License for more details.
Packit a6ee4b
 *
Packit a6ee4b
 * You should have received a copy of the GNU Library General Public
Packit a6ee4b
 * License along with this library; if not, write to the
Packit a6ee4b
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit a6ee4b
 * Boston, MA 02110-1301, USA.
Packit a6ee4b
 */
Packit a6ee4b
Packit a6ee4b
/* SUGGESTIONS AND TODO :
Packit a6ee4b
** ====================
Packit a6ee4b
** - Use a compressed registry, but would induce performance loss
Packit a6ee4b
** - Encrypt the registry, for security purpose, but would also reduce performances
Packit a6ee4b
*/
Packit a6ee4b
Packit a6ee4b
#ifndef __GST_REGISTRYBINARY_H__
Packit a6ee4b
#define __GST_REGISTRYBINARY_H__
Packit a6ee4b
Packit a6ee4b
#include <gst/gstpad.h>
Packit a6ee4b
#include <gst/gstregistry.h>
Packit a6ee4b
Packit a6ee4b
G_BEGIN_DECLS
Packit a6ee4b
Packit a6ee4b
/*
Packit a6ee4b
 * GST_MAGIC_BINARY_REGISTRY_STR:
Packit a6ee4b
 *
Packit a6ee4b
 * A tag, written at the beginning of the file
Packit a6ee4b
 */
Packit a6ee4b
#define GST_MAGIC_BINARY_REGISTRY_STR "\xc0\xde\xf0\x0d"
Packit a6ee4b
/*
Packit a6ee4b
 * GST_MAGIC_BINARY_REGISTRY_LEN:
Packit a6ee4b
 *
Packit a6ee4b
 * length of the header tag.
Packit a6ee4b
 */
Packit a6ee4b
#define GST_MAGIC_BINARY_REGISTRY_LEN (4)
Packit a6ee4b
Packit a6ee4b
/*
Packit a6ee4b
 * GST_MAGIC_BINARY_VERSION_STR:
Packit a6ee4b
 *
Packit a6ee4b
 * The current version of the binary registry format.
Packit a6ee4b
 * This _must_ be updated whenever the registry format changes,
Packit a6ee4b
 * we currently use the core version where this change happened.
Packit a6ee4b
 */
Packit a6ee4b
#define GST_MAGIC_BINARY_VERSION_STR "1.3.0"
Packit a6ee4b
Packit a6ee4b
/*
Packit a6ee4b
 * GST_MAGIC_BINARY_VERSION_LEN:
Packit a6ee4b
 *
Packit a6ee4b
 * Maximum length of the version string in the header.
Packit a6ee4b
 */
Packit a6ee4b
#define GST_MAGIC_BINARY_VERSION_LEN (64)
Packit a6ee4b
Packit a6ee4b
typedef struct _GstBinaryRegistryMagic
Packit a6ee4b
{
Packit a6ee4b
  gchar magic[GST_MAGIC_BINARY_REGISTRY_LEN];
Packit a6ee4b
  gchar version[GST_MAGIC_BINARY_VERSION_LEN];
Packit a6ee4b
} GstBinaryRegistryMagic;
Packit a6ee4b
Packit a6ee4b
G_END_DECLS
Packit a6ee4b
Packit a6ee4b
#endif /* !__GST_REGISTRYBINARY_H__ */
Packit a6ee4b