comparison src/server.h @ 12216:4d3119205a33

[gaim-migrate @ 14518] Remove GaimConvImFlags and GaimConvChatFlags - use GaimMessageFlags everywhere instead. Add a new GAIM_MESSAGE_IMAGES flag, and set it when sending a message containing images. When sending a message, the core will now always send "html" to the prpls, just like it expects to receive html from the prpls for received messages. This will allow text prpls such as SILC to support IM images and differentiate them from user input. Previously gaim_unescape_html() was used before passing the message to the prpl, now the prpl does this itself if it needs it. I think I updated all the prpls correctly, but I'm not so sure about sametime. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 24 Nov 2005 20:47:46 +0000
parents e67993da8a22
children 8cecf7929eb3
comparison
equal deleted inserted replaced
12215:31b91bfab029 12216:4d3119205a33
31 31
32 #ifdef __cplusplus 32 #ifdef __cplusplus
33 extern "C" { 33 extern "C" {
34 #endif 34 #endif
35 35
36 int serv_send_im(GaimConnection *, const char *, const char *, GaimConvImFlags); 36 int serv_send_im(GaimConnection *, const char *, const char *, GaimMessageFlags flags);
37 void serv_get_info(GaimConnection *, const char *); 37 void serv_get_info(GaimConnection *, const char *);
38 void serv_set_info(GaimConnection *, const char *); 38 void serv_set_info(GaimConnection *, const char *);
39 int serv_send_typing(GaimConnection *, const char *, int); 39 int serv_send_typing(GaimConnection *, const char *, int);
40 void serv_move_buddy(GaimBuddy *, GaimGroup *, GaimGroup *); 40 void serv_move_buddy(GaimBuddy *, GaimGroup *, GaimGroup *);
41 void serv_add_permit(GaimConnection *, const char *); 41 void serv_add_permit(GaimConnection *, const char *);
46 void serv_join_chat(GaimConnection *, GHashTable *); 46 void serv_join_chat(GaimConnection *, GHashTable *);
47 void serv_reject_chat(GaimConnection *, GHashTable *); 47 void serv_reject_chat(GaimConnection *, GHashTable *);
48 void serv_chat_invite(GaimConnection *, int, const char *, const char *); 48 void serv_chat_invite(GaimConnection *, int, const char *, const char *);
49 void serv_chat_leave(GaimConnection *, int); 49 void serv_chat_leave(GaimConnection *, int);
50 void serv_chat_whisper(GaimConnection *, int, const char *, const char *); 50 void serv_chat_whisper(GaimConnection *, int, const char *, const char *);
51 int serv_chat_send(GaimConnection *, int, const char *); 51 int serv_chat_send(GaimConnection *, int, const char *, GaimMessageFlags flags);
52 void serv_alias_buddy(GaimBuddy *); 52 void serv_alias_buddy(GaimBuddy *);
53 void serv_got_alias(GaimConnection *gc, const char *who, const char *alias); 53 void serv_got_alias(GaimConnection *gc, const char *who, const char *alias);
54 void serv_got_typing(GaimConnection *gc, const char *name, int timeout, 54 void serv_got_typing(GaimConnection *gc, const char *name, int timeout,
55 GaimTypingState state); 55 GaimTypingState state);
56 void serv_set_buddyicon(GaimConnection *gc, const char *filename); 56 void serv_set_buddyicon(GaimConnection *gc, const char *filename);
57 void serv_got_typing_stopped(GaimConnection *gc, const char *name); 57 void serv_got_typing_stopped(GaimConnection *gc, const char *name);
58 void serv_got_im(GaimConnection *gc, const char *who, const char *msg, 58 void serv_got_im(GaimConnection *gc, const char *who, const char *msg,
59 GaimConvImFlags imflags, time_t mtime); 59 GaimMessageFlags flags, time_t mtime);
60 void serv_got_chat_invite(GaimConnection *gc, const char *name, 60 void serv_got_chat_invite(GaimConnection *gc, const char *name,
61 const char *who, const char *message, 61 const char *who, const char *message,
62 GHashTable *data); 62 GHashTable *data);
63 GaimConversation *serv_got_joined_chat(GaimConnection *gc, 63 GaimConversation *serv_got_joined_chat(GaimConnection *gc,
64 int id, const char *name); 64 int id, const char *name);
65 void serv_got_chat_left(GaimConnection *g, int id); 65 void serv_got_chat_left(GaimConnection *g, int id);
66 void serv_got_chat_in(GaimConnection *g, int id, const char *who, 66 void serv_got_chat_in(GaimConnection *g, int id, const char *who,
67 GaimConvChatFlags chatflags, const char *message, time_t mtime); 67 GaimMessageFlags flags, const char *message, time_t mtime);
68 void serv_send_file(GaimConnection *gc, const char *who, const char *file); 68 void serv_send_file(GaimConnection *gc, const char *who, const char *file);
69 void serv_voice_chat(GaimConnection *gc, const char *who); 69 void serv_voice_chat(GaimConnection *gc, const char *who);
70 70
71 #ifdef __cplusplus 71 #ifdef __cplusplus
72 } 72 }