diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-03-14 23:07:40 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-10-06 19:51:42 +0100 |
commit | 51675e0c2a1bcf0263e45a74ab0da081469b3236 (patch) | |
tree | db9ad1db6d6ef438c4bb2f5875c6be2b8ea26779 /gst/gstregistrybinary.h | |
parent | 1f4e47703348686bb2bf2b8c314eeff0e9066ff9 (diff) | |
download | gstreamer-51675e0c2a1bcf0263e45a74ab0da081469b3236.tar.gz |
registry: Add registry helper phase 1
Phase 1 of adding the registry scan helper
Diffstat (limited to 'gst/gstregistrybinary.h')
-rw-r--r-- | gst/gstregistrybinary.h | 112 |
1 files changed, 4 insertions, 108 deletions
diff --git a/gst/gstregistrybinary.h b/gst/gstregistrybinary.h index 18e150cecd..f2e207deeb 100644 --- a/gst/gstregistrybinary.h +++ b/gst/gstregistrybinary.h @@ -33,6 +33,8 @@ #include <gst/gstpad.h> #include <gst/gstregistry.h> +G_BEGIN_DECLS + /* * GST_MAGIC_BINARY_REGISTRY_STR: * @@ -68,117 +70,11 @@ typedef struct _GstBinaryRegistryMagic gchar version[GST_MAGIC_BINARY_VERSION_LEN]; } GstBinaryRegistryMagic; -/* - * we reference strings directly from the plugins and in this case set CONST to - * avoid freeing them - */ -enum { - GST_BINARY_REGISTRY_FLAG_NONE = 0, - GST_BINARY_REGISTRY_FLAG_CONST = 1 -}; - -/* - * GstBinaryChunk: - * - * Header for binary blobs - */ -typedef struct _GstBinaryChunk -{ - gpointer data; - guint size; - guint flags; - gboolean align; -} GstBinaryChunk; - -/* - * GstBinaryPluginElement: - * - * @nfeatures: says how many binary plugin feature structures we will have - * right after the structure itself. - * - * A structure containing (staticely) every information needed for a plugin - */ - -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: - * @rank: rank of the feature - * - * A structure containing the plugin features - */ -typedef struct _GstBinaryPluginFeature -{ - gulong rank; -} GstBinaryPluginFeature; - -/* - * GstBinaryElementFactory: - * @npadtemplates: stores the number of GstBinaryPadTemplate structures - * following the structure - * @ninterfaces: stores the number of interface names following the structure - * @nuriprotocols: stores the number of protocol strings following the structure - * - * A structure containing the element factory fields - */ -typedef struct _GstBinaryElementFactory -{ - GstBinaryPluginFeature plugin_feature; - - guint npadtemplates; - guint ninterfaces; - guint nuriprotocols; -} GstBinaryElementFactory; - -/* - * GstBinaryTypeFindFactory: - * @nextensions: stores the number of typefind extensions - * - * A structure containing the element factory fields - */ -typedef struct _GstBinaryTypeFindFactory -{ - GstBinaryPluginFeature plugin_feature; - - guint nextensions; -} GstBinaryTypeFindFactory; - -/* - * GstBinaryPadTemplate: - * - * A structure containing the static pad templates of a plugin feature - */ -typedef struct _GstBinaryPadTemplate -{ - guint direction; /* Either 0:"sink" or 1:"src" */ - GstPadPresence presence; -} GstBinaryPadTemplate; - - /* Function prototypes */ gboolean gst_registry_binary_write_cache(GstRegistry *registry, const char *location); gboolean gst_registry_binary_read_cache(GstRegistry *registry, const char *location); +G_END_DECLS + #endif /* !__GST_REGISTRYBINARY_H__ */ |