Emeric Vigier | 2f62582 | 2012-08-06 11:09:52 -0400 | [diff] [blame] | 1 | #ifndef TEST_UTILS_H |
| 2 | #define TEST_UTILS_H |
| 3 | #ifndef DBUS_COMPILATION |
| 4 | #define DBUS_COMPILATION /* Cheat and use private stuff */ |
| 5 | #endif |
| 6 | #include <dbus/dbus.h> |
| 7 | #include <stdio.h> |
| 8 | #include <stdlib.h> |
| 9 | #include <dbus/dbus-mainloop.h> |
| 10 | #include <dbus/dbus-internals.h> |
| 11 | #undef DBUS_COMPILATION |
| 12 | |
| 13 | dbus_bool_t test_connection_setup (DBusLoop *loop, |
| 14 | DBusConnection *connection); |
| 15 | void test_connection_shutdown (DBusLoop *loop, |
| 16 | DBusConnection *connection); |
| 17 | void test_connection_dispatch_all_messages (DBusConnection *connection); |
| 18 | dbus_bool_t test_connection_dispatch_one_message (DBusConnection *connection); |
| 19 | |
| 20 | dbus_bool_t test_server_setup (DBusLoop *loop, |
| 21 | DBusServer *server); |
| 22 | void test_server_shutdown (DBusLoop *loop, |
| 23 | DBusServer *server); |
| 24 | |
| 25 | #endif |