|
Packit Service |
963350 |
/* GStreamer
|
|
Packit Service |
963350 |
* Copyright (C) 2006 Josep Torra <josep@fluendo.com>
|
|
Packit Service |
963350 |
* Copyright (C) 2006 Mathieu Garcia <matthieu@fluendo.com>
|
|
Packit Service |
963350 |
* Copyright (C) 2006 Stefan Kost <ensonic@sonicpulse.de>
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* gstregistrybinary.h: Header for registry handling
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
963350 |
* modify it under the terms of the GNU Library General Public
|
|
Packit Service |
963350 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
963350 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
963350 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
963350 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
963350 |
* Library General Public License for more details.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* You should have received a copy of the GNU Library General Public
|
|
Packit Service |
963350 |
* License along with this library; if not, write to the
|
|
Packit Service |
963350 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit Service |
963350 |
* Boston, MA 02110-1301, USA.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
#ifndef __GST_REGISTRYCHUNKS_H__
|
|
Packit Service |
963350 |
#define __GST_REGISTRYCHUNKS_H__
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#include <gst/gstpad.h>
|
|
Packit Service |
963350 |
#include <gst/gstregistry.h>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*
|
|
Packit Service |
963350 |
* we reference strings directly from the plugins and in this case set CONST to
|
|
Packit Service |
963350 |
* avoid freeing them. If g_free() should be used, the MALLOC flag is set,
|
|
Packit Service |
963350 |
* otherwise g_slice_free1() will be used!
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
enum {
|
|
Packit Service |
963350 |
GST_REGISTRY_CHUNK_FLAG_NONE = 0,
|
|
Packit Service |
963350 |
GST_REGISTRY_CHUNK_FLAG_CONST = 1,
|
|
Packit Service |
963350 |
GST_REGISTRY_CHUNK_FLAG_MALLOC = 2,
|
|
Packit Service |
963350 |
};
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*
|
|
Packit Service |
963350 |
* GstRegistryChunk:
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Header for binary blobs
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunk
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
gpointer data;
|
|
Packit Service |
963350 |
guint size;
|
|
Packit Service |
963350 |
guint flags;
|
|
Packit Service |
963350 |
gboolean align;
|
|
Packit Service |
963350 |
} GstRegistryChunk;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunkGlobalHeader
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
guint32 filter_env_hash;
|
|
Packit Service |
963350 |
} GstRegistryChunkGlobalHeader;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*
|
|
Packit Service |
963350 |
* GstRegistryChunkPluginElement:
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* @n_deps: Says how many dependency structures follows.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* @nfeatures: says how many binary plugin feature structures we will have
|
|
Packit Service |
963350 |
* right after the structure itself.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* A structure containing (staticely) every information needed for a plugin
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunkPluginElement
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
gulong file_size;
|
|
Packit Service |
963350 |
gulong file_mtime;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
guint n_deps;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
guint nfeatures;
|
|
Packit Service |
963350 |
} GstRegistryChunkPluginElement;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* GstRegistryChunkDep:
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunkDep
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
guint flags;
|
|
Packit Service |
963350 |
guint n_env_vars;
|
|
Packit Service |
963350 |
guint n_paths;
|
|
Packit Service |
963350 |
guint n_names;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
guint env_hash;
|
|
Packit Service |
963350 |
guint stat_hash;
|
|
Packit Service |
963350 |
} GstRegistryChunkDep;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*
|
|
Packit Service |
963350 |
* GstRegistryChunkPluginFeature:
|
|
Packit Service |
963350 |
* @rank: rank of the feature
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* A structure containing the plugin features
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunkPluginFeature
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
gulong rank;
|
|
Packit Service |
963350 |
} GstRegistryChunkPluginFeature;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*
|
|
Packit Service |
963350 |
* GstRegistryChunkElementFactory:
|
|
Packit Service |
963350 |
* @npadtemplates: stores the number of GstRegistryChunkPadTemplate structures
|
|
Packit Service |
963350 |
* following the structure
|
|
Packit Service |
963350 |
* @ninterfaces: stores the number of interface names following the structure
|
|
Packit Service |
963350 |
* @nuriprotocols: stores the number of protocol strings following the structure
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* A structure containing the element factory fields
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunkElementFactory
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
GstRegistryChunkPluginFeature plugin_feature;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
guint npadtemplates;
|
|
Packit Service |
963350 |
guint ninterfaces;
|
|
Packit Service |
963350 |
guint nuriprotocols;
|
|
Packit Service |
963350 |
} GstRegistryChunkElementFactory;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*
|
|
Packit Service |
963350 |
* GstRegistryChunkTypeFindFactory:
|
|
Packit Service |
963350 |
* @nextensions: stores the number of typefind extensions
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* A structure containing the type find factory fields
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunkTypeFindFactory
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
GstRegistryChunkPluginFeature plugin_feature;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
guint nextensions;
|
|
Packit Service |
963350 |
} GstRegistryChunkTypeFindFactory;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*
|
|
Packit Service |
963350 |
* GstRegistryChunkDeviceProviderFactory:
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* A structure containing the device provider factory fields
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunkDeviceProviderFactory
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
GstRegistryChunkPluginFeature plugin_feature;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
} GstRegistryChunkDeviceProviderFactory;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*
|
|
Packit Service |
963350 |
* GstRegistryChunkDynamicTypeFactory:
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* A structure containing the dynamic type factory flags field
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunkDynamicTypeFactory
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
GstRegistryChunkPluginFeature plugin_feature;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
guint type_flags;
|
|
Packit Service |
963350 |
} GstRegistryChunkDynamicTypeFactory;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/*
|
|
Packit Service |
963350 |
* GstRegistryChunkPadTemplate:
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* A structure containing the static pad templates of a plugin feature
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
typedef struct _GstRegistryChunkPadTemplate
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
guint direction; /* Either 0:"sink" or 1:"src" */
|
|
Packit Service |
963350 |
GstPadPresence presence;
|
|
Packit Service |
963350 |
} GstRegistryChunkPadTemplate;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_BEGIN_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gboolean
|
|
Packit Service |
963350 |
_priv_gst_registry_chunks_save_plugin (GList ** list, GstRegistry * registry,
|
|
Packit Service |
963350 |
GstPlugin * plugin);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gboolean
|
|
Packit Service |
963350 |
_priv_gst_registry_chunks_load_plugin (GstRegistry * registry, gchar ** in,
|
|
Packit Service |
963350 |
gchar *end, GstPlugin **out_plugin);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
void
|
|
Packit Service |
963350 |
_priv_gst_registry_chunks_save_global_header (GList ** list,
|
|
Packit Service |
963350 |
GstRegistry * registry, guint32 filter_env_hash);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gboolean
|
|
Packit Service |
963350 |
_priv_gst_registry_chunks_load_global_header (GstRegistry * registry,
|
|
Packit Service |
963350 |
gchar ** in, gchar *end, guint32 * filter_env_hash);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
void
|
|
Packit Service |
963350 |
_priv_gst_registry_chunk_free (GstRegistryChunk *chunk);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
G_END_DECLS
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#endif /* __GST_REGISTRYCHUNKS_H__ */
|