diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-11-10 18:03:43 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-11-10 18:17:26 +0100 |
commit | 039ef8352387646434f537138007797ac02c325c (patch) | |
tree | 3cecdb77558cdac01a71680aa51a4d855f816a01 /gst/gstregistry.c | |
parent | 1a50186630000fbd9097b042b54cc787c9876a12 (diff) |
registry: API: Add gst_{default,}_registry_get_feature_list_cookie()
This returns the internal feature list cookie, which changes every
time a feature is added or removed. This can be used by elements
to check if they should update their cached feature lists.
Diffstat (limited to 'gst/gstregistry.c')
-rw-r--r-- | gst/gstregistry.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 56f4744a34..b63d886f21 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -1653,3 +1653,21 @@ gst_update_registry (void) return res; } + +/** + * gst_registry_get_feature_list_cookie: + * + * Returns the registrys feature list cookie. This changes + * every time a feature is added or removed from the registry. + * + * Returns: the feature list cookie. + * + * Since: 0.10.26 + */ +guint32 +gst_registry_get_feature_list_cookie (GstRegistry * registry) +{ + g_return_val_if_fail (GST_IS_REGISTRY (registry), 0); + + return registry->priv->cookie; +} |