From: Marcel Holtmann Date: Wed, 22 Apr 2009 19:07:50 +0000 (+0100) Subject: Add helper function for no carrier error messages X-Git-Tag: 0.16~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e8dfd85cc5f5c8a46fd3e4c25637588421a67e1;p=platform%2Fupstream%2Fconnman.git Add helper function for no carrier error messages --- diff --git a/src/connman.h b/src/connman.h index e13c3de..f2c26ae 100644 --- a/src/connman.h +++ b/src/connman.h @@ -37,6 +37,7 @@ DBusMessage *__connman_error_invalid_arguments(DBusMessage *msg); 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); int __connman_selftest(void); diff --git a/src/error.c b/src/error.c index 1668a41..f8f6fdc 100644 --- a/src/error.c +++ b/src/error.c @@ -56,3 +56,9 @@ DBusMessage *__connman_error_not_implemented(DBusMessage *msg) return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE ".NotImplemented", NULL); } + +DBusMessage *__connman_error_no_carrier(DBusMessage *msg) +{ + return g_dbus_create_error(msg, CONNMAN_ERROR_INTERFACE + ".NoCarrier", NULL); +}