blob: 3e1e55e6616d1acdba7cd104198a078ce010640e [file] [log] [blame]
Emeric Vigier2f625822012-08-06 11:09:52 -04001#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
13dbus_bool_t test_connection_setup (DBusLoop *loop,
14 DBusConnection *connection);
15void test_connection_shutdown (DBusLoop *loop,
16 DBusConnection *connection);
17void test_connection_dispatch_all_messages (DBusConnection *connection);
18dbus_bool_t test_connection_dispatch_one_message (DBusConnection *connection);
19
20dbus_bool_t test_server_setup (DBusLoop *loop,
21 DBusServer *server);
22void test_server_shutdown (DBusLoop *loop,
23 DBusServer *server);
24
25#endif