Mercurial > pidgin.yaz
changeset 19245:d7eea5c20cf9
If the attention API is being used, then redefine our attention type
as Purple's. This allows msimprpl to compile with the patch at
http://msimprpl.darkthoughts.net/attention1.diff applied, and
MSIM_USE_ATTENTION_API defined.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Wed, 15 Aug 2007 04:22:36 +0000 |
parents | b29788c6d269 |
children | 335ebd202a7d |
files | libpurple/protocols/myspace/myspace.h |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.h Tue Aug 14 03:03:52 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.h Wed Aug 15 04:22:36 2007 +0000 @@ -69,7 +69,7 @@ /* Use the attention API for zaps? */ /* Can't have until >=2.2.0, since is a new API. */ -/*#define MSIM_USE_ATTENTION_API */ +#define MSIM_USE_ATTENTION_API /* Constants */ @@ -226,6 +226,9 @@ } MsimUser; +#ifdef MSIM_USE_ATTENTION_API +#define MsimAttentionType PurpleAttentionType +#else /* Different kinds of attention alerts. Not yet in libpurple, so define * our own structure here. */ typedef struct _MsimAttentionType MsimAttentionType; @@ -238,6 +241,7 @@ const gchar *incoming_description; /**< Shown when sent. */ const gchar *outgoing_description; /**< Shown when received. */ }; +#endif gchar *str_replace(const gchar *str, const gchar *old, const gchar *new);