diff options
author | Federico Mena Quintero <federico@gnome.org> | 2022-07-07 12:50:07 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2022-07-07 14:01:30 -0500 |
commit | eb0da4f9f456a64d48519ddaee66aca7d72d1ac8 (patch) | |
tree | 32e0c41300e2082e9907d3f4ad4d9788220c1e4c /dbind | |
parent | 5f82518cab2f360b381bdd105c4b46f3dde2c469 (diff) | |
download | at-spi2-core-eb0da4f9f456a64d48519ddaee66aca7d72d1ac8.tar.gz |
Remove test for Novell.ICEDesktop.Daemon
I have no idea what that even was :)
Diffstat (limited to 'dbind')
-rw-r--r-- | dbind/dbtest.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/dbind/dbtest.c b/dbind/dbtest.c index 511839c3..d4f56906 100644 --- a/dbind/dbtest.c +++ b/dbind/dbtest.c @@ -22,11 +22,6 @@ #include <string.h> #include <dbind/dbind.h> -/* Wow! dbus is unpleasant to use */ - -#define DESKICE_PATH "/Novell/ICEDesktop/Daemon" -#define DESKICE_NAMESPACE "Novell.ICEDesktop.Daemon" - void marshal (DBusMessage *msg, const char *type, void *ptr) { DBusMessageIter iter; @@ -361,45 +356,6 @@ void test_marshalling () printf ("Marshalling ok\n"); } -void test_teamspaces (DBusConnection *bus) -{ - GArray *spaces; - DBusError error; - int i; - typedef struct { - char *name; - char *id; - char *url; - } TeamSpace; - - dbus_error_init (&error); - if (!dbind_method_call_reentrant (bus, - NULL, - DESKICE_PATH, - DESKICE_NAMESPACE, - "GetTeamList", - &error, - "=>a(sss)", - &spaces)) { - fprintf (stderr, "Error getting team spaces %s: %s\n", - error.name, error.message); - dbus_error_free (&error); - return; - } - - if (!spaces) { - fprintf (stderr, "no teamspaces\n"); - return; - } - fprintf (stderr, "%d teamspace(s)\n", spaces->len); - for (i = 0; i < spaces->len; i++) { - TeamSpace *space = &g_array_index (spaces, TeamSpace, i); - fprintf (stderr, "\t%d: %s, %s, %s\n", i, space->name, space->id, space->url); - } - - dbind_any_free_ptr ("a(sss)", spaces); -} - void test_helpers () { dbind_find_c_alignment ("(sss)"); @@ -417,7 +373,6 @@ int main (int argc, char **argv) test_helpers (); test_marshalling (); - test_teamspaces (bus); return 0; } |