<refentry id="libgnomedb-40-libgnomedb">
<refmeta>
<refentrytitle>Initialization</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBGNOMEDB-4.0 Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>Initialization</refname><refpurpose>Library initialization and main loop</refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



<link linkend="void">void</link>        <link linkend="gnome-db-init">gnome_db_init</link>                   (void);
<link linkend="gchar">gchar</link>*      <link linkend="gnome-db-get-application-exec-path">gnome_db_get_application_exec_path</link>
                                            (const <link linkend="gchar">gchar</link> *app_name);
</synopsis>
</refsynopsisdiv>









<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="gnome-db-init"/>gnome_db_init ()</title>
<indexterm><primary>gnome_db_init</primary></indexterm><programlisting><link linkend="void">void</link>        gnome_db_init                   (void);</programlisting>
<para>
Initialization of the libgnomedb library, must be called before any usage of the library.
Note: <link linkend="gtk-init"><function>gtk_init()</function></link> is not called by this function and should also be called.</para>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="gnome-db-get-application-exec-path"/>gnome_db_get_application_exec_path ()</title>
<indexterm><primary>gnome_db_get_application_exec_path</primary></indexterm><programlisting><link linkend="gchar">gchar</link>*      gnome_db_get_application_exec_path
                                            (const <link linkend="gchar">gchar</link> *app_name);</programlisting>
<para>
Find the path to the application identified by <parameter>app_name</parameter>. For example if the application
is "gnome-database-properties", then calling this function will return
"/your/prefix/bin/gnome-database-properties-4.0" if Libgnomedb is installed in
the "/your/prefix" prefix (which would usually be "/usr"), and for the ABI version 4.0.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>app_name</parameter>&nbsp;:</term>
<listitem><simpara> the name of the application to find
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the path as a new string, or <literal>NULL</literal> if the application cannot be found
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
