Re: [Evolution-hackers] DBus port of EDS
- From: Ross Burton <ross burtonini com>
- To: Gilles Dartiguelongue <dartigug esiee fr>
- Cc: evolution-hackers lists ximian com
- Subject: Re: [Evolution-hackers] DBus port of EDS
- Date: Thu, 11 Aug 2005 14:20:31 +0100
On Wed, 2005-08-10 at 23:23 +0200, Gilles Dartiguelongue wrote:
> Maybe we should use a configure time defined DEFINE directive. You know,
> something like :
> #ifdef _DBUS_API
> ...
> or shall I go back studying ?
There is a define already exposed, WITH_DBUS. But using that to solve
this problem means that instead of a single include every C file has to
do this:
#if WITH_DBUS
#include <libebook-dbus/e-book.h>
#else
#include <libebook/e-book.h>
#endif
It's just as bad in the Makefiles
if WITH_DBUS
test_LDADD = $top_srcdir/addressbook/libebook-dbus/libebook.la
else
test_LDADD = $top_srcdir/addressbook/libebook/libebook.la
endif
What I am after is a clean way to avoid all of that nasty selection, as
the API of the two directories is identical.
Ross
--
Ross Burton mail: ross burtonini com
jabber: ross burtonini com
www: http://www.burtonini.com./
PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]