31
|
1 |
/*
|
|
2 |
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef TEST_UTILS_H
|
|
19 |
#define TEST_UTILS_H
|
|
20 |
#ifndef __SYMBIAN32__
|
|
21 |
#include <config.h>
|
|
22 |
#else
|
|
23 |
#include "config.h"
|
|
24 |
#endif //__SYMBIAN32__
|
|
25 |
#define DBUS_COMPILATION /* Cheat and use private stuff */
|
|
26 |
#include <dbus/dbus.h>
|
|
27 |
#include <stdio.h>
|
|
28 |
#include <stdlib.h>
|
|
29 |
#ifndef __SYMBIAN32__
|
|
30 |
#include <dbus/dbus-mainloop.h>
|
|
31 |
#include <dbus/dbus-internals.h>
|
|
32 |
#else
|
|
33 |
#include "dbus-mainloop.h"
|
|
34 |
#include "dbus-internals.h"
|
|
35 |
#endif //__SYMBIAN32__
|
|
36 |
#undef DBUS_COMPILATION
|
|
37 |
|
|
38 |
dbus_bool_t test_connection_setup (DBusLoop *loop,
|
|
39 |
DBusConnection *connection);
|
|
40 |
void test_connection_shutdown (DBusLoop *loop,
|
|
41 |
DBusConnection *connection);
|
|
42 |
void test_connection_dispatch_all_messages (DBusConnection *connection);
|
|
43 |
dbus_bool_t test_connection_dispatch_one_message (DBusConnection *connection);
|
|
44 |
|
|
45 |
|
|
46 |
#endif
|