Midgard2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
MidgardDbus; struct MidgardDbusClass; MidgardDbus * midgard_dbus_new (MidgardConnection *mgd
,const gchar *path
,gboolean use_session
); gboolean midgard_dbus_is_enabled (void
); MidgardDbus * midgard_dbus_create_dbus (MidgardConnection *mgd
,const gchar *path
,gboolean use_session
); void midgard_dbus_send (MidgardConnection *mgd
,const gchar *path
,const gchar *message
,gboolean use_session
); const gchar * midgard_dbus_get_message (MidgardDbus *self
);
struct MidgardDbusClass { GObjectClass parent; /* signals */ void (*notified) (GObject *self, const gchar *message); /* signals id */ guint signal_notified; };
MidgardDbus * midgard_dbus_new (MidgardConnection *mgd
,const gchar *path
,gboolean use_session
);
use_session
, set to FALSE for session bus, TRUE for system one
|
MidgardConnection instance |
|
a path at which D-Bus object exists |
|
whether to use session bus |
Returns : |
new MidgardDbus instance, NULL otherwise |
MidgardDbus * midgard_dbus_create_dbus (MidgardConnection *mgd
,const gchar *path
,gboolean use_session
);
Constructor. Invokes midgard_dbus_new()
.
This function is added for language bindings, in which, midgard_dbus_new can not be
invoked explicitly.
Returns : |
MidgardDbus instance. [transfer full] |
Since 10.05.1
void midgard_dbus_send (MidgardConnection *mgd
,const gchar *path
,const gchar *message
,gboolean use_session
);
Emits 'Notified' signal on objects at given path
and sends given message.
|
MidgardConnection instance |
|
dbus path at which we expect recipients |
|
a message to be sent |
|
whether to use system or session bus |
const gchar * midgard_dbus_get_message (MidgardDbus *self
);
Get message associated with givven instance.
|
MidgardDBus instance |
Returns : |
pointer to object's message or NULL
|
"notified"
signalvoid user_function (MidgardDbus *midgarddbus,
gchar *arg1,
gpointer user_data) : No Hooks
|
the object which received the signal. |
|
user data set when the signal handler was connected. |