summaryrefslogtreecommitdiffstats
path: root/glib
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-08-12 02:43:50 +0000
committerHavoc Pennington <hp@redhat.com>2003-08-12 02:43:50 +0000
commit5c1a8e44903bd1dedc8cbefad78b0c8b61daada5 (patch)
tree4e05f33dd7160a0522745e46d14b34f798e188a8 /glib
parentb29ea9115ea3277354b7ccbe442026279220f4ac (diff)
2003-08-11 Havoc Pennington <hp@pobox.com>
* bus/test.c (client_disconnect_handler): change to return HANDLED (would have been REMOVE_MESSAGE) * dbus/dbus-object.h (enum DBusHandlerResult): rename to HANDLED/NOT_YET_HANDLED instead of REMOVE_MESSAGE/ALLOW_MORE_HANDLERS to make it clearer how it should be used.
Diffstat (limited to 'glib')
-rw-r--r--glib/test-profile.c6
-rw-r--r--glib/test-thread-server.c10
2 files changed, 9 insertions, 7 deletions
diff --git a/glib/test-profile.c b/glib/test-profile.c
index 6d13e32f..852bd091 100644
--- a/glib/test-profile.c
+++ b/glib/test-profile.c
@@ -76,9 +76,10 @@ client_filter (DBusMessageHandler *handler,
exit (0);
}
send_echo_message (connection);
+ return DBUS_HANDLER_RESULT_HANDLED;
}
- return DBUS_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
+ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
static void*
@@ -147,9 +148,10 @@ server_filter (DBusMessageHandler *handler,
ECHO_MESSAGE))
{
send_echo_message (connection);
+ return DBUS_HANDLER_RESULT_HANDLED;
}
- return DBUS_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
+ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
static void
diff --git a/glib/test-thread-server.c b/glib/test-thread-server.c
index 4cc886fd..3ad1f907 100644
--- a/glib/test-thread-server.c
+++ b/glib/test-thread-server.c
@@ -44,7 +44,7 @@ handle_test_message (DBusMessageHandler *handler,
int i;
if (!dbus_message_has_name (message, "org.freedesktop.ThreadTest"))
- return DBUS_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
+ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
dbus_message_iter_init (message, &iter);
@@ -127,7 +127,7 @@ handle_test_message (DBusMessageHandler *handler,
g_string_free (counter_str, TRUE);
out:
- return DBUS_HANDLER_RESULT_REMOVE_MESSAGE;
+ return DBUS_HANDLER_RESULT_HANDLED;
}
static DBusHandlerResult
@@ -136,7 +136,7 @@ handle_filter (DBusMessageHandler *handler,
DBusMessage *message,
void *user_data)
{
- return DBUS_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
+ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
static DBusHandlerResult
@@ -146,12 +146,12 @@ handle_disconnect (DBusMessageHandler *handler,
void *user_data)
{
if (!dbus_message_has_name (message, DBUS_MESSAGE_LOCAL_DISCONNECT))
- return DBUS_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
+ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
g_print ("connection disconnected\n");
dbus_connection_unref (connection);
- return DBUS_HANDLER_RESULT_REMOVE_MESSAGE;
+ return DBUS_HANDLER_RESULT_HANDLED;
}
static void