1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GStreamer RTSP Server Reference Manual: GstRTSPMountPoints</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="index.html" title="GStreamer RTSP Server Reference Manual">
8 <link rel="up" href="ch01.html" title="">
9 <link rel="prev" href="gst-rtsp-server-GstRTSPContext.html" title="GstRTSPContext">
10 <link rel="next" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory">
11 <meta name="generator" content="GTK-Doc V1.21 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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">|</span>
18 <a href="#GstRTSPMountPoints.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
19 <a href="#GstRTSPMountPoints.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
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="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23 <td><a accesskey="p" href="gst-rtsp-server-GstRTSPContext.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24 <td><a accesskey="n" href="GstRTSPMediaFactory.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26 <div class="refentry">
27 <a name="GstRTSPMountPoints"></a><div class="titlepage"></div>
28 <div class="refnamediv"><table width="100%"><tr>
30 <h2><span class="refentrytitle"><a name="GstRTSPMountPoints.top_of_page"></a>GstRTSPMountPoints</span></h2>
31 <p>GstRTSPMountPoints — Map a path to media</p>
33 <td class="gallery_image" valign="top" align="right"></td>
35 <div class="refsect1">
36 <a name="GstRTSPMountPoints.functions"></a><h2>Functions</h2>
37 <div class="informaltable"><table width="100%" border="0">
39 <col width="150px" class="functions_return">
40 <col class="functions_name">
44 <td class="function_type">
45 <a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="returnvalue">GstRTSPMountPoints</span></a> *
47 <td class="function_name">
48 <a class="link" href="GstRTSPMountPoints.html#gst-rtsp-mount-points-new" title="gst_rtsp_mount_points_new ()">gst_rtsp_mount_points_new</a> <span class="c_punctuation">()</span>
52 <td class="function_type">
53 <span class="returnvalue">void</span>
55 <td class="function_name">
56 <a class="link" href="GstRTSPMountPoints.html#gst-rtsp-mount-points-add-factory" title="gst_rtsp_mount_points_add_factory ()">gst_rtsp_mount_points_add_factory</a> <span class="c_punctuation">()</span>
60 <td class="function_type">
61 <span class="returnvalue">void</span>
63 <td class="function_name">
64 <a class="link" href="GstRTSPMountPoints.html#gst-rtsp-mount-points-remove-factory" title="gst_rtsp_mount_points_remove_factory ()">gst_rtsp_mount_points_remove_factory</a> <span class="c_punctuation">()</span>
68 <td class="function_type">
69 <a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="returnvalue">GstRTSPMediaFactory</span></a> *
71 <td class="function_name">
72 <a class="link" href="GstRTSPMountPoints.html#gst-rtsp-mount-points-match" title="gst_rtsp_mount_points_match ()">gst_rtsp_mount_points_match</a> <span class="c_punctuation">()</span>
76 <td class="function_type">
77 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
79 <td class="function_name">
80 <a class="link" href="GstRTSPMountPoints.html#gst-rtsp-mount-points-make-path" title="gst_rtsp_mount_points_make_path ()">gst_rtsp_mount_points_make_path</a> <span class="c_punctuation">()</span>
86 <div class="refsect1">
87 <a name="GstRTSPMountPoints.other"></a><h2>Types and Values</h2>
88 <div class="informaltable"><table width="100%" border="0">
90 <col width="150px" class="name">
91 <col class="description">
95 <td class="datatype_keyword">struct</td>
96 <td class="function_name"><a class="link" href="GstRTSPMountPoints.html#GstRTSPMountPoints-struct" title="struct GstRTSPMountPoints">GstRTSPMountPoints</a></td>
99 <td class="datatype_keyword">struct</td>
100 <td class="function_name"><a class="link" href="GstRTSPMountPoints.html#GstRTSPMountPointsClass" title="struct GstRTSPMountPointsClass">GstRTSPMountPointsClass</a></td>
105 <div class="refsect1">
106 <a name="GstRTSPMountPoints.object-hierarchy"></a><h2>Object Hierarchy</h2>
107 <pre class="screen"> <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
108 <span class="lineart">╰──</span> GstRTSPMountPoints
111 <div class="refsect1">
112 <a name="GstRTSPMountPoints.description"></a><h2>Description</h2>
113 <p>A <a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a> object maintains a relation between paths
114 and <a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a> objects. This object is usually given to
115 <a class="link" href="GstRTSPClient.html" title="GstRTSPClient"><span class="type">GstRTSPClient</span></a> and used to find the media attached to a path.</p>
116 <p>With <a class="link" href="GstRTSPMountPoints.html#gst-rtsp-mount-points-add-factory" title="gst_rtsp_mount_points_add_factory ()"><code class="function">gst_rtsp_mount_points_add_factory()</code></a> and
117 <a class="link" href="GstRTSPMountPoints.html#gst-rtsp-mount-points-remove-factory" title="gst_rtsp_mount_points_remove_factory ()"><code class="function">gst_rtsp_mount_points_remove_factory()</code></a>, factories can be added and
119 <p>With <a class="link" href="GstRTSPMountPoints.html#gst-rtsp-mount-points-match" title="gst_rtsp_mount_points_match ()"><code class="function">gst_rtsp_mount_points_match()</code></a> you can find the <a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a>
120 object that completely matches the given path.</p>
121 <p>Last reviewed on 2013-07-11 (1.0.0)</p>
123 <div class="refsect1">
124 <a name="GstRTSPMountPoints.functions_details"></a><h2>Functions</h2>
125 <div class="refsect2">
126 <a name="gst-rtsp-mount-points-new"></a><h3>gst_rtsp_mount_points_new ()</h3>
127 <pre class="programlisting"><a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="returnvalue">GstRTSPMountPoints</span></a> *
128 gst_rtsp_mount_points_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
129 <p>Make a new mount points object.</p>
130 <div class="refsect3">
131 <a name="id-1.2.4.7.2.5"></a><h4>Returns</h4>
132 <p> a new <a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a>. </p>
133 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
137 <div class="refsect2">
138 <a name="gst-rtsp-mount-points-add-factory"></a><h3>gst_rtsp_mount_points_add_factory ()</h3>
139 <pre class="programlisting"><span class="returnvalue">void</span>
140 gst_rtsp_mount_points_add_factory (<em class="parameter"><code><a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a> *mounts</code></em>,
141 <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>,
142 <em class="parameter"><code><a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a> *factory</code></em>);</pre>
143 <p>Attach <em class="parameter"><code>factory</code></em>
144 to the mount point <em class="parameter"><code>path</code></em>
145 in <em class="parameter"><code>mounts</code></em>
147 <p><em class="parameter"><code>path</code></em>
148 is of the form (/node)+. Any previous mount point will be freed.</p>
149 <p>Ownership is taken of the reference on <em class="parameter"><code>factory</code></em>
150 so that <em class="parameter"><code>factory</code></em>
152 used after calling this function.</p>
153 <div class="refsect3">
154 <a name="id-1.2.4.7.3.7"></a><h4>Parameters</h4>
155 <div class="informaltable"><table width="100%" border="0">
157 <col width="150px" class="parameters_name">
158 <col class="parameters_description">
159 <col width="200px" class="parameters_annotations">
163 <td class="parameter_name"><p>mounts</p></td>
164 <td class="parameter_description"><p>a <a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a></p></td>
165 <td class="parameter_annotations"> </td>
168 <td class="parameter_name"><p>path</p></td>
169 <td class="parameter_description"><p>a mount point</p></td>
170 <td class="parameter_annotations"> </td>
173 <td class="parameter_name"><p>factory</p></td>
174 <td class="parameter_description"><p> a <a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a>. </p></td>
175 <td class="parameter_annotations"><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td>
182 <div class="refsect2">
183 <a name="gst-rtsp-mount-points-remove-factory"></a><h3>gst_rtsp_mount_points_remove_factory ()</h3>
184 <pre class="programlisting"><span class="returnvalue">void</span>
185 gst_rtsp_mount_points_remove_factory (<em class="parameter"><code><a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a> *mounts</code></em>,
186 <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>
187 <p>Remove the <a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a> associated with <em class="parameter"><code>path</code></em>
188 in <em class="parameter"><code>mounts</code></em>
190 <div class="refsect3">
191 <a name="id-1.2.4.7.4.5"></a><h4>Parameters</h4>
192 <div class="informaltable"><table width="100%" border="0">
194 <col width="150px" class="parameters_name">
195 <col class="parameters_description">
196 <col width="200px" class="parameters_annotations">
200 <td class="parameter_name"><p>mounts</p></td>
201 <td class="parameter_description"><p>a <a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a></p></td>
202 <td class="parameter_annotations"> </td>
205 <td class="parameter_name"><p>path</p></td>
206 <td class="parameter_description"><p>a mount point</p></td>
207 <td class="parameter_annotations"> </td>
214 <div class="refsect2">
215 <a name="gst-rtsp-mount-points-match"></a><h3>gst_rtsp_mount_points_match ()</h3>
216 <pre class="programlisting"><a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="returnvalue">GstRTSPMediaFactory</span></a> *
217 gst_rtsp_mount_points_match (<em class="parameter"><code><a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a> *mounts</code></em>,
218 <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>,
219 <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *matched</code></em>);</pre>
220 <p>Find the factory in <em class="parameter"><code>mounts</code></em>
221 that has the longest match with <em class="parameter"><code>path</code></em>
223 <p>If <em class="parameter"><code>matched</code></em>
224 is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>path</code></em>
225 will match the factory exactly otherwise
226 the amount of characters that matched is returned in <em class="parameter"><code>matched</code></em>
228 <div class="refsect3">
229 <a name="id-1.2.4.7.5.6"></a><h4>Parameters</h4>
230 <div class="informaltable"><table width="100%" border="0">
232 <col width="150px" class="parameters_name">
233 <col class="parameters_description">
234 <col width="200px" class="parameters_annotations">
238 <td class="parameter_name"><p>mounts</p></td>
239 <td class="parameter_description"><p>a <a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a></p></td>
240 <td class="parameter_annotations"> </td>
243 <td class="parameter_name"><p>path</p></td>
244 <td class="parameter_description"><p>a mount point</p></td>
245 <td class="parameter_annotations"> </td>
248 <td class="parameter_name"><p>matched</p></td>
249 <td class="parameter_description"><p> the amount of <em class="parameter"><code>path</code></em>
251 <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
256 <div class="refsect3">
257 <a name="id-1.2.4.7.5.7"></a><h4>Returns</h4>
258 <p> the <a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a> for <em class="parameter"><code>path</code></em>
260 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a> after usage. </p>
261 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
265 <div class="refsect2">
266 <a name="gst-rtsp-mount-points-make-path"></a><h3>gst_rtsp_mount_points_make_path ()</h3>
267 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
268 gst_rtsp_mount_points_make_path (<em class="parameter"><code><a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a> *mounts</code></em>,
269 <em class="parameter"><code>const <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtspurl.html#GstRTSPUrl"><span class="type">GstRTSPUrl</span></a> *url</code></em>);</pre>
270 <p>Make a path string from <em class="parameter"><code>url</code></em>
272 <div class="refsect3">
273 <a name="id-1.2.4.7.6.5"></a><h4>Parameters</h4>
274 <div class="informaltable"><table width="100%" border="0">
276 <col width="150px" class="parameters_name">
277 <col class="parameters_description">
278 <col width="200px" class="parameters_annotations">
282 <td class="parameter_name"><p>mounts</p></td>
283 <td class="parameter_description"><p>a <a class="link" href="GstRTSPMountPoints.html" title="GstRTSPMountPoints"><span class="type">GstRTSPMountPoints</span></a></p></td>
284 <td class="parameter_annotations"> </td>
287 <td class="parameter_name"><p>url</p></td>
288 <td class="parameter_description"><p>a <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstrtspurl.html#GstRTSPUrl"><span class="type">GstRTSPUrl</span></a></p></td>
289 <td class="parameter_annotations"> </td>
294 <div class="refsect3">
295 <a name="id-1.2.4.7.6.6"></a><h4>Returns</h4>
296 <p> a path string for <em class="parameter"><code>url</code></em>
297 , <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a> after usage. </p>
298 <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
302 <div class="refsect1">
303 <a name="GstRTSPMountPoints.other_details"></a><h2>Types and Values</h2>
304 <div class="refsect2">
305 <a name="GstRTSPMountPoints-struct"></a><h3>struct GstRTSPMountPoints</h3>
306 <pre class="programlisting">struct GstRTSPMountPoints;</pre>
307 <p>Creates a <a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a> object for a given url.</p>
310 <div class="refsect2">
311 <a name="GstRTSPMountPointsClass"></a><h3>struct GstRTSPMountPointsClass</h3>
312 <pre class="programlisting">struct GstRTSPMountPointsClass {
313 GObjectClass parent_class;
315 gchar * (*make_path) (GstRTSPMountPoints *mounts,
316 const GstRTSPUrl *url);
319 <p>The class for the media mounts object.</p>
320 <div class="refsect3">
321 <a name="id-1.2.4.8.3.5"></a><h4>Members</h4>
322 <div class="informaltable"><table width="100%" border="0">
324 <col width="300px" class="struct_members_name">
325 <col class="struct_members_description">
326 <col width="200px" class="struct_members_annotations">
330 <td class="struct_member_name"><p><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObjectClass"><span class="type">GObjectClass</span></a> <em class="structfield"><code><a name="GstRTSPMountPointsClass.parent-class"></a>parent_class</code></em>;</p></td>
335 <td class="struct_member_name"><p><em class="structfield"><code><a name="GstRTSPMountPointsClass.make-path"></a>make_path</code></em> ()</p></td>
336 <td class="struct_member_description"><p>make a path from the given url.</p></td>
337 <td class="struct_member_annotations"> </td>
344 <div class="refsect1">
345 <a name="GstRTSPMountPoints.see-also"></a><h2>See Also</h2>
346 <p><a class="link" href="GstRTSPMediaFactory.html" title="GstRTSPMediaFactory"><span class="type">GstRTSPMediaFactory</span></a>, <a class="link" href="GstRTSPClient.html" title="GstRTSPClient"><span class="type">GstRTSPClient</span></a></p>
351 Generated by GTK-Doc V1.21</div>