dbus/test test-service.c,1.20,1.21
Havoc Pennington
hp at freedesktop.org
Sun Apr 24 07:04:18 PDT 2005
- Previous message: dbus ChangeLog,1.760,1.761
- Next message: dbus/dbus dbus-connection.c, 1.104, 1.105 dbus-connection.h, 1.36,
1.37 dbus-message.c, 1.167, 1.168 dbus-object-tree.c, 1.16,
1.17 dbus-object-tree.h, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/dbus/dbus/test
In directory gabe:/tmp/cvs-serv10649/test
Modified Files:
test-service.c
Log Message:
2005-04-23 Havoc Pennington <hp at redhat.com>
* dbus/dbus-message.c (dbus_message_append_args): fix doc comment,
reported by Tony Houghton
* test/test-service.c (main): test
dbus_connection_get_object_path_data()
* dbus/dbus-object-tree.c (find_handler): be sure we always init
the exact_match
(_dbus_object_tree_get_user_data_unlocked): new function used by
dbus_connection_get_object_path_data()
(do_register): add assertion test for get_user_data_unlocked
(object_tree_test_iteration): more tests
* dbus/dbus-connection.c (dbus_connection_get_object_path_data):
new function from Dan Reed to let you get the user data from
dbus_connection_register_object_path()
Index: test-service.c
===================================================================
RCS file: /cvs/dbus/dbus/test/test-service.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- test-service.c 17 Feb 2005 21:19:48 -0000 1.20
+++ test-service.c 24 Apr 2005 14:04:16 -0000 1.21
@@ -188,9 +188,17 @@
if (!dbus_connection_register_object_path (connection,
echo_path,
&echo_vtable,
- NULL))
+ (void*) 0xdeadbeef))
die ("No memory");
+ {
+ void *d;
+ if (!dbus_connection_get_object_path_data (connection, echo_path, &d))
+ die ("No memory");
+ if (d != (void*) 0xdeadbeef)
+ die ("dbus_connection_get_object_path_data() doesn't seem to work right\n");
+ }
+
result = dbus_bus_request_name (connection, "org.freedesktop.DBus.TestSuiteEchoService",
0, &error);
if (dbus_error_is_set (&error))
- Previous message: dbus ChangeLog,1.760,1.761
- Next message: dbus/dbus dbus-connection.c, 1.104, 1.105 dbus-connection.h, 1.36,
1.37 dbus-message.c, 1.167, 1.168 dbus-object-tree.c, 1.16,
1.17 dbus-object-tree.h, 1.7, 1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dbus-commit
mailing list