[gnome-bluetooth/gnome-2-28] Add error callback, still to implement
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth/gnome-2-28] Add error callback, still to implement
- Date: Mon, 14 Dec 2009 16:29:11 +0000 (UTC)
commit 0f36340471ebeb364e54c0d02a5941cfcad38bed
Author: Bastien Nocera <hadess hadess net>
Date: Mon Dec 14 15:05:10 2009 +0000
Add error callback, still to implement
sendto/main.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/sendto/main.c b/sendto/main.c
index bbce98d..d189e5e 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -446,6 +446,18 @@ static gboolean release_callback(DBusGMethodInvocation *context,
return TRUE;
}
+static gboolean error_callback(DBusGMethodInvocation *context,
+ DBusGProxy *transfer,
+ const char *message,
+ gpointer user_data)
+{
+ g_message ("Error message: %s", message);
+
+ dbus_g_method_return(context);
+
+ return TRUE;
+}
+
static void send_notify(DBusGProxy *proxy,
DBusGProxyCall *call, void *user_data)
{
@@ -700,6 +712,7 @@ int main(int argc, char *argv[])
obex_agent_set_request_func(agent, request_callback, NULL);
obex_agent_set_progress_func(agent, progress_callback, NULL);
obex_agent_set_complete_func(agent, complete_callback, NULL);
+ obex_agent_set_error_func(agent, error_callback, NULL);
obex_agent_setup(agent, AGENT_PATH);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]