diff options
| author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-03-13 16:57:12 +0000 | 
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2008-03-13 16:57:12 +0000 | 
| commit | dfad08e334136022c3918d6247823e7a79ca899f (patch) | |
| tree | 3fbf62e665167ede0389d552f054fbc5d7dc145d /hcid/dbus-error.c | |
| parent | b631c83b6e8c324d7bca97b4dbda9bb93a62d653 (diff) | |
Move error_unknown_method to libhelper.
Diffstat (limited to 'hcid/dbus-error.c')
| -rw-r--r-- | hcid/dbus-error.c | 15 | 
1 files changed, 0 insertions, 15 deletions
| diff --git a/hcid/dbus-error.c b/hcid/dbus-error.c index e350ec9c..66fb2490 100644 --- a/hcid/dbus-error.c +++ b/hcid/dbus-error.c @@ -45,21 +45,6 @@ DBusHandlerResult error_not_ready(DBusConnection *conn, DBusMessage *msg)  		dbus_message_new_error(msg, ERROR_INTERFACE ".NotReady", "Adapter is not ready"));  } -DBusHandlerResult error_unknown_method(DBusConnection *conn, DBusMessage *msg) -{ -	char error[128]; -	const char *signature = dbus_message_get_signature(msg); -	const char *method = dbus_message_get_member(msg); -	const char *interface = dbus_message_get_interface(msg); - -	snprintf(error, 128, "Method \"%s\" with signature \"%s\" on interface \"%s\" doesn't exist", -			method, signature, interface); - -	return send_message_and_unref(conn, -		dbus_message_new_error(msg, ERROR_INTERFACE ".UnknownMethod", -							error)); -} -  DBusHandlerResult error_not_authorized(DBusConnection *conn, DBusMessage *msg)  {  	return send_message_and_unref(conn, | 
