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>GUPnPDIDLLiteResource</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GUPnP A/V Reference Manual">
8 <link rel="up" href="ch01.html" title="GUPnP A/V">
9 <link rel="prev" href="GUPnPDIDLLiteWriter.html" title="GUPnPDIDLLiteWriter">
10 <link rel="next" href="GUPnPDIDLLiteDescriptor.html" title="GUPnPDIDLLiteDescriptor">
11 <meta name="generator" content="GTK-Doc V1.18 (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="2">
17 <td><a accesskey="p" href="GUPnPDIDLLiteWriter.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ch01.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">GUPnP A/V Reference Manual</th>
21 <td><a accesskey="n" href="GUPnPDIDLLiteDescriptor.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GUPnPDIDLLiteResource.synopsis" class="shortcut">Top</a>
26 <a href="#GUPnPDIDLLiteResource.description" class="shortcut">Description</a>
28 <a href="#GUPnPDIDLLiteResource.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#GUPnPDIDLLiteResource.properties" class="shortcut">Properties</a>
33 <div class="refentry">
34 <a name="GUPnPDIDLLiteResource"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
37 <h2><span class="refentrytitle"><a name="GUPnPDIDLLiteResource.top_of_page"></a>GUPnPDIDLLiteResource</span></h2>
38 <p>GUPnPDIDLLiteResource — DIDL-Lite Resource</p>
40 <td valign="top" align="right"></td>
42 <div class="refsynopsisdiv">
43 <a name="GUPnPDIDLLiteResource.synopsis"></a><h2>Synopsis</h2>
44 <pre class="synopsis"> <a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource-struct" title="GUPnPDIDLLiteResource">GUPnPDIDLLiteResource</a>;
45 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-uri" title="gupnp_didl_lite_resource_set_uri ()">gupnp_didl_lite_resource_set_uri</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
46 <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);
47 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-import-uri" title="gupnp_didl_lite_resource_set_import_uri ()">gupnp_didl_lite_resource_set_import_uri</a>
48 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
49 <em class="parameter"><code>const <span class="type">char</span> *import_uri</code></em>);
50 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-protocol-info" title="gupnp_didl_lite_resource_set_protocol_info ()">gupnp_didl_lite_resource_set_protocol_info</a>
51 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
52 <em class="parameter"><code><a class="link" href="GUPnPProtocolInfo.html" title="GUPnPProtocolInfo"><span class="type">GUPnPProtocolInfo</span></a> *info</code></em>);
53 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-size" title="gupnp_didl_lite_resource_set_size ()">gupnp_didl_lite_resource_set_size</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
54 <em class="parameter"><code>long <span class="type">size</span> Param2</code></em>);
55 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-size64" title="gupnp_didl_lite_resource_set_size64 ()">gupnp_didl_lite_resource_set_size64</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
56 <em class="parameter"><code><span class="type">gint64</span> size</code></em>);
57 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-duration" title="gupnp_didl_lite_resource_set_duration ()">gupnp_didl_lite_resource_set_duration</a>
58 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
59 <em class="parameter"><code>long <span class="type">duration</span> Param2</code></em>);
60 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-bitrate" title="gupnp_didl_lite_resource_set_bitrate ()">gupnp_didl_lite_resource_set_bitrate</a>
61 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
62 <em class="parameter"><code><span class="type">int</span> bitrate</code></em>);
63 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-sample-freq" title="gupnp_didl_lite_resource_set_sample_freq ()">gupnp_didl_lite_resource_set_sample_freq</a>
64 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
65 <em class="parameter"><code><span class="type">int</span> sample_freq</code></em>);
66 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-bits-per-sample" title="gupnp_didl_lite_resource_set_bits_per_sample ()">gupnp_didl_lite_resource_set_bits_per_sample</a>
67 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
68 <em class="parameter"><code><span class="type">int</span> sample_size</code></em>);
69 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-protection" title="gupnp_didl_lite_resource_set_protection ()">gupnp_didl_lite_resource_set_protection</a>
70 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
71 <em class="parameter"><code>const <span class="type">char</span> *protection</code></em>);
72 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-audio-channels" title="gupnp_didl_lite_resource_set_audio_channels ()">gupnp_didl_lite_resource_set_audio_channels</a>
73 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
74 <em class="parameter"><code><span class="type">int</span> n_channels</code></em>);
75 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-width" title="gupnp_didl_lite_resource_set_width ()">gupnp_didl_lite_resource_set_width</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
76 <em class="parameter"><code><span class="type">int</span> width</code></em>);
77 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-height" title="gupnp_didl_lite_resource_set_height ()">gupnp_didl_lite_resource_set_height</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
78 <em class="parameter"><code><span class="type">int</span> height</code></em>);
79 <span class="returnvalue">void</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-set-color-depth" title="gupnp_didl_lite_resource_set_color_depth ()">gupnp_didl_lite_resource_set_color_depth</a>
80 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
81 <em class="parameter"><code><span class="type">int</span> color_depth</code></em>);
82 const <span class="returnvalue">char</span> * <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-uri" title="gupnp_didl_lite_resource_get_uri ()">gupnp_didl_lite_resource_get_uri</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
83 const <span class="returnvalue">char</span> * <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-import-uri" title="gupnp_didl_lite_resource_get_import_uri ()">gupnp_didl_lite_resource_get_import_uri</a>
84 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
85 <a class="link" href="GUPnPProtocolInfo.html" title="GUPnPProtocolInfo"><span class="returnvalue">GUPnPProtocolInfo</span></a> * <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-protocol-info" title="gupnp_didl_lite_resource_get_protocol_info ()">gupnp_didl_lite_resource_get_protocol_info</a>
86 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
87 <span class="returnvalue">long</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-size" title="gupnp_didl_lite_resource_get_size ()">gupnp_didl_lite_resource_get_size</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
88 <span class="returnvalue">gint64</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-size64" title="gupnp_didl_lite_resource_get_size64 ()">gupnp_didl_lite_resource_get_size64</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
89 <span class="returnvalue">long</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-duration" title="gupnp_didl_lite_resource_get_duration ()">gupnp_didl_lite_resource_get_duration</a>
90 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
91 <span class="returnvalue">int</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-bitrate" title="gupnp_didl_lite_resource_get_bitrate ()">gupnp_didl_lite_resource_get_bitrate</a>
92 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
93 <span class="returnvalue">int</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-sample-freq" title="gupnp_didl_lite_resource_get_sample_freq ()">gupnp_didl_lite_resource_get_sample_freq</a>
94 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
95 <span class="returnvalue">int</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-bits-per-sample" title="gupnp_didl_lite_resource_get_bits_per_sample ()">gupnp_didl_lite_resource_get_bits_per_sample</a>
96 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
97 const <span class="returnvalue">char</span> * <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-protection" title="gupnp_didl_lite_resource_get_protection ()">gupnp_didl_lite_resource_get_protection</a>
98 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
99 <span class="returnvalue">int</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-audio-channels" title="gupnp_didl_lite_resource_get_audio_channels ()">gupnp_didl_lite_resource_get_audio_channels</a>
100 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
101 <span class="returnvalue">int</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-width" title="gupnp_didl_lite_resource_get_width ()">gupnp_didl_lite_resource_get_width</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
102 <span class="returnvalue">int</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-height" title="gupnp_didl_lite_resource_get_height ()">gupnp_didl_lite_resource_get_height</a> (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
103 <span class="returnvalue">int</span> <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-color-depth" title="gupnp_didl_lite_resource_get_color_depth ()">gupnp_didl_lite_resource_get_color_depth</a>
104 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
105 <span class="returnvalue">xmlNode</span> * <a class="link" href="GUPnPDIDLLiteResource.html#gupnp-didl-lite-resource-get-xml-node" title="gupnp_didl_lite_resource_get_xml_node ()">gupnp_didl_lite_resource_get_xml_node</a>
106 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);
109 <div class="refsect1">
110 <a name="GUPnPDIDLLiteResource.object-hierarchy"></a><h2>Object Hierarchy</h2>
111 <pre class="synopsis">
112 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
113 +----GUPnPDIDLLiteResource
116 <div class="refsect1">
117 <a name="GUPnPDIDLLiteResource.properties"></a><h2>Properties</h2>
118 <pre class="synopsis">
119 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--audio-channels" title='The "audio-channels" property'>audio-channels</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
120 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--bitrate" title='The "bitrate" property'>bitrate</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
121 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--bits-per-sample" title='The "bits-per-sample" property'>bits-per-sample</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
122 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--color-depth" title='The "color-depth" property'>color-depth</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
123 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--duration" title='The "duration" property'>duration</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> : Read / Write
124 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--height" title='The "height" property'>height</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
125 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--import-uri" title='The "import-uri" property'>import-uri</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
126 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--protection" title='The "protection" property'>protection</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
127 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--protocol-info" title='The "protocol-info" property'>protocol-info</a>" <a class="link" href="GUPnPProtocolInfo.html" title="GUPnPProtocolInfo"><span class="type">GUPnPProtocolInfo</span></a>* : Read / Write
128 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--sample-freq" title='The "sample-freq" property'>sample-freq</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
129 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--size" title='The "size" property'>size</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> : Read / Write
130 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--size64" title='The "size64" property'>size64</a>" <span class="type">gint64</span> : Read / Write
131 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--uri" title='The "uri" property'>uri</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
132 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--width" title='The "width" property'>width</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
133 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--xml-doc" title='The "xml-doc" property'>xml-doc</a>" <a href="../gupnp/GUPnPXMLDoc.html"><span class="type">GUPnPXMLDoc</span></a>* : Write / Construct Only
134 "<a class="link" href="GUPnPDIDLLiteResource.html#GUPnPDIDLLiteResource--xml-node" title='The "xml-node" property'>xml-node</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Read / Write / Construct Only
137 <div class="refsect1">
138 <a name="GUPnPDIDLLiteResource.description"></a><h2>Description</h2>
140 <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> respresent a DIDL-Lite resource (res) element.
143 <div class="refsect1">
144 <a name="GUPnPDIDLLiteResource.details"></a><h2>Details</h2>
145 <div class="refsect2">
146 <a name="GUPnPDIDLLiteResource-struct"></a><h3>GUPnPDIDLLiteResource</h3>
147 <pre class="programlisting">typedef struct _GUPnPDIDLLiteResource GUPnPDIDLLiteResource;</pre>
150 <div class="refsect2">
151 <a name="gupnp-didl-lite-resource-set-uri"></a><h3>gupnp_didl_lite_resource_set_uri ()</h3>
152 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_uri (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
153 <em class="parameter"><code>const <span class="type">char</span> *uri</code></em>);</pre>
155 Set the URI associated with the <em class="parameter"><code>resource</code></em>.
157 <div class="variablelist"><table border="0">
158 <col align="left" valign="top">
161 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
162 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
166 <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
167 <td>The URI as string</td>
170 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
177 <div class="refsect2">
178 <a name="gupnp-didl-lite-resource-set-import-uri"></a><h3>gupnp_didl_lite_resource_set_import_uri ()</h3>
179 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_import_uri
180 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
181 <em class="parameter"><code>const <span class="type">char</span> *import_uri</code></em>);</pre>
183 Set the import URI associated with the <em class="parameter"><code>resource</code></em>.
185 <div class="variablelist"><table border="0">
186 <col align="left" valign="top">
189 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
190 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
194 <td><p><span class="term"><em class="parameter"><code>import_uri</code></em> :</span></p></td>
195 <td>The URI as string</td>
198 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
205 <div class="refsect2">
206 <a name="gupnp-didl-lite-resource-set-protocol-info"></a><h3>gupnp_didl_lite_resource_set_protocol_info ()</h3>
207 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_protocol_info
208 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
209 <em class="parameter"><code><a class="link" href="GUPnPProtocolInfo.html" title="GUPnPProtocolInfo"><span class="type">GUPnPProtocolInfo</span></a> *info</code></em>);</pre>
211 Set the protocol info associated with the <em class="parameter"><code>resource</code></em>.
213 <div class="variablelist"><table border="0">
214 <col align="left" valign="top">
217 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
218 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
222 <td><p><span class="term"><em class="parameter"><code>info</code></em> :</span></p></td>
223 <td>The protocol string</td>
226 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
233 <div class="refsect2">
234 <a name="gupnp-didl-lite-resource-set-size"></a><h3>gupnp_didl_lite_resource_set_size ()</h3>
235 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_size (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
236 <em class="parameter"><code>long <span class="type">size</span> Param2</code></em>);</pre>
238 Set the size (in bytes) of the <em class="parameter"><code>resource</code></em>. Passing a negative number will
241 <div class="variablelist"><table border="0">
242 <col align="left" valign="top">
245 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
246 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
250 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
251 <td>The size (in bytes)</td>
254 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
261 <div class="refsect2">
262 <a name="gupnp-didl-lite-resource-set-size64"></a><h3>gupnp_didl_lite_resource_set_size64 ()</h3>
263 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_size64 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
264 <em class="parameter"><code><span class="type">gint64</span> size</code></em>);</pre>
266 Set the size (in bytes) of the <em class="parameter"><code>resource</code></em>. Passing a negative number will
269 <div class="variablelist"><table border="0">
270 <col align="left" valign="top">
273 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
274 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
278 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
279 <td>The size (in bytes)</td>
282 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
289 <div class="refsect2">
290 <a name="gupnp-didl-lite-resource-set-duration"></a><h3>gupnp_didl_lite_resource_set_duration ()</h3>
291 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_duration
292 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
293 <em class="parameter"><code>long <span class="type">duration</span> Param2</code></em>);</pre>
295 Set the duration (in seconds) of the <em class="parameter"><code>resource</code></em>. Passing a negative number
296 will unset this property.
298 <div class="variablelist"><table border="0">
299 <col align="left" valign="top">
302 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
303 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
307 <td><p><span class="term"><em class="parameter"><code>duration</code></em> :</span></p></td>
308 <td>The duration (in seconds)</td>
311 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
318 <div class="refsect2">
319 <a name="gupnp-didl-lite-resource-set-bitrate"></a><h3>gupnp_didl_lite_resource_set_bitrate ()</h3>
320 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_bitrate
321 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
322 <em class="parameter"><code><span class="type">int</span> bitrate</code></em>);</pre>
324 Set the bitrate (in bytes per second) of the <em class="parameter"><code>resource</code></em>. Passing a negative
325 number will unset this property.
327 <div class="variablelist"><table border="0">
328 <col align="left" valign="top">
331 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
332 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
336 <td><p><span class="term"><em class="parameter"><code>bitrate</code></em> :</span></p></td>
340 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
347 <div class="refsect2">
348 <a name="gupnp-didl-lite-resource-set-sample-freq"></a><h3>gupnp_didl_lite_resource_set_sample_freq ()</h3>
349 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_sample_freq
350 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
351 <em class="parameter"><code><span class="type">int</span> sample_freq</code></em>);</pre>
353 Set the sample frequency of the <em class="parameter"><code>resource</code></em>. Passing a negative number will
356 <div class="variablelist"><table border="0">
357 <col align="left" valign="top">
360 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
361 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
365 <td><p><span class="term"><em class="parameter"><code>sample_freq</code></em> :</span></p></td>
366 <td>The sample frequency</td>
369 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
376 <div class="refsect2">
377 <a name="gupnp-didl-lite-resource-set-bits-per-sample"></a><h3>gupnp_didl_lite_resource_set_bits_per_sample ()</h3>
378 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_bits_per_sample
379 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
380 <em class="parameter"><code><span class="type">int</span> sample_size</code></em>);</pre>
382 Set the sample size of the <em class="parameter"><code>resource</code></em>. Passing a negative number will unset
385 <div class="variablelist"><table border="0">
386 <col align="left" valign="top">
389 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
390 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
394 <td><p><span class="term"><em class="parameter"><code>sample_size</code></em> :</span></p></td>
395 <td>The number of bits per sample</td>
398 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
405 <div class="refsect2">
406 <a name="gupnp-didl-lite-resource-set-protection"></a><h3>gupnp_didl_lite_resource_set_protection ()</h3>
407 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_protection
408 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
409 <em class="parameter"><code>const <span class="type">char</span> *protection</code></em>);</pre>
411 Set the protection system used by the <em class="parameter"><code>resource</code></em>. Passing a negative number
412 will unset this property.
414 <div class="variablelist"><table border="0">
415 <col align="left" valign="top">
418 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
419 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
423 <td><p><span class="term"><em class="parameter"><code>protection</code></em> :</span></p></td>
424 <td>The protection system identifier as string</td>
427 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
434 <div class="refsect2">
435 <a name="gupnp-didl-lite-resource-set-audio-channels"></a><h3>gupnp_didl_lite_resource_set_audio_channels ()</h3>
436 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_audio_channels
437 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
438 <em class="parameter"><code><span class="type">int</span> n_channels</code></em>);</pre>
440 Set the number of audio channels in the <em class="parameter"><code>resource</code></em>. Passing a negative number
441 will unset this property.
443 <div class="variablelist"><table border="0">
444 <col align="left" valign="top">
447 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
448 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
452 <td><p><span class="term"><em class="parameter"><code>n_channels</code></em> :</span></p></td>
453 <td>The number of channels</td>
456 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
457 <td>The number of audio channels in the <em class="parameter"><code>resource</code></em> or -1.</td>
463 <div class="refsect2">
464 <a name="gupnp-didl-lite-resource-set-width"></a><h3>gupnp_didl_lite_resource_set_width ()</h3>
465 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_width (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
466 <em class="parameter"><code><span class="type">int</span> width</code></em>);</pre>
468 Set the width of this image/video resource. Setting both width and height to
469 a negative number will unset the resolution property.
471 <div class="variablelist"><table border="0">
472 <col align="left" valign="top">
475 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
476 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
480 <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
484 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
491 <div class="refsect2">
492 <a name="gupnp-didl-lite-resource-set-height"></a><h3>gupnp_didl_lite_resource_set_height ()</h3>
493 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_height (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
494 <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
496 Set the height of this image/video resource. Setting both width and height to
497 a negative number will unset the resolution property.
499 <div class="variablelist"><table border="0">
500 <col align="left" valign="top">
503 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
504 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
508 <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
512 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
519 <div class="refsect2">
520 <a name="gupnp-didl-lite-resource-set-color-depth"></a><h3>gupnp_didl_lite_resource_set_color_depth ()</h3>
521 <pre class="programlisting"><span class="returnvalue">void</span> gupnp_didl_lite_resource_set_color_depth
522 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>,
523 <em class="parameter"><code><span class="type">int</span> color_depth</code></em>);</pre>
525 Set the color-depth of this image/video resource. Passing a negative number
526 will unset this property.
528 <div class="variablelist"><table border="0">
529 <col align="left" valign="top">
532 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
533 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
537 <td><p><span class="term"><em class="parameter"><code>color_depth</code></em> :</span></p></td>
538 <td>The color-depth</td>
541 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
548 <div class="refsect2">
549 <a name="gupnp-didl-lite-resource-get-uri"></a><h3>gupnp_didl_lite_resource_get_uri ()</h3>
550 <pre class="programlisting">const <span class="returnvalue">char</span> * gupnp_didl_lite_resource_get_uri (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
552 Get the URI associated with the <em class="parameter"><code>resource</code></em>.
554 <div class="variablelist"><table border="0">
555 <col align="left" valign="top">
558 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
559 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
563 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
564 <td>The of URI the <em class="parameter"><code>resource</code></em> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
570 <div class="refsect2">
571 <a name="gupnp-didl-lite-resource-get-import-uri"></a><h3>gupnp_didl_lite_resource_get_import_uri ()</h3>
572 <pre class="programlisting">const <span class="returnvalue">char</span> * gupnp_didl_lite_resource_get_import_uri
573 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
575 Get the import URI associated with the <em class="parameter"><code>resource</code></em>.
577 <div class="variablelist"><table border="0">
578 <col align="left" valign="top">
581 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
582 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
586 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
587 <td>The import URI or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
593 <div class="refsect2">
594 <a name="gupnp-didl-lite-resource-get-protocol-info"></a><h3>gupnp_didl_lite_resource_get_protocol_info ()</h3>
595 <pre class="programlisting"><a class="link" href="GUPnPProtocolInfo.html" title="GUPnPProtocolInfo"><span class="returnvalue">GUPnPProtocolInfo</span></a> * gupnp_didl_lite_resource_get_protocol_info
596 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
598 Get the protocol info associated with the <em class="parameter"><code>resource</code></em>.
600 <div class="variablelist"><table border="0">
601 <col align="left" valign="top">
604 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
605 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
609 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
610 <td>The protocol info associated with the <em class="parameter"><code>resource</code></em> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. The
611 returned object must not be unrefed. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
618 <div class="refsect2">
619 <a name="gupnp-didl-lite-resource-get-size"></a><h3>gupnp_didl_lite_resource_get_size ()</h3>
620 <pre class="programlisting"><span class="returnvalue">long</span> gupnp_didl_lite_resource_get_size (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
622 Get the size (in bytes) of the <em class="parameter"><code>resource</code></em>.
624 <div class="variablelist"><table border="0">
625 <col align="left" valign="top">
628 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
629 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
633 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
634 <td>The size (in bytes) of the <em class="parameter"><code>resource</code></em> or -1.</td>
640 <div class="refsect2">
641 <a name="gupnp-didl-lite-resource-get-size64"></a><h3>gupnp_didl_lite_resource_get_size64 ()</h3>
642 <pre class="programlisting"><span class="returnvalue">gint64</span> gupnp_didl_lite_resource_get_size64 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
644 Get the size (in bytes) of the <em class="parameter"><code>resource</code></em>.
646 <div class="variablelist"><table border="0">
647 <col align="left" valign="top">
650 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
651 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
655 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
656 <td>The size (in bytes) of the <em class="parameter"><code>resource</code></em> or -1.</td>
662 <div class="refsect2">
663 <a name="gupnp-didl-lite-resource-get-duration"></a><h3>gupnp_didl_lite_resource_get_duration ()</h3>
664 <pre class="programlisting"><span class="returnvalue">long</span> gupnp_didl_lite_resource_get_duration
665 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
667 Get the duration (in seconds) of the <em class="parameter"><code>resource</code></em>.
669 <div class="variablelist"><table border="0">
670 <col align="left" valign="top">
673 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
674 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
678 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
679 <td>The duration (in seconds) of the <em class="parameter"><code>resource</code></em> or -1.</td>
685 <div class="refsect2">
686 <a name="gupnp-didl-lite-resource-get-bitrate"></a><h3>gupnp_didl_lite_resource_get_bitrate ()</h3>
687 <pre class="programlisting"><span class="returnvalue">int</span> gupnp_didl_lite_resource_get_bitrate
688 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
690 Get the bitrate (in bytes per second) of the <em class="parameter"><code>resource</code></em>.
692 <div class="variablelist"><table border="0">
693 <col align="left" valign="top">
696 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
697 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
701 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
702 <td>The bitrate (in bytes per second) of the <em class="parameter"><code>resource</code></em> or -1.</td>
708 <div class="refsect2">
709 <a name="gupnp-didl-lite-resource-get-sample-freq"></a><h3>gupnp_didl_lite_resource_get_sample_freq ()</h3>
710 <pre class="programlisting"><span class="returnvalue">int</span> gupnp_didl_lite_resource_get_sample_freq
711 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
713 Get the sample frequency of the <em class="parameter"><code>resource</code></em>.
715 <div class="variablelist"><table border="0">
716 <col align="left" valign="top">
719 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
720 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
724 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
725 <td>The sample frequency of the <em class="parameter"><code>resource</code></em> or -1.</td>
731 <div class="refsect2">
732 <a name="gupnp-didl-lite-resource-get-bits-per-sample"></a><h3>gupnp_didl_lite_resource_get_bits_per_sample ()</h3>
733 <pre class="programlisting"><span class="returnvalue">int</span> gupnp_didl_lite_resource_get_bits_per_sample
734 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
736 Get the sample size of the <em class="parameter"><code>resource</code></em>.
738 <div class="variablelist"><table border="0">
739 <col align="left" valign="top">
742 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
743 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
747 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
748 <td>The number of bits per sample of the <em class="parameter"><code>resource</code></em> or -1.</td>
754 <div class="refsect2">
755 <a name="gupnp-didl-lite-resource-get-protection"></a><h3>gupnp_didl_lite_resource_get_protection ()</h3>
756 <pre class="programlisting">const <span class="returnvalue">char</span> * gupnp_didl_lite_resource_get_protection
757 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
759 Get the protection system used by the <em class="parameter"><code>resource</code></em>.
761 <div class="variablelist"><table border="0">
762 <col align="left" valign="top">
765 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
766 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
770 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
771 <td>The protection system in use by the <em class="parameter"><code>resource</code></em> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
777 <div class="refsect2">
778 <a name="gupnp-didl-lite-resource-get-audio-channels"></a><h3>gupnp_didl_lite_resource_get_audio_channels ()</h3>
779 <pre class="programlisting"><span class="returnvalue">int</span> gupnp_didl_lite_resource_get_audio_channels
780 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
782 Get the number of audio channels in the <em class="parameter"><code>resource</code></em>.
784 <div class="variablelist"><table border="0">
785 <col align="left" valign="top">
788 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
789 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
793 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
794 <td>The number of audio channels in the <em class="parameter"><code>resource</code></em> or -1.</td>
800 <div class="refsect2">
801 <a name="gupnp-didl-lite-resource-get-width"></a><h3>gupnp_didl_lite_resource_get_width ()</h3>
802 <pre class="programlisting"><span class="returnvalue">int</span> gupnp_didl_lite_resource_get_width (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
804 Get the width of this image/video resource.
806 <div class="variablelist"><table border="0">
807 <col align="left" valign="top">
810 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
811 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
815 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
816 <td>The width of this image/video resource or -1.</td>
822 <div class="refsect2">
823 <a name="gupnp-didl-lite-resource-get-height"></a><h3>gupnp_didl_lite_resource_get_height ()</h3>
824 <pre class="programlisting"><span class="returnvalue">int</span> gupnp_didl_lite_resource_get_height (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
826 Get the height of this image/video resource.
828 <div class="variablelist"><table border="0">
829 <col align="left" valign="top">
832 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
833 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
837 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
838 <td>The height of the <em class="parameter"><code>resource</code></em> or -1.</td>
844 <div class="refsect2">
845 <a name="gupnp-didl-lite-resource-get-color-depth"></a><h3>gupnp_didl_lite_resource_get_color_depth ()</h3>
846 <pre class="programlisting"><span class="returnvalue">int</span> gupnp_didl_lite_resource_get_color_depth
847 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
849 Get the color-depth of this image/video resource.
851 <div class="variablelist"><table border="0">
852 <col align="left" valign="top">
855 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
856 <td>A <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
860 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
861 <td>The color depth of the <em class="parameter"><code>resource</code></em> or -1.</td>
867 <div class="refsect2">
868 <a name="gupnp-didl-lite-resource-get-xml-node"></a><h3>gupnp_didl_lite_resource_get_xml_node ()</h3>
869 <pre class="programlisting"><span class="returnvalue">xmlNode</span> * gupnp_didl_lite_resource_get_xml_node
870 (<em class="parameter"><code><a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a> *resource</code></em>);</pre>
872 Get the pointer to res node in XML document.
874 <div class="variablelist"><table border="0">
875 <col align="left" valign="top">
878 <td><p><span class="term"><em class="parameter"><code>resource</code></em> :</span></p></td>
879 <td>The <a class="link" href="GUPnPDIDLLiteResource.html" title="GUPnPDIDLLiteResource"><span class="type">GUPnPDIDLLiteResource</span></a>
883 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
884 <td>The pointer to res node in XML document. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
891 <div class="refsect1">
892 <a name="GUPnPDIDLLiteResource.property-details"></a><h2>Property Details</h2>
893 <div class="refsect2">
894 <a name="GUPnPDIDLLiteResource--audio-channels"></a><h3>The <code class="literal">"audio-channels"</code> property</h3>
895 <pre class="programlisting"> "audio-channels" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
897 The number of audio channels in this resource.
899 <p>Allowed values: >= -1</p>
900 <p>Default value: -1</p>
903 <div class="refsect2">
904 <a name="GUPnPDIDLLiteResource--bitrate"></a><h3>The <code class="literal">"bitrate"</code> property</h3>
905 <pre class="programlisting"> "bitrate" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
907 The bitrate of this resource.
909 <p>Allowed values: >= -1</p>
910 <p>Default value: -1</p>
913 <div class="refsect2">
914 <a name="GUPnPDIDLLiteResource--bits-per-sample"></a><h3>The <code class="literal">"bits-per-sample"</code> property</h3>
915 <pre class="programlisting"> "bits-per-sample" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
917 The sample size of this resource.
919 <p>Allowed values: >= -1</p>
920 <p>Default value: -1</p>
923 <div class="refsect2">
924 <a name="GUPnPDIDLLiteResource--color-depth"></a><h3>The <code class="literal">"color-depth"</code> property</h3>
925 <pre class="programlisting"> "color-depth" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
927 The color-depth of this image/video resource.
929 <p>Allowed values: >= -1</p>
930 <p>Default value: -1</p>
933 <div class="refsect2">
934 <a name="GUPnPDIDLLiteResource--duration"></a><h3>The <code class="literal">"duration"</code> property</h3>
935 <pre class="programlisting"> "duration" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> : Read / Write</pre>
937 The duration (in seconds) of this resource.
939 <p>Allowed values: >= -1</p>
940 <p>Default value: -1</p>
943 <div class="refsect2">
944 <a name="GUPnPDIDLLiteResource--height"></a><h3>The <code class="literal">"height"</code> property</h3>
945 <pre class="programlisting"> "height" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
947 The height of this image/video resource.
949 <p>Allowed values: >= -1</p>
950 <p>Default value: -1</p>
953 <div class="refsect2">
954 <a name="GUPnPDIDLLiteResource--import-uri"></a><h3>The <code class="literal">"import-uri"</code> property</h3>
955 <pre class="programlisting"> "import-uri" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
957 The Import URI associated with this resource.
959 <p>Default value: NULL</p>
962 <div class="refsect2">
963 <a name="GUPnPDIDLLiteResource--protection"></a><h3>The <code class="literal">"protection"</code> property</h3>
964 <pre class="programlisting"> "protection" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
966 The protection system used for this resource.
968 <p>Default value: NULL</p>
971 <div class="refsect2">
972 <a name="GUPnPDIDLLiteResource--protocol-info"></a><h3>The <code class="literal">"protocol-info"</code> property</h3>
973 <pre class="programlisting"> "protocol-info" <a class="link" href="GUPnPProtocolInfo.html" title="GUPnPProtocolInfo"><span class="type">GUPnPProtocolInfo</span></a>* : Read / Write</pre>
975 The protocol info associated with this resource.
979 <div class="refsect2">
980 <a name="GUPnPDIDLLiteResource--sample-freq"></a><h3>The <code class="literal">"sample-freq"</code> property</h3>
981 <pre class="programlisting"> "sample-freq" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
983 The sample frequency of this resource.
985 <p>Allowed values: >= -1</p>
986 <p>Default value: -1</p>
989 <div class="refsect2">
990 <a name="GUPnPDIDLLiteResource--size"></a><h3>The <code class="literal">"size"</code> property</h3>
991 <pre class="programlisting"> "size" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> : Read / Write</pre>
993 The size (in bytes) of this resource.
995 <p>Allowed values: >= -1</p>
996 <p>Default value: -1</p>
999 <div class="refsect2">
1000 <a name="GUPnPDIDLLiteResource--size64"></a><h3>The <code class="literal">"size64"</code> property</h3>
1001 <pre class="programlisting"> "size64" <span class="type">gint64</span> : Read / Write</pre>
1003 The size (in bytes) of this resource.
1005 <p>Allowed values: >= -1</p>
1006 <p>Default value: -1</p>
1009 <div class="refsect2">
1010 <a name="GUPnPDIDLLiteResource--uri"></a><h3>The <code class="literal">"uri"</code> property</h3>
1011 <pre class="programlisting"> "uri" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
1013 The URI associated with this resource.
1015 <p>Default value: NULL</p>
1018 <div class="refsect2">
1019 <a name="GUPnPDIDLLiteResource--width"></a><h3>The <code class="literal">"width"</code> property</h3>
1020 <pre class="programlisting"> "width" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
1022 The width of this image/video resource.
1024 <p>Allowed values: >= -1</p>
1025 <p>Default value: -1</p>
1028 <div class="refsect2">
1029 <a name="GUPnPDIDLLiteResource--xml-doc"></a><h3>The <code class="literal">"xml-doc"</code> property</h3>
1030 <pre class="programlisting"> "xml-doc" <a href="../gupnp/GUPnPXMLDoc.html"><span class="type">GUPnPXMLDoc</span></a>* : Write / Construct Only</pre>
1032 The reference to XML document containing this object.
1037 <p class="stability">Stability Level: Private</p>
1040 <div class="refsect2">
1041 <a name="GUPnPDIDLLiteResource--xml-node"></a><h3>The <code class="literal">"xml-node"</code> property</h3>
1042 <pre class="programlisting"> "xml-node" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Read / Write / Construct Only</pre>
1044 The pointer to res node in XML document.
1049 <div class="footer">
1051 Generated by GTK-Doc V1.18</div>