diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-07-28 19:11:32 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-07-29 12:26:05 -0500 |
commit | 00fb6cce6285d02b32ae17d02e984c511a810c14 (patch) | |
tree | 22e59c75a22ad6a3330207f183d7726188ce8d68 /src/dbus-gsm.h | |
parent | 5cd850304c60ce1011f8a53c9efdab0fca02dbc4 (diff) | |
download | ofono-00fb6cce6285d02b32ae17d02e984c511a810c14.tar.bz2 |
Rename dbus_gsm error functions to __ofono_error
Diffstat (limited to 'src/dbus-gsm.h')
-rw-r--r-- | src/dbus-gsm.h | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/src/dbus-gsm.h b/src/dbus-gsm.h index c12157e1..c24b52cb 100644 --- a/src/dbus-gsm.h +++ b/src/dbus-gsm.h @@ -51,67 +51,6 @@ int dbus_gsm_signal_array_property_changed(DBusConnection *conn, const char *name, int type, void *value); -#define DBUS_GSM_ERROR_INTERFACE "org.ofono.Error" - -static inline DBusMessage *dbus_gsm_invalid_args(DBusMessage *msg) -{ - return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE - ".InvalidArguments", - "Invalid arguments in method call"); -} - -static inline DBusMessage *dbus_gsm_invalid_format(DBusMessage *msg) -{ - return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE - ".InvalidFormat", - "Argument format is not recognized"); -} - -static inline DBusMessage *dbus_gsm_not_implemented(DBusMessage *msg) -{ - return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE - ".NotImplemented", - "Implementation not provided"); -} - -static inline DBusMessage *dbus_gsm_failed(DBusMessage *msg) -{ - return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE ".Failed", - "Operation failed"); -} - -static inline DBusMessage *dbus_gsm_busy(DBusMessage *msg) -{ - return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE ".InProgress", - "Operation already in progress"); -} - -static inline DBusMessage *dbus_gsm_not_found(DBusMessage *msg) -{ - return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE ".NotFound", - "Object is not found or not valid for this operation"); -} - -static inline DBusMessage *dbus_gsm_not_active(DBusMessage *msg) -{ - return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE ".NotActive", - "Operation is not active or in progress"); -} - -static inline DBusMessage *dbus_gsm_not_supported(DBusMessage *msg) -{ - return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE - ".NotSupported", - "Operation is not supported by the" - " network / modem"); -} - -static inline DBusMessage *dbus_gsm_timed_out(DBusMessage *msg) -{ - return g_dbus_create_error(msg, DBUS_GSM_ERROR_INTERFACE ".Timedout", - "Operation failure due to timeout"); -} - static inline void dbus_gsm_pending_reply(DBusMessage **msg, DBusMessage *reply) { DBusConnection *conn = ofono_dbus_get_connection(); |