Initialize Tizen 2.3
[framework/multimedia/gstreamer0.10.git] / wearable / docs / gst / html / GstRegistry.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GstRegistry</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GStreamer 0.10 Core Reference Manual">
8 <link rel="up" href="libgstreamer.html" title="GStreamer Core Library">
9 <link rel="prev" href="gstreamer-GstQuery.html" title="GstQuery">
10 <link rel="next" href="gstreamer-GstSegment.html" title="GstSegment">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="gstreamer-GstQuery.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="libgstreamer.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer 0.10 Core Reference Manual</th>
21 <td><a accesskey="n" href="gstreamer-GstSegment.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GstRegistry.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#GstRegistry.description" class="shortcut">Description</a>
27                    | 
28                   <a href="#GstRegistry.object-hierarchy" class="shortcut">Object Hierarchy</a>
29                    | 
30                   <a href="#GstRegistry.signals" class="shortcut">Signals</a>
31 </td></tr>
32 </table>
33 <div class="refentry">
34 <a name="GstRegistry"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
36 <td valign="top">
37 <h2><span class="refentrytitle"><a name="GstRegistry.top_of_page"></a>GstRegistry</span></h2>
38 <p>GstRegistry — Abstract base class for management of <a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a> objects</p>
39 </td>
40 <td valign="top" align="right"></td>
41 </tr></table></div>
42 <div class="refsynopsisdiv">
43 <a name="GstRegistry.synopsis"></a><h2>Synopsis</h2>
44 <pre class="synopsis">
45 #include &lt;gst/gst.h&gt;
46
47 struct              <a class="link" href="GstRegistry.html#GstRegistry-struct" title="struct GstRegistry">GstRegistry</a>;
48 <a class="link" href="GstRegistry.html" title="GstRegistry"><span class="returnvalue">GstRegistry</span></a> *       <a class="link" href="GstRegistry.html#gst-registry-get-default" title="gst_registry_get_default ()">gst_registry_get_default</a>            (<em class="parameter"><code><span class="type">void</span></code></em>);
49 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="GstRegistry.html#gst-registry-get-feature-list" title="gst_registry_get_feature_list ()">gst_registry_get_feature_list</a>       (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
50                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> type</code></em>);
51 <span class="returnvalue">guint32</span>             <a class="link" href="GstRegistry.html#gst-registry-get-feature-list-cookie" title="gst_registry_get_feature_list_cookie ()">gst_registry_get_feature_list_cookie</a>
52                                                         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>);
53 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="GstRegistry.html#gst-registry-get-feature-list-by-plugin" title="gst_registry_get_feature_list_by_plugin ()">gst_registry_get_feature_list_by_plugin</a>
54                                                         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
55                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
56 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="GstRegistry.html#gst-registry-get-path-list" title="gst_registry_get_path_list ()">gst_registry_get_path_list</a>          (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>);
57 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="GstRegistry.html#gst-registry-get-plugin-list" title="gst_registry_get_plugin_list ()">gst_registry_get_plugin_list</a>        (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>);
58 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GstRegistry.html#gst-registry-add-plugin" title="gst_registry_add_plugin ()">gst_registry_add_plugin</a>             (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
59                                                          <em class="parameter"><code><a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a> *plugin</code></em>);
60 <span class="returnvalue">void</span>                <a class="link" href="GstRegistry.html#gst-registry-remove-plugin" title="gst_registry_remove_plugin ()">gst_registry_remove_plugin</a>          (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
61                                                          <em class="parameter"><code><a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a> *plugin</code></em>);
62 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="GstRegistry.html#gst-registry-plugin-filter" title="gst_registry_plugin_filter ()">gst_registry_plugin_filter</a>          (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
63                                                          <em class="parameter"><code><a class="link" href="GstPlugin.html#GstPluginFilter" title="GstPluginFilter ()"><span class="type">GstPluginFilter</span></a> filter</code></em>,
64                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> first</code></em>,
65                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
66 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="GstRegistry.html#gst-registry-feature-filter" title="gst_registry_feature_filter ()">gst_registry_feature_filter</a>         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
67                                                          <em class="parameter"><code><a class="link" href="GstPluginFeature.html#GstPluginFeatureFilter" title="GstPluginFeatureFilter ()"><span class="type">GstPluginFeatureFilter</span></a> filter</code></em>,
68                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> first</code></em>,
69                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
70 <a class="link" href="GstPlugin.html" title="GstPlugin"><span class="returnvalue">GstPlugin</span></a> *         <a class="link" href="GstRegistry.html#gst-registry-find-plugin" title="gst_registry_find_plugin ()">gst_registry_find_plugin</a>            (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
71                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
72 <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="returnvalue">GstPluginFeature</span></a> *  <a class="link" href="GstRegistry.html#gst-registry-find-feature" title="gst_registry_find_feature ()">gst_registry_find_feature</a>           (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
73                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
74                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> type</code></em>);
75 <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="returnvalue">GstPluginFeature</span></a> *  <a class="link" href="GstRegistry.html#gst-registry-lookup-feature" title="gst_registry_lookup_feature ()">gst_registry_lookup_feature</a>         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
76                                                          <em class="parameter"><code>const <span class="type">char</span> *name</code></em>);
77 <span class="returnvalue">void</span>                <a class="link" href="GstRegistry.html#gst-registry-add-path" title="gst_registry_add_path ()">gst_registry_add_path</a>               (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
78                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>);
79 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GstRegistry.html#gst-registry-scan-path" title="gst_registry_scan_path ()">gst_registry_scan_path</a>              (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
80                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>);
81 <a class="link" href="GstPlugin.html" title="GstPlugin"><span class="returnvalue">GstPlugin</span></a> *         <a class="link" href="GstRegistry.html#gst-registry-lookup" title="gst_registry_lookup ()">gst_registry_lookup</a>                 (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
82                                                          <em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);
83 <span class="returnvalue">void</span>                <a class="link" href="GstRegistry.html#gst-registry-remove-feature" title="gst_registry_remove_feature ()">gst_registry_remove_feature</a>         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
84                                                          <em class="parameter"><code><a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a> *feature</code></em>);
85 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GstRegistry.html#gst-registry-add-feature" title="gst_registry_add_feature ()">gst_registry_add_feature</a>            (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
86                                                          <em class="parameter"><code><a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a> *feature</code></em>);
87
88 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GstRegistry.html#gst-default-registry-check-feature-version" title="gst_default_registry_check_feature_version ()">gst_default_registry_check_feature_version</a>
89                                                         (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *feature_name</code></em>,
90                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> min_major</code></em>,
91                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> min_minor</code></em>,
92                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> min_micro</code></em>);
93 #define             <a class="link" href="GstRegistry.html#gst-default-registry-get-path-list" title="gst_default_registry_get_path_list">gst_default_registry_get_path_list</a>
94 #define             <a class="link" href="GstRegistry.html#gst-default-registry-add-plugin" title="gst_default_registry_add_plugin()">gst_default_registry_add_plugin</a>     (plugin)
95 #define             <a class="link" href="GstRegistry.html#gst-default-registry-add-path" title="gst_default_registry_add_path()">gst_default_registry_add_path</a>       (path)
96 #define             <a class="link" href="GstRegistry.html#gst-default-registry-find-plugin" title="gst_default_registry_find_plugin()">gst_default_registry_find_plugin</a>    (name)
97 #define             <a class="link" href="GstRegistry.html#gst-default-registry-find-feature" title="gst_default_registry_find_feature()">gst_default_registry_find_feature</a>   (name,
98                                                          type)
99 #define             <a class="link" href="GstRegistry.html#gst-default-registry-get-plugin-list" title="gst_default_registry_get_plugin_list">gst_default_registry_get_plugin_list</a>
100 #define             <a class="link" href="GstRegistry.html#gst-default-registry-get-feature-list-cookie" title="gst_default_registry_get_feature_list_cookie">gst_default_registry_get_feature_list_cookie</a>
101 #define             <a class="link" href="GstRegistry.html#gst-default-registry-feature-filter" title="gst_default_registry_feature_filter()">gst_default_registry_feature_filter</a> (filter,
102                                                          first,
103                                                          user_data)
104 </pre>
105 </div>
106 <div class="refsect1">
107 <a name="GstRegistry.object-hierarchy"></a><h2>Object Hierarchy</h2>
108 <pre class="synopsis">
109   <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
110    +----<a class="link" href="GstObject.html" title="GstObject">GstObject</a>
111          +----GstRegistry
112 </pre>
113 </div>
114 <div class="refsect1">
115 <a name="GstRegistry.signals"></a><h2>Signals</h2>
116 <pre class="synopsis">
117   "<a class="link" href="GstRegistry.html#GstRegistry-feature-added" title='The "feature-added" signal'>feature-added</a>"                                  : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
118   "<a class="link" href="GstRegistry.html#GstRegistry-plugin-added" title='The "plugin-added" signal'>plugin-added</a>"                                   : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
119 </pre>
120 </div>
121 <div class="refsect1">
122 <a name="GstRegistry.description"></a><h2>Description</h2>
123 <p>
124 One registry holds the metadata of a set of plugins.
125 </p>
126 <p>
127 <span class="bold"><strong>Design:</strong></span>
128 </p>
129 <p>
130 The <a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> object is a list of plugins and some functions for dealing
131 with them. Each <a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a> is matched 1-1 with a file on disk, and may or may
132 not be loaded at a given time. There may be multiple <a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> objects,
133 but the "default registry" is the only object that has any meaning to the
134 core.
135 </p>
136 <p>
137 The registry file is actually a cache of plugin information. This is
138 unlike versions prior to 0.10, where the registry file was the primary source
139 of plugin information, and was created by the gst-register command.
140 </p>
141 <p>
142 The primary source, at all times, of plugin information is each plugin file
143 itself. Thus, if an application wants information about a particular plugin,
144 or wants to search for a feature that satisfies given criteria, the primary
145 means of doing so is to load every plugin and look at the resulting
146 information that is gathered in the default registry. Clearly, this is a time
147 consuming process, so we cache information in the registry file. The format
148 and location of the cache file is internal to gstreamer.
149 </p>
150 <p>
151 On startup, plugins are searched for in the plugin search path. The following
152 locations are checked in this order:
153 </p>
154 <div class="itemizedlist"><ul class="itemizedlist" type="disc">
155 <li class="listitem"><p>location from --gst-plugin-path commandline option.</p></li>
156 <li class="listitem"><p>the GST_PLUGIN_PATH environment variable.</p></li>
157 <li class="listitem"><p>the GST_PLUGIN_SYSTEM_PATH environment variable.</p></li>
158 <li class="listitem"><p>default locations (if GST_PLUGIN_SYSTEM_PATH is not set). Those
159       default locations are:
160       <code class="filename">~/.gstreamer-$GST_MAJORMINOR/plugins/</code>
161       and <code class="filename">$prefix/libs/gstreamer-$GST_MAJORMINOR/</code>.
162     </p></li>
163 </ul></div>
164 <p>
165 The registry cache file is loaded from
166 <code class="filename">~/.gstreamer-$GST_MAJORMINOR/registry-$ARCH.bin</code> or the
167 file listed in the GST_REGISTRY env var. One reason to change the registry
168 location is for testing.
169 </p>
170 <p>
171 For each plugin that is found in the plugin search path, there could be 3
172 possibilities for cached information:
173 </p>
174 <div class="itemizedlist"><ul class="itemizedlist" type="disc">
175 <li class="listitem"><p>the cache may not contain information about a given file.</p></li>
176 <li class="listitem"><p>the cache may have stale information.</p></li>
177 <li class="listitem"><p>the cache may have current information.</p></li>
178 </ul></div>
179 <p>
180 </p>
181 <p>
182 In the first two cases, the plugin is loaded and the cache updated. In
183 addition to these cases, the cache may have entries for plugins that are not
184 relevant to the current process. These are marked as not available to the
185 current process. If the cache is updated for whatever reason, it is marked
186 dirty.
187 </p>
188 <p>
189 A dirty cache is written out at the end of initialization. Each entry is
190 checked to make sure the information is minimally valid. If not, the entry is
191 simply dropped.
192 </p>
193 <p>
194 <span class="bold"><strong>Implementation notes:</strong></span>
195 </p>
196 <p>
197 The "cache" and "default registry" are different concepts and can represent
198 different sets of plugins. For various reasons, at init time, the cache is
199 stored in the default registry, and plugins not relevant to the current
200 process are marked with the <a class="link" href="GstPlugin.html#GST-PLUGIN-FLAG-CACHED:CAPS"><code class="literal">GST_PLUGIN_FLAG_CACHED</code></a> bit. These plugins are
201 removed at the end of initialization.
202 </p>
203 </div>
204 <div class="refsect1">
205 <a name="GstRegistry.details"></a><h2>Details</h2>
206 <div class="refsect2">
207 <a name="GstRegistry-struct"></a><h3>struct GstRegistry</h3>
208 <pre class="programlisting">struct GstRegistry;</pre>
209 <p>
210 Opaque <a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> structure.
211 </p>
212 </div>
213 <hr>
214 <div class="refsect2">
215 <a name="gst-registry-get-default"></a><h3>gst_registry_get_default ()</h3>
216 <pre class="programlisting"><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="returnvalue">GstRegistry</span></a> *       gst_registry_get_default            (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
217 <p>
218 Retrieves the default registry. The caller does not own a reference on the
219 registry, as it is alive as long as GStreamer is initialized.
220 </p>
221 <div class="variablelist"><table border="0">
222 <col align="left" valign="top">
223 <tbody><tr>
224 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
225 <td>The default <a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
226 </td>
227 </tr></tbody>
228 </table></div>
229 </div>
230 <hr>
231 <div class="refsect2">
232 <a name="gst-registry-get-feature-list"></a><h3>gst_registry_get_feature_list ()</h3>
233 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gst_registry_get_feature_list       (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
234                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> type</code></em>);</pre>
235 <p>
236 Retrieves a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a> of <em class="parameter"><code>type</code></em>.
237 </p>
238 <div class="variablelist"><table border="0">
239 <col align="left" valign="top">
240 <tbody>
241 <tr>
242 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
243 <td>a <a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a>
244 </td>
245 </tr>
246 <tr>
247 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
248 <td>a <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a>.</td>
249 </tr>
250 <tr>
251 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
252 <td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
253 <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a> of <em class="parameter"><code>type</code></em>. Use <a class="link" href="GstPluginFeature.html#gst-plugin-feature-list-free" title="gst_plugin_feature_list_free ()"><code class="function">gst_plugin_feature_list_free()</code></a> after use
254 MT safe. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gst.PluginFeature]</span>
255 </td>
256 </tr>
257 </tbody>
258 </table></div>
259 </div>
260 <hr>
261 <div class="refsect2">
262 <a name="gst-registry-get-feature-list-cookie"></a><h3>gst_registry_get_feature_list_cookie ()</h3>
263 <pre class="programlisting"><span class="returnvalue">guint32</span>             gst_registry_get_feature_list_cookie
264                                                         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>);</pre>
265 <p>
266 Returns the registrys feature list cookie. This changes
267 every time a feature is added or removed from the registry.
268 </p>
269 <div class="variablelist"><table border="0">
270 <col align="left" valign="top">
271 <tbody>
272 <tr>
273 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
274 <td>the registry</td>
275 </tr>
276 <tr>
277 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
278 <td>the feature list cookie.</td>
279 </tr>
280 </tbody>
281 </table></div>
282 <p class="since">Since 0.10.26</p>
283 </div>
284 <hr>
285 <div class="refsect2">
286 <a name="gst-registry-get-feature-list-by-plugin"></a><h3>gst_registry_get_feature_list_by_plugin ()</h3>
287 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gst_registry_get_feature_list_by_plugin
288                                                         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
289                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
290 <p>
291 Retrieves a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of features of the plugin with name <em class="parameter"><code>name</code></em>.
292 </p>
293 <div class="variablelist"><table border="0">
294 <col align="left" valign="top">
295 <tbody>
296 <tr>
297 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
298 <td>a <a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a>.</td>
299 </tr>
300 <tr>
301 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
302 <td>a plugin name.</td>
303 </tr>
304 <tr>
305 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
306 <td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
307 <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a>. Use <a class="link" href="GstPluginFeature.html#gst-plugin-feature-list-free" title="gst_plugin_feature_list_free ()"><code class="function">gst_plugin_feature_list_free()</code></a> after usage. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gst.PluginFeature]</span>
308 </td>
309 </tr>
310 </tbody>
311 </table></div>
312 </div>
313 <hr>
314 <div class="refsect2">
315 <a name="gst-registry-get-path-list"></a><h3>gst_registry_get_path_list ()</h3>
316 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gst_registry_get_path_list          (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>);</pre>
317 <p>
318 Get the list of paths for the given registry.
319 </p>
320 <div class="variablelist"><table border="0">
321 <col align="left" valign="top">
322 <tbody>
323 <tr>
324 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
325 <td>the registry to get the pathlist of</td>
326 </tr>
327 <tr>
328 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
329 <td>A <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of paths as
330 strings. g_list_free after use.
331 MT safe. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> char*]</span>
332 </td>
333 </tr>
334 </tbody>
335 </table></div>
336 </div>
337 <hr>
338 <div class="refsect2">
339 <a name="gst-registry-get-plugin-list"></a><h3>gst_registry_get_plugin_list ()</h3>
340 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gst_registry_get_plugin_list        (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>);</pre>
341 <p>
342 Get a copy of all plugins registered in the given registry. The refcount
343 of each element in the list in incremented.
344 </p>
345 <div class="variablelist"><table border="0">
346 <col align="left" valign="top">
347 <tbody>
348 <tr>
349 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
350 <td>the registry to search</td>
351 </tr>
352 <tr>
353 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
354 <td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a>.
355 Use <a class="link" href="GstPlugin.html#gst-plugin-list-free" title="gst_plugin_list_free ()"><code class="function">gst_plugin_list_free()</code></a> after usage.
356 MT safe. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gst.Plugin]</span>
357 </td>
358 </tr>
359 </tbody>
360 </table></div>
361 </div>
362 <hr>
363 <div class="refsect2">
364 <a name="gst-registry-add-plugin"></a><h3>gst_registry_add_plugin ()</h3>
365 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gst_registry_add_plugin             (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
366                                                          <em class="parameter"><code><a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a> *plugin</code></em>);</pre>
367 <p>
368 Add the plugin to the registry. The plugin-added signal will be emitted.
369 This function will sink <em class="parameter"><code>plugin</code></em>.
370 </p>
371 <div class="variablelist"><table border="0">
372 <col align="left" valign="top">
373 <tbody>
374 <tr>
375 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
376 <td>the registry to add the plugin to</td>
377 </tr>
378 <tr>
379 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
380 <td>the plugin to add. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
381 </td>
382 </tr>
383 <tr>
384 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
385 <td>TRUE on success.
386 MT safe.</td>
387 </tr>
388 </tbody>
389 </table></div>
390 </div>
391 <hr>
392 <div class="refsect2">
393 <a name="gst-registry-remove-plugin"></a><h3>gst_registry_remove_plugin ()</h3>
394 <pre class="programlisting"><span class="returnvalue">void</span>                gst_registry_remove_plugin          (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
395                                                          <em class="parameter"><code><a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a> *plugin</code></em>);</pre>
396 <p>
397 Remove the plugin from the registry.
398 </p>
399 <p>
400 MT safe.
401 </p>
402 <div class="variablelist"><table border="0">
403 <col align="left" valign="top">
404 <tbody>
405 <tr>
406 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
407 <td>the registry to remove the plugin from</td>
408 </tr>
409 <tr>
410 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
411 <td>the plugin to remove. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
412 </td>
413 </tr>
414 </tbody>
415 </table></div>
416 </div>
417 <hr>
418 <div class="refsect2">
419 <a name="gst-registry-plugin-filter"></a><h3>gst_registry_plugin_filter ()</h3>
420 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gst_registry_plugin_filter          (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
421                                                          <em class="parameter"><code><a class="link" href="GstPlugin.html#GstPluginFilter" title="GstPluginFilter ()"><span class="type">GstPluginFilter</span></a> filter</code></em>,
422                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> first</code></em>,
423                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
424 <p>
425 Runs a filter against all plugins in the registry and returns a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> with
426 the results. If the first flag is set, only the first match is
427 returned (as a list with a single object).
428 Every plugin is reffed; use <a class="link" href="GstPlugin.html#gst-plugin-list-free" title="gst_plugin_list_free ()"><code class="function">gst_plugin_list_free()</code></a> after use, which
429 will unref again.
430 </p>
431 <div class="variablelist"><table border="0">
432 <col align="left" valign="top">
433 <tbody>
434 <tr>
435 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
436 <td>registry to query</td>
437 </tr>
438 <tr>
439 <td><p><span class="term"><em class="parameter"><code>filter</code></em> :</span></p></td>
440 <td>the filter to use. <span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span>
441 </td>
442 </tr>
443 <tr>
444 <td><p><span class="term"><em class="parameter"><code>first</code></em> :</span></p></td>
445 <td>only return first match</td>
446 </tr>
447 <tr>
448 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
449 <td>user data passed to the filter function. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
450 </td>
451 </tr>
452 <tr>
453 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
454 <td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of <a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a>.
455 Use <a class="link" href="GstPlugin.html#gst-plugin-list-free" title="gst_plugin_list_free ()"><code class="function">gst_plugin_list_free()</code></a> after usage.
456 MT safe. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gst.Plugin]</span>
457 </td>
458 </tr>
459 </tbody>
460 </table></div>
461 </div>
462 <hr>
463 <div class="refsect2">
464 <a name="gst-registry-feature-filter"></a><h3>gst_registry_feature_filter ()</h3>
465 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gst_registry_feature_filter         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
466                                                          <em class="parameter"><code><a class="link" href="GstPluginFeature.html#GstPluginFeatureFilter" title="GstPluginFeatureFilter ()"><span class="type">GstPluginFeatureFilter</span></a> filter</code></em>,
467                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> first</code></em>,
468                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
469 <p>
470 Runs a filter against all features of the plugins in the registry
471 and returns a GList with the results.
472 If the first flag is set, only the first match is
473 returned (as a list with a single object).
474 </p>
475 <div class="variablelist"><table border="0">
476 <col align="left" valign="top">
477 <tbody>
478 <tr>
479 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
480 <td>registry to query</td>
481 </tr>
482 <tr>
483 <td><p><span class="term"><em class="parameter"><code>filter</code></em> :</span></p></td>
484 <td>the filter to use. <span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span>
485 </td>
486 </tr>
487 <tr>
488 <td><p><span class="term"><em class="parameter"><code>first</code></em> :</span></p></td>
489 <td>only return first match</td>
490 </tr>
491 <tr>
492 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
493 <td>user data passed to the filter function. <span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym>]</span>
494 </td>
495 </tr>
496 <tr>
497 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
498 <td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
499 <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a>. Use <a class="link" href="GstPluginFeature.html#gst-plugin-feature-list-free" title="gst_plugin_feature_list_free ()"><code class="function">gst_plugin_feature_list_free()</code></a> after usage.
500 MT safe. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gst.PluginFeature]</span>
501 </td>
502 </tr>
503 </tbody>
504 </table></div>
505 </div>
506 <hr>
507 <div class="refsect2">
508 <a name="gst-registry-find-plugin"></a><h3>gst_registry_find_plugin ()</h3>
509 <pre class="programlisting"><a class="link" href="GstPlugin.html" title="GstPlugin"><span class="returnvalue">GstPlugin</span></a> *         gst_registry_find_plugin            (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
510                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
511 <p>
512 Find the plugin with the given name in the registry.
513 The plugin will be reffed; caller is responsible for unreffing.
514 </p>
515 <div class="variablelist"><table border="0">
516 <col align="left" valign="top">
517 <tbody>
518 <tr>
519 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
520 <td>the registry to search</td>
521 </tr>
522 <tr>
523 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
524 <td>the plugin name to find</td>
525 </tr>
526 <tr>
527 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
528 <td>the plugin with the given name or NULL if the
529 plugin was not found. <a class="link" href="GstObject.html#gst-object-unref" title="gst_object_unref ()"><code class="function">gst_object_unref()</code></a> after usage.
530 MT safe. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
531 </td>
532 </tr>
533 </tbody>
534 </table></div>
535 </div>
536 <hr>
537 <div class="refsect2">
538 <a name="gst-registry-find-feature"></a><h3>gst_registry_find_feature ()</h3>
539 <pre class="programlisting"><a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="returnvalue">GstPluginFeature</span></a> *  gst_registry_find_feature           (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
540                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
541                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/gobject/unstable/gobject-Type-Information.html#GType"><span class="type">GType</span></a> type</code></em>);</pre>
542 <p>
543 Find the pluginfeature with the given name and type in the registry.
544 </p>
545 <div class="variablelist"><table border="0">
546 <col align="left" valign="top">
547 <tbody>
548 <tr>
549 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
550 <td>the registry to search</td>
551 </tr>
552 <tr>
553 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
554 <td>the pluginfeature name to find</td>
555 </tr>
556 <tr>
557 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
558 <td>the pluginfeature type to find</td>
559 </tr>
560 <tr>
561 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
562 <td>the pluginfeature with the given name and type
563 or NULL if the plugin was not found. <a class="link" href="GstObject.html#gst-object-unref" title="gst_object_unref ()"><code class="function">gst_object_unref()</code></a> after usage.
564 MT safe. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
565 </td>
566 </tr>
567 </tbody>
568 </table></div>
569 </div>
570 <hr>
571 <div class="refsect2">
572 <a name="gst-registry-lookup-feature"></a><h3>gst_registry_lookup_feature ()</h3>
573 <pre class="programlisting"><a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="returnvalue">GstPluginFeature</span></a> *  gst_registry_lookup_feature         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
574                                                          <em class="parameter"><code>const <span class="type">char</span> *name</code></em>);</pre>
575 <p>
576 Find a <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a> with <em class="parameter"><code>name</code></em> in <em class="parameter"><code>registry</code></em>.
577 </p>
578 <div class="variablelist"><table border="0">
579 <col align="left" valign="top">
580 <tbody>
581 <tr>
582 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
583 <td>a <a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a>
584 </td>
585 </tr>
586 <tr>
587 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
588 <td>a <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a> name</td>
589 </tr>
590 <tr>
591 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
592 <td>a <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a> with its refcount incremented,
593 use <a class="link" href="GstObject.html#gst-object-unref" title="gst_object_unref ()"><code class="function">gst_object_unref()</code></a> after usage.
594 MT safe. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
595 </td>
596 </tr>
597 </tbody>
598 </table></div>
599 </div>
600 <hr>
601 <div class="refsect2">
602 <a name="gst-registry-add-path"></a><h3>gst_registry_add_path ()</h3>
603 <pre class="programlisting"><span class="returnvalue">void</span>                gst_registry_add_path               (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
604                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>);</pre>
605 <p>
606 Add the given path to the registry. The syntax of the
607 path is specific to the registry. If the path has already been
608 added, do nothing.
609 </p>
610 <div class="variablelist"><table border="0">
611 <col align="left" valign="top">
612 <tbody>
613 <tr>
614 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
615 <td>the registry to add the path to</td>
616 </tr>
617 <tr>
618 <td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
619 <td>the path to add to the registry</td>
620 </tr>
621 </tbody>
622 </table></div>
623 </div>
624 <hr>
625 <div class="refsect2">
626 <a name="gst-registry-scan-path"></a><h3>gst_registry_scan_path ()</h3>
627 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gst_registry_scan_path              (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
628                                                          <em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *path</code></em>);</pre>
629 <p>
630 Scan the given path for plugins to add to the registry. The syntax of the
631 path is specific to the registry.
632 </p>
633 <div class="variablelist"><table border="0">
634 <col align="left" valign="top">
635 <tbody>
636 <tr>
637 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
638 <td>the registry to add found plugins to</td>
639 </tr>
640 <tr>
641 <td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
642 <td>the path to scan</td>
643 </tr>
644 <tr>
645 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
646 <td>
647 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if registry changed</td>
648 </tr>
649 </tbody>
650 </table></div>
651 </div>
652 <hr>
653 <div class="refsect2">
654 <a name="gst-registry-lookup"></a><h3>gst_registry_lookup ()</h3>
655 <pre class="programlisting"><a class="link" href="GstPlugin.html" title="GstPlugin"><span class="returnvalue">GstPlugin</span></a> *         gst_registry_lookup                 (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
656                                                          <em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
657 <p>
658 Look up a plugin in the given registry with the given filename.
659 If found, plugin is reffed.
660 </p>
661 <div class="variablelist"><table border="0">
662 <col align="left" valign="top">
663 <tbody>
664 <tr>
665 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
666 <td>the registry to look up in</td>
667 </tr>
668 <tr>
669 <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
670 <td>the name of the file to look up</td>
671 </tr>
672 <tr>
673 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
674 <td>the <a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a> if found, or NULL if not.
675 <a class="link" href="GstObject.html#gst-object-unref" title="gst_object_unref ()"><code class="function">gst_object_unref()</code></a> after usage. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
676 </td>
677 </tr>
678 </tbody>
679 </table></div>
680 </div>
681 <hr>
682 <div class="refsect2">
683 <a name="gst-registry-remove-feature"></a><h3>gst_registry_remove_feature ()</h3>
684 <pre class="programlisting"><span class="returnvalue">void</span>                gst_registry_remove_feature         (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
685                                                          <em class="parameter"><code><a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a> *feature</code></em>);</pre>
686 <p>
687 Remove the feature from the registry.
688 </p>
689 <p>
690 MT safe.
691 </p>
692 <div class="variablelist"><table border="0">
693 <col align="left" valign="top">
694 <tbody>
695 <tr>
696 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
697 <td>the registry to remove the feature from</td>
698 </tr>
699 <tr>
700 <td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
701 <td>the feature to remove. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
702 </td>
703 </tr>
704 </tbody>
705 </table></div>
706 </div>
707 <hr>
708 <div class="refsect2">
709 <a name="gst-registry-add-feature"></a><h3>gst_registry_add_feature ()</h3>
710 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gst_registry_add_feature            (<em class="parameter"><code><a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry</code></em>,
711                                                          <em class="parameter"><code><a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a> *feature</code></em>);</pre>
712 <p>
713 Add the feature to the registry. The feature-added signal will be emitted.
714 This function sinks <em class="parameter"><code>feature</code></em>.
715 </p>
716 <div class="variablelist"><table border="0">
717 <col align="left" valign="top">
718 <tbody>
719 <tr>
720 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
721 <td>the registry to add the plugin to</td>
722 </tr>
723 <tr>
724 <td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
725 <td>the feature to add. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
726 </td>
727 </tr>
728 <tr>
729 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
730 <td>TRUE on success.
731 MT safe.</td>
732 </tr>
733 </tbody>
734 </table></div>
735 </div>
736 <hr>
737 <div class="refsect2">
738 <a name="gst-default-registry-check-feature-version"></a><h3>gst_default_registry_check_feature_version ()</h3>
739 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gst_default_registry_check_feature_version
740                                                         (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *feature_name</code></em>,
741                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> min_major</code></em>,
742                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> min_minor</code></em>,
743                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> min_micro</code></em>);</pre>
744 <p>
745 Checks whether a plugin feature by the given name exists in the
746 default registry and whether its version is at least the
747 version required.
748 </p>
749 <div class="variablelist"><table border="0">
750 <col align="left" valign="top">
751 <tbody>
752 <tr>
753 <td><p><span class="term"><em class="parameter"><code>feature_name</code></em> :</span></p></td>
754 <td>the name of the feature (e.g. "oggdemux")</td>
755 </tr>
756 <tr>
757 <td><p><span class="term"><em class="parameter"><code>min_major</code></em> :</span></p></td>
758 <td>the minimum major version number</td>
759 </tr>
760 <tr>
761 <td><p><span class="term"><em class="parameter"><code>min_minor</code></em> :</span></p></td>
762 <td>the minimum minor version number</td>
763 </tr>
764 <tr>
765 <td><p><span class="term"><em class="parameter"><code>min_micro</code></em> :</span></p></td>
766 <td>the minimum micro version number</td>
767 </tr>
768 <tr>
769 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
770 <td>
771 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a> if the feature could be found and the version is
772 the same as the required version or newer, and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><span class="type">FALSE</span></a> otherwise.</td>
773 </tr>
774 </tbody>
775 </table></div>
776 </div>
777 <hr>
778 <div class="refsect2">
779 <a name="gst-default-registry-get-path-list"></a><h3>gst_default_registry_get_path_list</h3>
780 <pre class="programlisting">#define             gst_default_registry_get_path_list()</pre>
781 <p>
782 Get the list of paths for the default registry.
783 </p>
784 <div class="variablelist"><table border="0">
785 <col align="left" valign="top">
786 <tbody><tr>
787 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
788 <td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of paths as
789 strings. <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a> after use. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> char*]</span>
790 </td>
791 </tr></tbody>
792 </table></div>
793 </div>
794 <hr>
795 <div class="refsect2">
796 <a name="gst-default-registry-add-plugin"></a><h3>gst_default_registry_add_plugin()</h3>
797 <pre class="programlisting">#define             gst_default_registry_add_plugin(plugin)</pre>
798 <p>
799 Add the plugin to the default registry.
800 The plugin-added signal will be emitted.
801 </p>
802 <div class="variablelist"><table border="0">
803 <col align="left" valign="top">
804 <tbody>
805 <tr>
806 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
807 <td>the plugin to add. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
808 </td>
809 </tr>
810 <tr>
811 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
812 <td>TRUE on success.</td>
813 </tr>
814 </tbody>
815 </table></div>
816 </div>
817 <hr>
818 <div class="refsect2">
819 <a name="gst-default-registry-add-path"></a><h3>gst_default_registry_add_path()</h3>
820 <pre class="programlisting">#define             gst_default_registry_add_path(path)</pre>
821 <p>
822 Add the given path to the default registry. The syntax of the
823 path is specific to the registry. If the path has already been
824 added, do nothing.
825 </p>
826 <div class="variablelist"><table border="0">
827 <col align="left" valign="top">
828 <tbody><tr>
829 <td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
830 <td>the path to add to the registry</td>
831 </tr></tbody>
832 </table></div>
833 </div>
834 <hr>
835 <div class="refsect2">
836 <a name="gst-default-registry-find-plugin"></a><h3>gst_default_registry_find_plugin()</h3>
837 <pre class="programlisting">#define             gst_default_registry_find_plugin(name)</pre>
838 <p>
839 Find the plugin with the given name in the default registry.
840 The plugin will be reffed; caller is responsible for unreffing.
841 </p>
842 <div class="variablelist"><table border="0">
843 <col align="left" valign="top">
844 <tbody>
845 <tr>
846 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
847 <td>the plugin name to find</td>
848 </tr>
849 <tr>
850 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
851 <td>The plugin with the given name or NULL if the
852 plugin was not found. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
853 </td>
854 </tr>
855 </tbody>
856 </table></div>
857 </div>
858 <hr>
859 <div class="refsect2">
860 <a name="gst-default-registry-find-feature"></a><h3>gst_default_registry_find_feature()</h3>
861 <pre class="programlisting">#define             gst_default_registry_find_feature(name,type)</pre>
862 <p>
863 Find the pluginfeature with the given name and type in the default registry.
864 </p>
865 <div class="variablelist"><table border="0">
866 <col align="left" valign="top">
867 <tbody>
868 <tr>
869 <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
870 <td>the pluginfeature name to find</td>
871 </tr>
872 <tr>
873 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
874 <td>the pluginfeature type to find</td>
875 </tr>
876 <tr>
877 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
878 <td>the pluginfeature with the given name and type or
879 NULL if the plugin was not found. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
880 </td>
881 </tr>
882 </tbody>
883 </table></div>
884 </div>
885 <hr>
886 <div class="refsect2">
887 <a name="gst-default-registry-get-plugin-list"></a><h3>gst_default_registry_get_plugin_list</h3>
888 <pre class="programlisting">#define             gst_default_registry_get_plugin_list()</pre>
889 <p>
890 Get a copy of all plugins registered in the default registry.
891 </p>
892 <div class="variablelist"><table border="0">
893 <col align="left" valign="top">
894 <tbody><tr>
895 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
896 <td>a copy of the list.
897 Free after use. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gst.Plugin]</span>
898 </td>
899 </tr></tbody>
900 </table></div>
901 </div>
902 <hr>
903 <div class="refsect2">
904 <a name="gst-default-registry-get-feature-list-cookie"></a><h3>gst_default_registry_get_feature_list_cookie</h3>
905 <pre class="programlisting">#define             gst_default_registry_get_feature_list_cookie()</pre>
906 <p>
907 Returns the default registrys feature list cookie. This changes
908 every time a feature is added or removed from the registry.
909 </p>
910 <div class="variablelist"><table border="0">
911 <col align="left" valign="top">
912 <tbody><tr>
913 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
914 <td>the feature list cookie.</td>
915 </tr></tbody>
916 </table></div>
917 <p class="since">Since 0.10.26</p>
918 </div>
919 <hr>
920 <div class="refsect2">
921 <a name="gst-default-registry-feature-filter"></a><h3>gst_default_registry_feature_filter()</h3>
922 <pre class="programlisting">#define             gst_default_registry_feature_filter(filter,first,user_data)</pre>
923 <p>
924 Runs a filter against all features of the plugins in the default registry
925 and returns a GList with the results.
926 If the first flag is set, only the first match is
927 returned (as a list with a single object).
928 </p>
929 <div class="variablelist"><table border="0">
930 <col align="left" valign="top">
931 <tbody>
932 <tr>
933 <td><p><span class="term"><em class="parameter"><code>filter</code></em> :</span></p></td>
934 <td>the filter to use</td>
935 </tr>
936 <tr>
937 <td><p><span class="term"><em class="parameter"><code>first</code></em> :</span></p></td>
938 <td>only return first match</td>
939 </tr>
940 <tr>
941 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
942 <td>user data passed to the filter function</td>
943 </tr>
944 <tr>
945 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
946 <td>a <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
947 plugin features, gst_plugin_feature_list_free after use. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> Gst.PluginFeature]</span>
948 </td>
949 </tr>
950 </tbody>
951 </table></div>
952 </div>
953 </div>
954 <div class="refsect1">
955 <a name="GstRegistry.signal-details"></a><h2>Signal Details</h2>
956 <div class="refsect2">
957 <a name="GstRegistry-feature-added"></a><h3>The <code class="literal">"feature-added"</code> signal</h3>
958 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry,
959                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     feature,
960                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
961 <p>
962 Signals that a feature has been added to the registry (possibly
963 replacing a previously-added one by the same name)
964 </p>
965 <div class="variablelist"><table border="0">
966 <col align="left" valign="top">
967 <tbody>
968 <tr>
969 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
970 <td>the registry that emitted the signal</td>
971 </tr>
972 <tr>
973 <td><p><span class="term"><em class="parameter"><code>feature</code></em> :</span></p></td>
974 <td>the feature that has been added</td>
975 </tr>
976 <tr>
977 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
978 <td>user data set when the signal handler was connected.</td>
979 </tr>
980 </tbody>
981 </table></div>
982 </div>
983 <hr>
984 <div class="refsect2">
985 <a name="GstRegistry-plugin-added"></a><h3>The <code class="literal">"plugin-added"</code> signal</h3>
986 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GstRegistry.html" title="GstRegistry"><span class="type">GstRegistry</span></a> *registry,
987                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     plugin,
988                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
989 <p>
990 Signals that a plugin has been added to the registry (possibly
991 replacing a previously-added one by the same name)
992 </p>
993 <div class="variablelist"><table border="0">
994 <col align="left" valign="top">
995 <tbody>
996 <tr>
997 <td><p><span class="term"><em class="parameter"><code>registry</code></em> :</span></p></td>
998 <td>the registry that emitted the signal</td>
999 </tr>
1000 <tr>
1001 <td><p><span class="term"><em class="parameter"><code>plugin</code></em> :</span></p></td>
1002 <td>the plugin that has been added</td>
1003 </tr>
1004 <tr>
1005 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1006 <td>user data set when the signal handler was connected.</td>
1007 </tr>
1008 </tbody>
1009 </table></div>
1010 </div>
1011 </div>
1012 <div class="refsect1">
1013 <a name="GstRegistry.see-also"></a><h2>See Also</h2>
1014 <a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a>, <a class="link" href="GstPluginFeature.html" title="GstPluginFeature"><span class="type">GstPluginFeature</span></a>
1015 </div>
1016 </div>
1017 <div class="footer">
1018 <hr>
1019           Generated by GTK-Doc V1.18</div>
1020 </body>
1021 </html>