diff options
| author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-03-27 21:30:35 +0000 | 
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-03-27 21:30:35 +0000 | 
| commit | 580d52c4b07c5e44b17e7d0189e7d84f4a7667fb (patch) | |
| tree | e73bd6f478c4553f745191ef00e4b849aa47981c | |
| parent | 9691f47c9f858b4ae512e6d3b78bd1bb398bec06 (diff) | |
Add err_not_supported.
| -rw-r--r-- | network/error.c | 8 | ||||
| -rw-r--r-- | network/error.h | 1 | 
2 files changed, 9 insertions, 0 deletions
| diff --git a/network/error.c b/network/error.c index 87829dea..684bda2a 100644 --- a/network/error.c +++ b/network/error.c @@ -70,3 +70,11 @@ DBusHandlerResult err_invalid_args(DBusConnection *conn,  			dbus_message_new_error(msg,  				NETWORK_ERROR_INTERFACE ".InvalidArguments", str));  } + +DBusHandlerResult err_not_supported(DBusConnection *conn, DBusMessage *msg) +{ +	return send_message_and_unref(conn, +			dbus_message_new_error(msg, +			NETWORK_ERROR_INTERFACE ".NotSupported", +			"The service is not supported by the remote device")); +} diff --git a/network/error.h b/network/error.h index 28ccdb07..44e7690a 100644 --- a/network/error.h +++ b/network/error.h @@ -34,3 +34,4 @@ DBusHandlerResult err_connection_failed(DBusConnection *conn,  DBusHandlerResult err_invalid_args(DBusConnection *conn,  					DBusMessage *msg, const char *str); +DBusHandlerResult err_not_supported(DBusConnection *conn, DBusMessage *msg); | 
