diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-12-18 05:09:59 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-19 03:49:11 +0100 |
commit | 95ffb025769ef1d9f1e8df39870b412b9aac68fe (patch) | |
tree | 2bc8ce67836559804837816d2c9ad3b48b3b5edb /gdbus/gdbus.h | |
parent | 02b2ca520d2a707901c65de056a2fde0117b07c6 (diff) | |
download | connman-95ffb025769ef1d9f1e8df39870b412b9aac68fe.tar.gz connman-95ffb025769ef1d9f1e8df39870b412b9aac68fe.tar.bz2 connman-95ffb025769ef1d9f1e8df39870b412b9aac68fe.zip |
gdbus: Add helper for sending async error replies
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r-- | gdbus/gdbus.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 5f1209f3..0e5c0126 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -222,6 +222,12 @@ DBusMessage *g_dbus_create_reply_valist(DBusMessage *message, int type, va_list args); gboolean g_dbus_send_message(DBusConnection *connection, DBusMessage *message); +gboolean g_dbus_send_error(DBusConnection *connection, DBusMessage *message, + const char *name, const char *format, ...) + __attribute__((format(printf, 4, 5))); +gboolean g_dbus_send_error_valist(DBusConnection *connection, + DBusMessage *message, const char *name, + const char *format, va_list args); gboolean g_dbus_send_reply(DBusConnection *connection, DBusMessage *message, int type, ...); gboolean g_dbus_send_reply_valist(DBusConnection *connection, |