Mercurial > pidgin
comparison plugins/gevolution/gevolution.h @ 9354:a5ec9e73f46d
[gaim-migrate @ 10162]
Because the Evolution project doesn't bump their version numbers until just
before release, and they broke backwards-compatibility since the last
evolution-data-server release in the header files, those people using
0.0.95cvs are going to not be able to compile gevolution until 0.0.95 comes
out, or unless they comment out the #include <libebook/e-book-async.h> in
gevolution.h. The code I added here centralizes the include files a bit
more, and checks if we're using 0.0.95 or not. The Evo guys are releasing
hopefully next week or the week after, I think, so that should take care of
it.
committer: Tailor Script <tailor@pidgin.im>
| author | Christian Hammond <chipx86@chipx86.com> |
|---|---|
| date | Tue, 22 Jun 2004 22:42:10 +0000 |
| parents | c307cf4c84d2 |
| children | 7a149eac59a3 |
comparison
equal
deleted
inserted
replaced
| 9353:b8138f3959dc | 9354:a5ec9e73f46d |
|---|---|
| 23 | 23 |
| 24 #ifdef HAVE_CONFIG_H | 24 #ifdef HAVE_CONFIG_H |
| 25 # include "config.h" | 25 # include "config.h" |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 #define EBOOK_CHECK_VERSION(major, minor, micro) \ | |
| 29 (LIBEBOOK_MAJOR_VER > (major) || \ | |
| 30 (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER > (minor)) || \ | |
| 31 (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER == (minor) && \ | |
| 32 LIBEBOOK_MICRO_VER >= (micro))) | |
| 33 | |
| 28 #include <libebook/e-book.h> | 34 #include <libebook/e-book.h> |
| 35 | |
| 36 #if !EBOOK_CHECK_VERSION(0, 0, 95) | |
| 37 # include <libebook/e-book-async.h> | |
| 38 #endif | |
| 29 | 39 |
| 30 typedef struct | 40 typedef struct |
| 31 { | 41 { |
| 32 GaimAccount *account; | 42 GaimAccount *account; |
| 33 char *username; | 43 char *username; |
| 85 | 95 |
| 86 GList *contacts; | 96 GList *contacts; |
| 87 | 97 |
| 88 } GevoAssociateBuddyDialog; | 98 } GevoAssociateBuddyDialog; |
| 89 | 99 |
| 90 #define EBOOK_CHECK_VERSION(major, minor, micro) \ | |
| 91 (LIBEBOOK_MAJOR_VER > (major) || \ | |
| 92 (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER > (minor)) || \ | |
| 93 (LIBEBOOK_MAJOR_VER == (major) && LIBEBOOK_MINOR_VER == (minor) && \ | |
| 94 LIBEBOOK_MICRO_VER >= (micro))) | |
| 95 | |
| 96 void gevo_add_buddy_dialog_show(GaimAccount *account, const char *username, | 100 void gevo_add_buddy_dialog_show(GaimAccount *account, const char *username, |
| 97 const char *group, const char *alias); | 101 const char *group, const char *alias); |
| 98 void gevo_add_buddy_dialog_add_person(GevoAddBuddyDialog *dialog, | 102 void gevo_add_buddy_dialog_add_person(GevoAddBuddyDialog *dialog, |
| 99 EContact *contact, | 103 EContact *contact, |
| 100 const char *name, GaimAccount *account, | 104 const char *name, GaimAccount *account, |
