diff options
author | Vsevolod Buzinov <ext-vsevolod.buzinov@nokia.com> | 2010-08-31 17:04:40 +0300 |
---|---|---|
committer | Vsevolod Buzinov <ext-vsevolod.buzinov@nokia.com> | 2010-08-31 17:04:40 +0300 |
commit | f2d801cbb8aa97384cc8a2debbbc55b9678c5539 (patch) | |
tree | bef344533b86405685a176198f03a0c73b3a1698 /tests | |
parent | 6f6362a25527edd2f783962bfdbb7ea52a7b1925 (diff) | |
parent | fd1b37800f294592d6f2ecc1b6f0c915b0a0cdfd (diff) |
Resolved conflict w/ security additions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/resource-test.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/resource-test.c b/tests/resource-test.c index 60b2e3a..93ab6aa 100644 --- a/tests/resource-test.c +++ b/tests/resource-test.c @@ -1,3 +1,25 @@ +/************************************************************************* +This file is part of libresource + +Copyright (C) 2010 Nokia Corporation. + +This library is free software; you can redistribute +it and/or modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation +version 2.1 of the License. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 +USA. +*************************************************************************/ + + #include <dbus/dbus.h> #include <check.h> #include <stdlib.h> @@ -362,7 +384,11 @@ int resproto_send_message(resset_t *rset, DBusConnection *resource_get_dbus_bus(DBusBusType type, DBusError *err) { +#ifdef APPROXIMATE_DBUS_WITH_C0FFEE return (DBusConnection *) 0xC0FFEE; +#else + return dbus_bus_get(type, err); +#endif } resproto_handler_t handlers[3]; |