Main Page | Data Structures | File List | Data Fields | Globals

rpc-ic.h File Reference

#include <glib/gtypes.h>

Include dependency graph for rpc-ic.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* ICConnectedNotifyCb )(gpointer user_data)
 ICDConnectedNotifyCb: : user data set when the signal handler was connected.

Functions

gboolean ic_get_connected (void)
 ic_get_connected:
void ic_wait_connection (ICConnectedNotifyCb cb, gpointer user_data)
 ic_wait_connection: : Callback to call when a connection is established.
void ic_unwait_connection (ICConnectedNotifyCb cb, gpointer user_data)
 ic_unwait_connection: : Callback that should be removed.


Typedef Documentation

typedef void(* ICConnectedNotifyCb)(gpointer user_data)
 

ICDConnectedNotifyCb: : user data set when the signal handler was connected.

Callback to be called when a connection is connected.

Definition at line 41 of file rpc-ic.h.


Function Documentation

gboolean ic_get_connected void   ) 
 

ic_get_connected:

Gets the connection status from ic. Returns: TRUE if there is an active connection.

Definition at line 66 of file rpc-ic.c.

References _ic_get_connected_bus(), conn, DEBUG, ENTER_FUNC, get_dbus_connection(), and LEAVE_FUNC.

Referenced by _alarmd_action_dialog_run().

void ic_unwait_connection ICConnectedNotifyCb  cb,
gpointer  user_data
 

ic_unwait_connection: : Callback that should be removed.

: user daata for callback that should be removed.

Stopds waiting for internet connection for given callback and data.

Definition at line 127 of file rpc-ic.c.

References _ic_connected(), _ICNotify::cb, connection_notifies, ENTER_FUNC, ICD_CONNECTED_SIGNAL, LEAVE_FUNC, notify_mutex, system_bus, and _ICNotify::user_data.

Referenced by _alarmd_action_dialog_finalize().

void ic_wait_connection ICConnectedNotifyCb  cb,
gpointer  user_data
 

ic_wait_connection: : Callback to call when a connection is established.

: User data to pass to the .

Waits for internet connection and calls cb when one comes.

Definition at line 87 of file rpc-ic.c.

References _ic_connected(), _ic_get_connected_bus(), _ICNotify::cb, connection_notifies, DEBUG, ENTER_FUNC, get_dbus_connection(), ICD_CONNECTED_SIGNAL, LEAVE_FUNC, notify_mutex, system_bus, and _ICNotify::user_data.

Referenced by _alarmd_action_dialog_run().


Generated on Thu Dec 21 18:23:31 2006 for Alarmd by  doxygen 1.4.2