1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
]>
<section id="overview">
<para>
librygel-server is part of the <ulink url="http://rygel-project.org/">Rygel</ulink> project.
</para>
<para>
This library may be used to:
<itemizedlist>
<listitem><link linkend="implementing-servers">Create UPnP or DLNA servers</link>, such as the Rygel server.</listitem>
<listitem><link linkend="implementing-server-plugins">Create Rygel Server plugins</link></listitem>
<listitem><link linkend="implementing-media-engines">Create Rygel Media Engines</link></listitem>
</itemizedlist>
</para>
<para>
librygel-server is licensed under the GNU Lesser General Public License (LGPL).
</para>
<sect1>
<title>Basic Usage</title>
<para>
Include the header:
</para>
<para>
<programlisting>
#include <rygel-server.h>
</programlisting>
</para>
<para>
If your source file is program.c, you can compile it with:
</para>
<para>
<command>
gcc program.cc -o program `pkg-config --cflags --libs ryhttp://git.gnome.org/browse/rygel/commit/doc/reference/librygel-server/gtkdoc/overview.xml?id=b5748f34b25c5fc260d4f21969e2fb2cb8b5a1c2gel-server-2.0`
</command>
</para>
<para>
Alternatively, if using autoconf, use the following in configure.ac:
</para>
<para>
<programlisting>
PKG_CHECK_MODULES([DEPS], [rygel-server-2.0])
</programlisting>
</para>
<para>
Then use the generated DEPS_CFLAGS and DEPS_LIBS variables in the project Makefile.am files. For example:
</para>
<para>http://git.gnome.org/browse/rygel/commit/doc/reference/librygel-server/gtkdoc/overview.xml?id=b5748f34b25c5fc260d4f21969e2fb2cb8b5a1c2
<programlisting>
program_CPPFLAGS = $(DEPS_CFLAGS)
program_LDADD = $(DEPS_LIBS)
</programlisting>
</para>
</sect1>
</section>
|