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

rpc-dbus.h File Reference

#include <glib/gtypes.h>
#include <libosso.h>
#include <dbus/dbus.h>

Include dependency graph for rpc-dbus.h:

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

Go to the source code of this file.

Typedefs

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

Functions

void dbus_do_call (DBusConnection *bus, DBusMessage **reply, gboolean activation, const gchar *service, const gchar *path, const gchar *interface, const gchar *name, int first_arg_type,...)
void dbus_watch_name (const gchar *name, DBusNameNotifyCb cb, gpointer user_data)
void dbus_unwatch_name (const gchar *name, DBusNameNotifyCb cb, gpointer user_data)
void dbus_set_osso (osso_context_t *osso)
 dbus_set_osso: : osso context to get connections from.
DBusConnection * get_dbus_connection (DBusBusType type)
 get_dbus_connection: DBUS_BUS_SESSION for session bus or DBUS_TYPE_SYSTEM for system bus.


Typedef Documentation

typedef void(* DBusNameNotifyCb)(gpointer user_data)
 

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

Callback to be called when a watched name changes owner.

Definition at line 43 of file rpc-dbus.h.


Function Documentation

void dbus_do_call DBusConnection *  bus,
DBusMessage **  reply,
gboolean  activation,
const gchar *  service,
const gchar *  path,
const gchar *  interface,
const gchar *  name,
int  first_arg_type,
  ...
 

Definition at line 47 of file rpc-dbus.c.

Referenced by _alarmd_action_dbus_do_action(), _close_dialog(), _display_icon(), _ic_get_connected_bus(), _queue_changed(), _resend_message(), mce_request_powerup(), mce_request_shutdown(), mce_set_alarm_visibility(), statusbar_hide_icon(), statusbar_show_icon(), and systemui_is_acting_dead().

void dbus_set_osso osso_context_t *  osso  ) 
 

dbus_set_osso: : osso context to get connections from.

Sets a singleton osso context that is used to get dbus connections wherever they are needed, See get_dbus_connection.

Definition at line 206 of file rpc-dbus.c.

References _osso.

Referenced by main().

void dbus_unwatch_name const gchar *  name,
DBusNameNotifyCb  cb,
gpointer  user_data
 

Definition at line 133 of file rpc-dbus.c.

References _service_started(), _DBusNameNotify::cb, _DBusNameNotify::match, _DBusNameNotify::name, notify_mutex, service_notifies, system_bus, and _DBusNameNotify::user_data.

Referenced by _alarmd_action_dialog_finalize().

void dbus_watch_name const gchar *  name,
DBusNameNotifyCb  cb,
gpointer  user_data
 

Definition at line 99 of file rpc-dbus.c.

References _service_started(), _DBusNameNotify::cb, get_dbus_connection(), _DBusNameNotify::match, _DBusNameNotify::name, notify_mutex, service_notifies, SERVICE_STARTED_SIGNAL, system_bus, and _DBusNameNotify::user_data.

Referenced by _alarmd_action_dialog_real_run().

DBusConnection* get_dbus_connection DBusBusType  type  ) 
 

get_dbus_connection: DBUS_BUS_SESSION for session bus or DBUS_TYPE_SYSTEM for system bus.

Gets system or session bus from the osso context registered with dbus_set_osso. dbus_set_osso _must_ be called before this can be called. Returns: A dbus connection to the bus specified by . Callers owns a reference, unref with dbus_connection_unref.

Definition at line 210 of file rpc-dbus.c.

References _osso, and conn.

Referenced by _alarmd_action_dbus_do_action(), _alarmd_action_dialog_powerup(), _alarmd_action_dialog_real_run(), _alarmd_action_dialog_snooze_powerup(), _dbus_connect(), dbus_watch_name(), ic_get_connected(), ic_wait_connection(), statusbar_show_icon(), systemui_is_acting_dead(), and update_mce_alarm_visibility().


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