Mercurial > pidgin
diff src/protocols/silc/silcgaim.h @ 12217:029802981b81
[gaim-migrate @ 14519]
SILC IM Image and cipher selection support from Pekka Riikonen.
Modified by me so the SILC prpl continues to work with SILC Toolkit < 1.0.1,
but without images. Any breakage is my fault.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Thu, 24 Nov 2005 21:07:12 +0000 |
parents | 4d3119205a33 |
children | fc464a0abccc |
line wrap: on
line diff
--- a/src/protocols/silc/silcgaim.h Thu Nov 24 20:47:46 2005 +0000 +++ b/src/protocols/silc/silcgaim.h Thu Nov 24 21:07:12 2005 +0000 @@ -75,7 +75,9 @@ char *motd; GaimRoomlist *roomlist; - +#ifdef HAVE_SILCMIME_H + SilcMimeAssembler mimeass; +#endif unsigned int detaching : 1; unsigned int resuming : 1; unsigned int roomlist_canceled : 1; @@ -133,8 +135,7 @@ void silcgaim_chat_invite(GaimConnection *gc, int id, const char *msg, const char *name); void silcgaim_chat_leave(GaimConnection *gc, int id); -int silcgaim_chat_send(GaimConnection *gc, int id, const char *msg, - GaimMessageFlags flags); +int silcgaim_chat_send(GaimConnection *gc, int id, const char *msg, GaimMessageFlags flags); void silcgaim_chat_set_topic(GaimConnection *gc, int id, const char *topic); GaimRoomlist *silcgaim_roomlist_get_list(GaimConnection *gc); void silcgaim_roomlist_cancel(GaimRoomlist *list); @@ -143,6 +144,10 @@ void silcgaim_parse_attrs(SilcDList attrs, char **moodstr, char **statusstr, char **contactstr, char **langstr, char **devicestr, char **tzstr, char **geostr); +#ifdef HAVE_SILCMIME_H +char *silcgaim_file2mime(const char *filename); +SilcDList silcgaim_image_message(const char *msg, SilcUInt32 *mflags); +#endif #ifdef _WIN32 typedef int uid_t;