Mercurial > pidgin
changeset 23771:d5d3efbfcf30
Fix some compilation problems when USE_FARSIGHT isn't defined.
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sat, 29 Dec 2007 17:45:47 +0000 |
parents | b20e24fcae47 |
children | def0d893e737 |
files | libpurple/protocols/jabber/jabber.c libpurple/protocols/jabber/jabber.h libpurple/protocols/jabber/libxmpp.c libpurple/prpl.h |
diffstat | 4 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Sat Dec 29 06:41:04 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sat Dec 29 17:45:47 2007 +0000 @@ -2320,10 +2320,12 @@ return TRUE; } +#ifdef USE_FARSIGHT PurpleMedia *jabber_media_initiate(PurpleConnection *gc, const char *who, PurpleMediaStreamType type) { return NULL; } +#endif void jabber_register_commands(void) {
--- a/libpurple/protocols/jabber/jabber.h Sat Dec 29 06:41:04 2007 +0000 +++ b/libpurple/protocols/jabber/jabber.h Sat Dec 29 17:45:47 2007 +0000 @@ -55,6 +55,7 @@ #include "dnssrv.h" #include "roomlist.h" #include "sslconn.h" +#include "media.h" #include "jutil.h" #include "xmlnode.h" @@ -259,5 +260,9 @@ GList *jabber_actions(PurplePlugin *plugin, gpointer context); void jabber_register_commands(void); void jabber_init_plugin(PurplePlugin *plugin); + +#ifdef USE_FARSIGHT PurpleMedia *jabber_media_initiate(PurpleConnection *gc, const char *who, PurpleMediaStreamType type); +#endif + #endif /* _PURPLE_JABBER_H_ */
--- a/libpurple/protocols/jabber/libxmpp.c Sat Dec 29 06:41:04 2007 +0000 +++ b/libpurple/protocols/jabber/libxmpp.c Sat Dec 29 17:45:47 2007 +0000 @@ -115,7 +115,11 @@ jabber_unregister_account, /* unregister_user */ jabber_send_attention, /* send_attention */ jabber_attention_types, /* attention_types */ +#ifdef USE_FARSIGHT jabber_media_initiate /* initiate_media */ +#else + NULL /* initiate_media */ +#endif }; static gboolean load_plugin(PurplePlugin *plugin)
--- a/libpurple/prpl.h Sat Dec 29 06:41:04 2007 +0000 +++ b/libpurple/prpl.h Sat Dec 29 17:45:47 2007 +0000 @@ -404,7 +404,7 @@ #ifdef USE_FARSIGHT PurpleMedia *(*initiate_media)(PurpleConnection *conn, const char *who, PurpleMediaStreamType type); #else - void (*initiate_media)(void) + void (*initiate_media)(void); #endif /* Make sure you do not try to dereference anything past struct_size! */ int struct_size;