summaryrefslogtreecommitdiff
path: root/doc/reference/librygel-db/gtkdoc/overview.xml
blob: fe0d39a9ca3c0edb2571e16d60ed03655ab6d0e7 (plain)
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
<?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-db is part of the <ulink url="http://rygel-project.org/">Rygel</ulink> project.
</para>

<para>
librygel-db is a small wrapper around SQLite3 used in several plugin implementations.
</para>

<para>
librygel-db is licensed under the GNU Lesser General Public License (LGPL).
</para>

<sect1>
<title>Basic Usage</title>
<para>
Include the header:
</para>
<para>
<programlisting>
#include &lt;rygel-db.h&gt;
</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 rygel-db-2.8`
</command>
</para>

<para>
Alternatively, if using autoconf, use the following in configure.ac:
</para>
<para>
<programlisting>
PKG_CHECK_MODULES([DEPS], [rygel-db-2.8])
</programlisting>
</para>

<para>
Then use the generated DEPS_CFLAGS and DEPS_LIBS variables in the project Makefile.am files. For example:
</para>
<para>
<programlisting>
program_CPPFLAGS = $(DEPS_CFLAGS)
program_LDADD = $(DEPS_LIBS)
</programlisting>
</para>

</sect1>

</section>