dbus functions

http://maemo.org/api_refs/5.0/5.0-final/dbus-glib_2/group__DBusGLibInternals.html

1. dbus_g_proxy_connect_signal

void dbus_g_proxy_connect_signal ( DBusGProxy *  proxy,
    const char *  signal_name,
    GCallback  handler,
    void *  data,
    GClosureNotify  free_data_func  
  )      

dbus_g_proxy_connect_signal: : a proxy for a remote interface :

the DBus signal name to listen for :

the handler to connect :

data to pass to handler :

callback function to destroy data

Connect a signal handler to a proxy for a remote interface. When the remote interface emits the specified signal, the proxy will emit a corresponding GLib signal.

Definition at line 2972 of file dbus-gproxy.c.

 

2. dbus_g_proxy_new_for_peer

DBusGProxy* dbus_g_proxy_new_for_peer ( DBusGConnection *  connection,
    const char *  path_name,
    const char *  interface_name  
  )  

dbus_g_proxy_new_for_peer: : the connection to the peer : name of the object inside the peer to call methods on : name of the interface to call methods on

Creates a proxy for an object in peer application (one we're directly connected to). That is, this function is intended for use when there's no message bus involved, we're doing a simple 1-to-1 communication between two applications.

Returns: new proxy object

Definition at line 2140 of file dbus-gproxy.c.

 

3.

 

posted @ 2011-12-07 13:54  alxe_yu  阅读(183)  评论(0)    收藏  举报