From e8207227380676aae70045f299c9441d43f5f813 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 13 May 2009 21:10:38 -0700 Subject: [PATCH] Add helper for in progress error messages --- src/connman.h | 1 + src/error.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/connman.h b/src/connman.h index 00a29e4..05b3e89 100644 --- a/src/connman.h +++ b/src/connman.h @@ -38,6 +38,7 @@ DBusMessage *__connman_error_permission_denied(DBusMessage *msg); DBusMessage *__connman_error_not_supported(DBusMessage *msg); DBusMessage *__connman_error_not_implemented(DBusMessage *msg); DBusMessage *__connman_error_no_carrier(DBusMessage *msg); +DBusMessage *__connman_error_in_progress(DBusMessage *msg); int __connman_selftest(void); diff --git a/src/error.c b/src/error.c index 2c361bc..6e99166 100644 --- a/src/error.c +++ b/src/error.c @@ -67,3 +67,10 @@ DBusMessage *__connman_error_no_carrier(DBusMessage *msg) return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE ".NoCarrier", NULL); } + +DBusMessage *__connman_error_in_progress(DBusMessage *msg) +{ + return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE + ".InProgress", NULL); + +} -- 2.7.4