Mercurial > pidgin
comparison libpurple/protocols/yahoo/libymsg.h @ 27318:31534ae3406a
Moved functions around and made some no longer static. All the functions
that are no longer static now have prototypes in libymsg.h. Moved the URI
handling stuff to libyahoo.c since I removed the handling capability from
libyahoojp.c. I still need to find out if Yahoo! JAPAN has its own URI
scheme or not.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sun, 05 Jul 2009 23:56:07 +0000 |
parents | ef5f0cde8d74 |
children | 07d09a987b86 |
comparison
equal
deleted
inserted
replaced
27317:1f63548d3da5 | 27318:31534ae3406a |
---|---|
20 * You should have received a copy of the GNU General Public License | 20 * You should have received a copy of the GNU General Public License |
21 * along with this program; if not, write to the Free Software | 21 * along with this program; if not, write to the Free Software |
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA | 22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
23 */ | 23 */ |
24 | 24 |
25 #ifndef _YAHOO_H_ | 25 #ifndef _LIBYMSG_H_ |
26 #define _YAHOO_H_ | 26 #define _LIBYMSG_H_ |
27 | 27 |
28 #include "circbuffer.h" | 28 #include "circbuffer.h" |
29 #include "cmds.h" | |
29 #include "prpl.h" | 30 #include "prpl.h" |
30 | 31 |
31 #define YAHOO_PAGER_HOST "scsa.msg.yahoo.com" | 32 #define YAHOO_PAGER_HOST "scsa.msg.yahoo.com" |
32 #define YAHOO_PAGER_PORT 5050 | 33 #define YAHOO_PAGER_PORT 5050 |
33 #define YAHOO_PAGER_PORT_P2P 5101 | 34 #define YAHOO_PAGER_PORT_P2P 5101 |
287 */ | 288 */ |
288 char *yahoo_string_decode(PurpleConnection *gc, const char *str, gboolean utf8); | 289 char *yahoo_string_decode(PurpleConnection *gc, const char *str, gboolean utf8); |
289 | 290 |
290 char *yahoo_convert_to_numeric(const char *str); | 291 char *yahoo_convert_to_numeric(const char *str); |
291 | 292 |
292 /* previously-static functions, now needed for yahoo_profile.c */ | |
293 void yahoo_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full); | |
294 | 293 |
295 /* yahoo_profile.c */ | 294 /* yahoo_profile.c */ |
296 void yahoo_get_info(PurpleConnection *gc, const char *name); | 295 void yahoo_get_info(PurpleConnection *gc, const char *name); |
297 | 296 |
297 /* libymsg.h - these functions were formerly static but need not to be for the | |
298 * new two-prpl model. */ | |
299 const char *yahoo_list_icon(PurpleAccount *a, PurpleBuddy *b); | |
300 const char *yahoo_list_emblem(PurpleBuddy *b); | |
301 char *yahoo_status_text(PurpleBuddy *b); | |
302 void yahoo_tooltip_text(PurpleBuddy *b, PurpleNotifyUserInfo *user_info, gboolean full); | |
303 GList *yahoo_status_types(PurpleAccount *account); | |
304 GList *yahoo_blist_node_menu(PurpleBlistNode *node); | |
305 void yahoo_login(PurpleAccount *account); | |
306 void yahoo_close(PurpleConnection *gc); | |
307 int yahoo_send_im(PurpleConnection *gc, const char *who, const char *what, PurpleMessageFlags flags); | |
308 unsigned int yahoo_send_typing(PurpleConnection *gc, const char *who, PurpleTypingState state); | |
309 void yahoo_set_status(PurpleAccount *account, PurpleStatus *status); | |
310 void yahoo_set_idle(PurpleConnection *gc, int idle); | |
311 void yahoo_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *g); | |
312 void yahoo_remove_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group); | |
313 void yahoo_add_deny(PurpleConnection *gc, const char *who); | |
314 void yahoo_rem_deny(PurpleConnection *gc, const char *who); | |
315 void yahoo_set_permit_deny(PurpleConnection *gc); | |
316 void yahoo_keepalive(PurpleConnection *gc); | |
317 void yahoo_change_buddys_group(PurpleConnection *gc, const char *who, const char *old_group, const char *new_group); | |
318 void yahoo_rename_group(PurpleConnection *gc, const char *old_name, PurpleGroup *group, GList *moved_buddies); | |
319 gboolean yahoo_offline_message(const PurpleBuddy *buddy); | |
320 gboolean yahoo_send_attention(PurpleConnection *gc, const char *username, guint type); | |
321 GList *yahoo_attention_types(PurpleAccount *account); | |
322 | |
323 GList *yahoo_actions(PurplePlugin *plugin, gpointer context); | |
324 void yahoopurple_register_commands(void); | |
325 | |
326 PurpleCmdRet yahoopurple_cmd_buzz(PurpleConversation *c, const gchar *cmd, gchar **args, gchar **error, void *data); | |
327 PurpleCmdRet yahoopurple_cmd_chat_join(PurpleConversation *conv, const char *cmd, char **args, char **error, void *data); | |
328 PurpleCmdRet yahoopurple_cmd_chat_list(PurpleConversation *conv, const char *cmd, char **args, char **error, void *data); | |
298 /* needed for xfer, thought theyd be useful for other enhancements later on | 329 /* needed for xfer, thought theyd be useful for other enhancements later on |
299 Returns list of cookies stored in yahoo_data formatted as a single null terminated string | 330 Returns list of cookies stored in yahoo_data formatted as a single null terminated string |
300 returned value must be g_freed | 331 returned value must be g_freed |
301 */ | 332 */ |
302 gchar* yahoo_get_cookies(PurpleConnection *gc); | 333 gchar* yahoo_get_cookies(PurpleConnection *gc); |
303 | 334 |
304 gboolean yahoo_send_attention(PurpleConnection *gc, const char *username, guint type); | |
305 GList *yahoo_attention_types(PurpleAccount *account); | |
306 | |
307 /* send p2p pkt containing our encoded ip, asking peer to connect to us */ | 335 /* send p2p pkt containing our encoded ip, asking peer to connect to us */ |
308 void yahoo_send_p2p_pkt(PurpleConnection *gc, const char *who, int val_13); | 336 void yahoo_send_p2p_pkt(PurpleConnection *gc, const char *who, int val_13); |
309 | 337 |
310 #endif /* _YAHOO_H_ */ | 338 #endif /* _LIBYMSG_H_ */ |