• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>GstDynamicTypeFactory: GStreamer 1.0 Core Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="index.html" title="GStreamer 1.0 Core Reference Manual">
8<link rel="up" href="libgstreamer.html" title="GStreamer Core Library">
9<link rel="prev" href="GstDateTime.html" title="GstDateTime">
10<link rel="next" href="GstElement.html" title="GstElement">
11<meta name="generator" content="GTK-Doc V1.28 (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="5"><tr valign="middle">
16<td width="100%" align="left" class="shortcuts">
17<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span18                  <a href="#GstDynamicTypeFactory.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span19                  <a href="#GstDynamicTypeFactory.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
20</td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22<td><a accesskey="u" href="libgstreamer.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23<td><a accesskey="p" href="GstDateTime.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24<td><a accesskey="n" href="GstElement.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25</tr></table>
26<div class="refentry">
27<a name="GstDynamicTypeFactory"></a><div class="titlepage"></div>
28<div class="refnamediv"><table width="100%"><tr>
29<td valign="top">
30<h2><span class="refentrytitle"><a name="GstDynamicTypeFactory.top_of_page"></a>GstDynamicTypeFactory</span></h2>
31<p>GstDynamicTypeFactory — Represents a registered dynamically loadable GType</p>
32</td>
33<td class="gallery_image" valign="top" align="right"></td>
34</tr></table></div>
35<div class="refsect1">
36<a name="GstDynamicTypeFactory.functions"></a><h2>Functions</h2>
37<div class="informaltable"><table class="informaltable" width="100%" border="0">
38<colgroup>
39<col width="150px" class="functions_return">
40<col class="functions_name">
41</colgroup>
42<tbody>
43<tr>
44<td class="function_type">
45<a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
46</td>
47<td class="function_name">
48<a class="link" href="GstDynamicTypeFactory.html#gst-dynamic-type-factory-load" title="gst_dynamic_type_factory_load ()">gst_dynamic_type_factory_load</a> <span class="c_punctuation">()</span>
49</td>
50</tr>
51<tr>
52<td class="function_type">
53<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
54</td>
55<td class="function_name">
56<a class="link" href="GstDynamicTypeFactory.html#gst-dynamic-type-register" title="gst_dynamic_type_register ()">gst_dynamic_type_register</a> <span class="c_punctuation">()</span>
57</td>
58</tr>
59</tbody>
60</table></div>
61</div>
62<div class="refsect1">
63<a name="GstDynamicTypeFactory.other"></a><h2>Types and Values</h2>
64<div class="informaltable"><table class="informaltable" width="100%" border="0">
65<colgroup>
66<col width="150px" class="name">
67<col class="description">
68</colgroup>
69<tbody><tr>
70<td class="datatype_keyword"> </td>
71<td class="function_name"><a class="link" href="GstDynamicTypeFactory.html#GstDynamicTypeFactory-struct" title="GstDynamicTypeFactory">GstDynamicTypeFactory</a></td>
72</tr></tbody>
73</table></div>
74</div>
75<div class="refsect1">
76<a name="GstDynamicTypeFactory.object-hierarchy"></a><h2>Object Hierarchy</h2>
77<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
78    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
79        <span class="lineart">╰──</span> <a class="link" href="GstObject.html" title="GstObject">GstObject</a>
80            <span class="lineart">╰──</span> <a class="link" href="GstPluginFeature.html" title="GstPluginfeature">GstPluginFeature</a>
81                <span class="lineart">╰──</span> GstDynamicTypeFactory
82</pre>
83</div>
84<div class="refsect1">
85<a name="GstDynamicTypeFactory.includes"></a><h2>Includes</h2>
86<pre class="synopsis">#include &lt;gst/gst.h&gt;
87</pre>
88</div>
89<div class="refsect1">
90<a name="GstDynamicTypeFactory.description"></a><h2>Description</h2>
91<p><a class="link" href="GstDynamicTypeFactory.html" title="GstDynamicTypeFactory"><span class="type">GstDynamicTypeFactory</span></a> is used to represent a type that can be
92automatically loaded the first time it is used. For example,
93a non-standard type for use in caps fields.</p>
94<p>In general, applications and plugins don't need to use the factory
95beyond registering the type in a plugin init function. Once that is
96done, the type is stored in the registry, and ready as soon as the
97registry is loaded.</p>
98<div class="refsect3">
99<a name="id-1.3.21.7.4"></a><h4>Registering a type for dynamic loading</h4>
100<div class="informalexample">
101  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
102    <tbody>
103      <tr>
104        <td class="listing_lines" align="right"><pre>1
1052
1063
1074
1085</pre></td>
109        <td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">static</span> gboolean
110<span class="function">plugin_init</span> <span class="gtkdoc opt">(</span>GstPlugin <span class="gtkdoc opt">*</span> plugin<span class="gtkdoc opt">)</span>
111<span class="gtkdoc opt">{</span>
112  <span class="keyword">return</span> <span class="function"><a href="GstDynamicTypeFactory.html#gst-dynamic-type-register">gst_dynamic_type_register</a></span> <span class="gtkdoc opt">(</span>plugin<span class="gtkdoc opt">,</span> GST_TYPE_CUSTOM_CAPS_FIELD<span class="gtkdoc opt">);</span>
113<span class="gtkdoc opt">}</span></pre></td>
114      </tr>
115    </tbody>
116  </table>
117</div>
118
119<p></p>
120</div>
121</div>
122<div class="refsect1">
123<a name="GstDynamicTypeFactory.functions_details"></a><h2>Functions</h2>
124<div class="refsect2">
125<a name="gst-dynamic-type-factory-load"></a><h3>gst_dynamic_type_factory_load ()</h3>
126<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="returnvalue">GType</span></a>
127gst_dynamic_type_factory_load (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *factoryname</code></em>);</pre>
128</div>
129<hr>
130<div class="refsect2">
131<a name="gst-dynamic-type-register"></a><h3>gst_dynamic_type_register ()</h3>
132<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
133gst_dynamic_type_register (<em class="parameter"><code><a class="link" href="GstPlugin.html" title="GstPlugin"><span class="type">GstPlugin</span></a> *plugin</code></em>,
134                           <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> type</code></em>);</pre>
135</div>
136</div>
137<div class="refsect1">
138<a name="GstDynamicTypeFactory.other_details"></a><h2>Types and Values</h2>
139<div class="refsect2">
140<a name="GstDynamicTypeFactory-struct"></a><h3>GstDynamicTypeFactory</h3>
141<pre class="programlisting">typedef struct _GstDynamicTypeFactory GstDynamicTypeFactory;</pre>
142<p>The opaque <a class="link" href="GstDynamicTypeFactory.html" title="GstDynamicTypeFactory"><span class="type">GstDynamicTypeFactory</span></a> data structure.</p>
143</div>
144</div>
145<div class="refsect1">
146<a name="GstDynamicTypeFactory.see-also"></a><h2>See Also</h2>
147<p><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>.</p>
148</div>
149</div>
150<div class="footer">
151<hr>Generated by GTK-Doc V1.28</div>
152</body>
153</html>