# HG changeset patch # User Jeffrey Connelly # Date 1187151756 0 # Node ID d7eea5c20cf95fff947d2a652b1dc00b3323d191 # Parent b29788c6d269b3f0f56a111fe154df031a2bf617 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. diff -r b29788c6d269 -r d7eea5c20cf9 libpurple/protocols/myspace/myspace.h --- 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);