pad: make an ACCEPT_CAPS query
[platform/upstream/gstreamer.git] / gst / gstregistrychunks.h
index 88d6f07..fdbac5e 100644 (file)
 
 /*
  * 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,
 };
 
 /*
@@ -48,6 +50,11 @@ typedef struct _GstRegistryChunk
   gboolean align;
 } GstRegistryChunk;
 
+typedef struct _GstRegistryChunkGlobalHeader
+{
+  guint32  filter_env_hash;
+} GstRegistryChunkGlobalHeader;
+
 /*
  * GstRegistryChunkPluginElement:
  *
@@ -145,6 +152,17 @@ gboolean
 _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__ */