/*
* we reference strings directly from the plugins and in this case set CONST to
- * avoid freeing them
+ * avoid freeing them. If g_free() should be used, the MALLOC flag is set,
+ * otherwise g_slice_free1() will be used!
*/
enum {
GST_REGISTRY_CHUNK_FLAG_NONE = 0,
- GST_REGISTRY_CHUNK_FLAG_CONST = 1
+ GST_REGISTRY_CHUNK_FLAG_CONST = 1,
+ GST_REGISTRY_CHUNK_FLAG_MALLOC = 2,
};
/*
gboolean align;
} GstRegistryChunk;
+typedef struct _GstRegistryChunkGlobalHeader
+{
+ guint32 filter_env_hash;
+} GstRegistryChunkGlobalHeader;
+
/*
* GstRegistryChunkPluginElement:
*
_priv_gst_registry_chunks_load_plugin (GstRegistry * registry, gchar ** in,
gchar *end, GstPlugin **out_plugin);
+void
+_priv_gst_registry_chunks_save_global_header (GList ** list,
+ GstRegistry * registry, guint32 filter_env_hash);
+
+gboolean
+_priv_gst_registry_chunks_load_global_header (GstRegistry * registry,
+ gchar ** in, gchar *end, guint32 * filter_env_hash);
+
+void
+_priv_gst_registry_chunk_free (GstRegistryChunk *chunk);
+
G_END_DECLS
#endif /* __GST_REGISTRYCHUNKS_H__ */