<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
               "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<refentry id="libnm-glib-libnm-glib">
<refmeta>
<refentrytitle role="top_of_page">libnm_glib</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBNM-GLIB Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>libnm_glib</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>



enum                <link linkend="libnm-glib-state">libnm_glib_state</link>;
typedef             <link linkend="libnm-glib-ctx">libnm_glib_ctx</link>;
<link linkend="void">void</link>                (<link linkend="libnm-glib-callback-func">*libnm_glib_callback_func</link>)         (<link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *libnm_ctx,
                                                         <link linkend="gpointer">gpointer</link> user_data);
<link linkend="libnm-glib-ctx">libnm_glib_ctx</link>*     <link linkend="libnm-glib-init">libnm_glib_init</link>                     (void);
<link linkend="void">void</link>                <link linkend="libnm-glib-shutdown">libnm_glib_shutdown</link>                 (<link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *ctx);
<link linkend="libnm-glib-state">libnm_glib_state</link>    <link linkend="libnm-glib-get-network-state">libnm_glib_get_network_state</link>        (const <link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *ctx);
<link linkend="guint">guint</link>               <link linkend="libnm-glib-register-callback">libnm_glib_register_callback</link>        (<link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *ctx,
                                                         <link linkend="libnm-glib-callback-func">libnm_glib_callback_func</link> func,
                                                         <link linkend="gpointer">gpointer</link> user_data,
                                                         <link linkend="GMainContext">GMainContext</link> *g_main_ctx);
<link linkend="void">void</link>                <link linkend="libnm-glib-unregister-callback">libnm_glib_unregister_callback</link>      (<link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *ctx,
                                                         <link linkend="guint">guint</link> id);
</synopsis>
</refsynopsisdiv>









<refsect1 role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 role="details">
<title role="details.title">Details</title>
<refsect2>
<title><anchor id="libnm-glib-state" role="enum"/>enum libnm_glib_state</title>
<indexterm><primary>libnm_glib_state</primary></indexterm><programlisting>typedef enum libnm_glib_state
{
	LIBNM_NO_DBUS = 0,
	LIBNM_NO_NETWORKMANAGER,
	LIBNM_NO_NETWORK_CONNECTION,
	LIBNM_ACTIVE_NETWORK_CONNECTION,
	LIBNM_INVALID_CONTEXT
} libnm_glib_state;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="libnm-glib-ctx" role="typedef"/>libnm_glib_ctx</title>
<indexterm><primary>libnm_glib_ctx</primary></indexterm><programlisting>typedef struct libnm_glib_ctx libnm_glib_ctx;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="libnm-glib-callback-func" role="function"/>libnm_glib_callback_func ()</title>
<indexterm><primary>libnm_glib_callback_func</primary></indexterm><programlisting><link linkend="void">void</link>                (*libnm_glib_callback_func)         (<link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *libnm_ctx,
                                                         <link linkend="gpointer">gpointer</link> user_data);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>libnm_ctx</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="libnm-glib-init" role="function"/>libnm_glib_init ()</title>
<indexterm><primary>libnm_glib_init</primary></indexterm><programlisting><link linkend="libnm-glib-ctx">libnm_glib_ctx</link>*     libnm_glib_init                     (void);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="libnm-glib-shutdown" role="function"/>libnm_glib_shutdown ()</title>
<indexterm><primary>libnm_glib_shutdown</primary></indexterm><programlisting><link linkend="void">void</link>                libnm_glib_shutdown                 (<link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *ctx);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>ctx</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="libnm-glib-get-network-state" role="function"/>libnm_glib_get_network_state ()</title>
<indexterm><primary>libnm_glib_get_network_state</primary></indexterm><programlisting><link linkend="libnm-glib-state">libnm_glib_state</link>    libnm_glib_get_network_state        (const <link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *ctx);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>ctx</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="libnm-glib-register-callback" role="function"/>libnm_glib_register_callback ()</title>
<indexterm><primary>libnm_glib_register_callback</primary></indexterm><programlisting><link linkend="guint">guint</link>               libnm_glib_register_callback        (<link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *ctx,
                                                         <link linkend="libnm-glib-callback-func">libnm_glib_callback_func</link> func,
                                                         <link linkend="gpointer">gpointer</link> user_data,
                                                         <link linkend="GMainContext">GMainContext</link> *g_main_ctx);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>ctx</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>func</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>user_data</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>g_main_ctx</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="libnm-glib-unregister-callback" role="function"/>libnm_glib_unregister_callback ()</title>
<indexterm><primary>libnm_glib_unregister_callback</primary></indexterm><programlisting><link linkend="void">void</link>                libnm_glib_unregister_callback      (<link linkend="libnm-glib-ctx">libnm_glib_ctx</link> *ctx,
                                                         <link linkend="guint">guint</link> id);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>ctx</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>id</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>





<refsect1><refsect2 /><refsect2 /></refsect1>
</refentry>
