--- a/libpurple/server.c Sun Feb 09 23:53:18 2014 +0530 +++ b/libpurple/server.c Mon Feb 10 00:56:22 2014 +0530 @@ -41,7 +41,7 @@ #define SEX_BEFORE_RESENDING_AUTORESPONSE "Only after you're married" unsigned int -serv_send_typing(PurpleConnection *gc, const char *name, PurpleIMTypingState state) +purple_serv_send_typing(PurpleConnection *gc, const char *name, PurpleIMTypingState state) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -116,7 +116,7 @@ return lar; } -int serv_send_im(PurpleConnection *gc, const char *name, const char *message, +int purple_serv_send_im(PurpleConnection *gc, const char *name, const char *message, PurpleMessageFlags flags) { PurpleIMConversation *im = NULL; @@ -163,7 +163,7 @@ return val; } -void serv_get_info(PurpleConnection *gc, const char *name) +void purple_serv_get_info(PurpleConnection *gc, const char *name) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -177,7 +177,7 @@ } } -void serv_set_info(PurpleConnection *gc, const char *info) +void purple_serv_set_info(PurpleConnection *gc, const char *info) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -204,7 +204,7 @@ /* * Set buddy's alias on server roster/list */ -void serv_alias_buddy(PurpleBuddy *b) +void purple_serv_alias_buddy(PurpleBuddy *b) { PurpleAccount *account; PurpleConnection *gc; @@ -231,7 +231,7 @@ } void -serv_got_alias(PurpleConnection *gc, const char *who, const char *alias) +purple_serv_got_alias(PurpleConnection *gc, const char *who, const char *alias) { PurpleAccount *account; GSList *buddies; @@ -331,7 +331,7 @@ * it should be possible. Probably needs to be done, someday. Although, * the UI for that would be difficult, because groups are Purple-wide. */ -void serv_move_buddy(PurpleBuddy *b, PurpleGroup *og, PurpleGroup *ng) +void purple_serv_move_buddy(PurpleBuddy *b, PurpleGroup *og, PurpleGroup *ng) { PurpleAccount *account; PurpleConnection *gc; @@ -356,7 +356,7 @@ } } -void serv_add_permit(PurpleConnection *gc, const char *name) +void purple_serv_add_permit(PurpleConnection *gc, const char *name) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -370,7 +370,7 @@ } } -void serv_add_deny(PurpleConnection *gc, const char *name) +void purple_serv_add_deny(PurpleConnection *gc, const char *name) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -384,7 +384,7 @@ } } -void serv_rem_permit(PurpleConnection *gc, const char *name) +void purple_serv_rem_permit(PurpleConnection *gc, const char *name) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -398,7 +398,7 @@ } } -void serv_rem_deny(PurpleConnection *gc, const char *name) +void purple_serv_rem_deny(PurpleConnection *gc, const char *name) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -412,7 +412,7 @@ } } -void serv_set_permit_deny(PurpleConnection *gc) +void purple_serv_set_permit_deny(PurpleConnection *gc) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -432,7 +432,7 @@ } } -void serv_join_chat(PurpleConnection *gc, GHashTable *data) +void purple_serv_join_chat(PurpleConnection *gc, GHashTable *data) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -447,7 +447,7 @@ } -void serv_reject_chat(PurpleConnection *gc, GHashTable *data) +void purple_serv_reject_chat(PurpleConnection *gc, GHashTable *data) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -461,7 +461,7 @@ } } -void serv_chat_invite(PurpleConnection *gc, int id, const char *message, const char *name) +void purple_serv_chat_invite(PurpleConnection *gc, int id, const char *message, const char *name) { PurplePlugin *prpl = NULL; PurplePluginProtocolInfo *prpl_info = NULL; @@ -496,7 +496,7 @@ * Then again, something might want to use this, from outside prpl-land * to leave a chat without destroying the conversation. */ -void serv_chat_leave(PurpleConnection *gc, int id) +void purple_serv_chat_leave(PurpleConnection *gc, int id) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -508,7 +508,7 @@ prpl_info->chat_leave(gc, id); } -void serv_chat_whisper(PurpleConnection *gc, int id, const char *who, const char *message) +void purple_serv_chat_whisper(PurpleConnection *gc, int id, const char *who, const char *message) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -522,7 +522,7 @@ } } -int serv_chat_send(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags) +int purple_serv_chat_send(PurpleConnection *gc, int id, const char *message, PurpleMessageFlags flags) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info; @@ -540,7 +540,7 @@ * woo. i'm actually going to comment this function. isn't that fun. make * sure to follow along, kids */ -void serv_got_im(PurpleConnection *gc, const char *who, const char *msg, +void purple_serv_got_im(PurpleConnection *gc, const char *who, const char *msg, PurpleMessageFlags flags, time_t mtime) { PurpleAccount *account; @@ -555,7 +555,7 @@ if (mtime < 0) { purple_debug_error("server", - "serv_got_im ignoring negative timestamp\n"); + "purple_serv_got_im ignoring negative timestamp\n"); /* TODO: Would be more appropriate to use a value that indicates that the timestamp is unknown, and surface that in the UI. */ mtime = time(NULL); @@ -676,7 +676,7 @@ if (!(flags & PURPLE_MESSAGE_AUTO_RESP)) { - serv_send_im(gc, name, away_msg, PURPLE_MESSAGE_AUTO_RESP); + purple_serv_send_im(gc, name, away_msg, PURPLE_MESSAGE_AUTO_RESP); purple_conversation_write_message(PURPLE_CONVERSATION(im), NULL, away_msg, PURPLE_MESSAGE_SEND | PURPLE_MESSAGE_AUTO_RESP, @@ -689,7 +689,7 @@ g_free(name); } -void serv_got_typing(PurpleConnection *gc, const char *name, int timeout, +void purple_serv_got_typing(PurpleConnection *gc, const char *name, int timeout, PurpleIMTypingState state) { PurpleIMConversation *im; @@ -718,7 +718,7 @@ purple_im_conversation_start_typing_timeout(im, timeout); } -void serv_got_typing_stopped(PurpleConnection *gc, const char *name) { +void purple_purple_serv_got_typing_stopped(PurpleConnection *gc, const char *name) { PurpleIMConversation *im; @@ -753,20 +753,20 @@ static void chat_invite_reject(struct chat_invite_data *cid) { - serv_reject_chat(cid->gc, cid->components); + purple_serv_reject_chat(cid->gc, cid->components); chat_invite_data_free(cid); } static void chat_invite_accept(struct chat_invite_data *cid) { - serv_join_chat(cid->gc, cid->components); + purple_serv_join_chat(cid->gc, cid->components); chat_invite_data_free(cid); } -void serv_got_chat_invite(PurpleConnection *gc, const char *name, +void purple_purple_serv_got_chat_invite(PurpleConnection *gc, const char *name, const char *who, const char *message, GHashTable *data) { PurpleAccount *account; @@ -820,7 +820,7 @@ chat_invite_reject(cid); } -PurpleChatConversation *serv_got_joined_chat(PurpleConnection *gc, +PurpleChatConversation *purple_serv_got_joined_chat(PurpleConnection *gc, int id, const char *name) { PurpleChatConversation *chat; @@ -844,7 +844,7 @@ return chat; } -void serv_got_chat_left(PurpleConnection *g, int id) +void purple_serv_got_chat_left(PurpleConnection *g, int id) { GSList *bcs; PurpleChatConversation *chat = NULL; @@ -876,7 +876,7 @@ gc, data); } -void serv_got_chat_in(PurpleConnection *g, int id, const char *who, +void purple_serv_got_chat_in(PurpleConnection *g, int id, const char *who, PurpleMessageFlags flags, const char *message, time_t mtime) { GSList *bcs; @@ -889,7 +889,7 @@ if (mtime < 0) { purple_debug_error("server", - "serv_got_chat_in ignoring negative timestamp\n"); + "purple_serv_got_chat_in ignoring negative timestamp\n"); /* TODO: Would be more appropriate to use a value that indicates that the timestamp is unknown, and surface that in the UI. */ mtime = time(NULL); @@ -946,7 +946,7 @@ g_free(buffy); } -void serv_send_file(PurpleConnection *gc, const char *who, const char *file) +void purple_serv_send_file(PurpleConnection *gc, const char *who, const char *file) { PurplePlugin *prpl; PurplePluginProtocolInfo *prpl_info;