summaryrefslogtreecommitdiff
path: root/gst/gstregistrybinary.h
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2009-01-06 17:58:59 +0000
committerTim-Philipp Müller <tim@centricular.net>2009-01-06 17:58:59 +0000
commit2ae03ba72fa81379c0f059ca4229f70202e0b9bf (patch)
tree004e233acff8a6985101dd6640bec7080b9d40c0 /gst/gstregistrybinary.h
parent15e2bf52141aefdd458e4363be6b2a4710a4e7dd (diff)
downloadgstreamer-2ae03ba72fa81379c0f059ca4229f70202e0b9bf.tar.gz
Add API for making a GStreamer plugin 'dependent' on external files, directories or environment variables, so that GS...
Original commit message from CVS: * docs/gst/gstreamer-sections.txt:: * gst/gst_private.h: (GstPluginDep), (_GstPluginPrivate): * gst/gstplugin.c: (gst_plugin_init), (gst_plugin_finalize), (gst_plugin_class_init), (gst_plugin_list_free), (gst_plugin_ext_dep_get_env_vars_hash), (_priv_plugin_deps_env_vars_changed), (gst_plugin_ext_dep_extract_env_vars_paths), (gst_plugin_ext_dep_get_hash_from_stat_entry), (gst_plugin_ext_dep_direntry_matches), (gst_plugin_ext_dep_scan_dir_and_match_names), (gst_plugin_ext_dep_scan_path_with_filenames), (gst_plugin_ext_dep_get_stat_hash), (_priv_plugin_deps_files_changed), (gst_plugin_ext_dep_free), (gst_plugin_ext_dep_strv_equal), (gst_plugin_ext_dep_equals), (gst_plugin_add_dependency), (gst_plugin_add_dependency_simple): * gst/gstplugin.h: (GstPluginPrivate), (GstPluginFlags), (GST_PLUGIN_DEPENDENCY_FLAG_NONE), (GST_PLUGIN_DEPENDENCY_FLAG_RECURSE), (GST_PLUGIN_DEPENDENCY_FLAG_PATHS_ARE_DEFAULT_ONLY), (GST_PLUGIN_DEPENDENCY_FLAG_FILE_NAME_IS_SUFFIX), (GstPluginDependencyFlags), (GstPluginFilter): * gst/gstregistry.c: (gst_registry_scan_path_level): * gst/gstregistrybinary.c: (gst_registry_binary_save_feature), (gst_registry_binary_save_plugin_dep), (gst_registry_binary_save_plugin), (gst_registry_binary_load_feature), (gst_registry_binary_load_plugin_dep_strv), (gst_registry_binary_load_plugin_dep), (gst_registry_binary_load_plugin): * gst/gstregistrybinary.h: (GST_MAGIC_BINARY_VERSION_STR), (GstBinaryPluginElement), (_GstBinaryDep), (GstBinaryDep): * gst/gstregistryxml.c: (gst_registry_xml_save_plugin): Add API for making a GStreamer plugin 'dependent' on external files, directories or environment variables, so that GStreamer knows when it needs to re-load GStreamer plugins that wrap other plugin systems. Fixes bug #350477. API: add gst_plugin_add_dependency() API: add gst_plugin_add_dependency_simple()
Diffstat (limited to 'gst/gstregistrybinary.h')
-rw-r--r--gst/gstregistrybinary.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/gst/gstregistrybinary.h b/gst/gstregistrybinary.h
index 5ce3e96d89..bcdb8a65e9 100644
--- a/gst/gstregistrybinary.h
+++ b/gst/gstregistrybinary.h
@@ -57,7 +57,7 @@
* This _must_ be updated whenever the registry format changes,
* we currently use the core version where this change happened.
*/
-#define GST_MAGIC_BINARY_VERSION_STR ("0.10.21.1")
+#define GST_MAGIC_BINARY_VERSION_STR ("0.10.21.2")
/*
* GST_MAGIC_BINARY_VERSION_LEN:
@@ -108,9 +108,23 @@ typedef struct _GstBinaryPluginElement
gulong file_size;
gulong file_mtime;
+ guint n_deps;
+
guint nfeatures;
} GstBinaryPluginElement;
+/* GstBinaryDep:
+ */
+typedef struct _GstBinaryDep
+{
+ guint flags;
+ guint n_env_vars;
+ guint n_paths;
+ guint n_names;
+
+ guint env_hash;
+ guint stat_hash;
+} GstBinaryDep;
/*
* GstBinaryPluginFeature: