comparison plugins/yay/libyahoo-proto.h @ 1409:17e544f8c7fb

[gaim-migrate @ 1419] no more hanging trees. also libyahoo updates. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 16 Jan 2001 02:02:32 +0000
parents 0b0b4cb53c17
children
comparison
equal deleted inserted replaced
1408:815e3000467e 1409:17e544f8c7fb
6 `cfunctions -w LIBYAHOO_PROTO -o ./libyahoo-proto.h' */ 6 `cfunctions -w LIBYAHOO_PROTO -o ./libyahoo-proto.h' */
7 #ifndef CFH_LIBYAHOO_PROTO 7 #ifndef CFH_LIBYAHOO_PROTO
8 #define CFH_LIBYAHOO_PROTO 8 #define CFH_LIBYAHOO_PROTO
9 9
10 unsigned int yahoo_makeint(unsigned char *data); 10 unsigned int yahoo_makeint(unsigned char *data);
11 char **yahoo_list2array(char *buff); 11 char **yahoo_list2array(const char *buff);
12 void yahoo_arraykill(char **array); 12 void yahoo_arraykill(char **array);
13 char *yahoo_array2list(char **array); 13 char *yahoo_array2list(char **array);
14 struct yahoo_context *yahoo_init(char *user, char *password, 14 struct yahoo_context *yahoo_init(const char *user, const char *password, struct yahoo_options *options);
15
16 struct yahoo_options *options);
17 void yahoo_free_context(struct yahoo_context *ctx); 15 void yahoo_free_context(struct yahoo_context *ctx);
18 char *yahoo_get_status_string(int statuscode); 16 char *yahoo_get_status_string(int statuscode);
19 char *yahoo_get_status_append(int statuscode); 17 char *yahoo_get_status_append(int statuscode);
20 char *yahoo_get_service_string(int servicecode); 18 char *yahoo_get_service_string(int servicecode);
21 int yahoo_fetchcookies(struct yahoo_context *ctx); 19 int yahoo_fetchcookies(struct yahoo_context *ctx);
22 int yahoo_add_buddy(struct yahoo_context *ctx, char *addid, char *active_id, 20 int yahoo_add_buddy(struct yahoo_context *ctx, const char *addid, const char *active_id, const char *group, const char *msg);
23 char *group, char *msg); 21 int yahoo_remove_buddy(struct yahoo_context *ctx, const char *addid, const char *active_id, const char *group, const char *msg);
24 int yahoo_remove_buddy(struct yahoo_context *ctx, char *addid,
25 char *active_id, char *group, char *msg);
26 int yahoo_get_config(struct yahoo_context *ctx); 22 int yahoo_get_config(struct yahoo_context *ctx);
27 int yahoo_cmd_logon(struct yahoo_context *ctx, unsigned int initial_status); 23 int yahoo_cmd_logon(struct yahoo_context *ctx, unsigned int initial_status);
28 int yahoo_connect(struct yahoo_context *ctx); 24 int yahoo_connect(struct yahoo_context *ctx);
29 int yahoo_sendcmd_http(struct yahoo_context *ctx, 25 int yahoo_sendcmd_http(struct yahoo_context *ctx, struct yahoo_rawpacket *pkt);
30 26 int yahoo_sendcmd(struct yahoo_context *ctx, int service, const char *active_nick, const char *content, unsigned int msgtype);
31 struct yahoo_rawpacket *pkt);
32 int yahoo_sendcmd(struct yahoo_context *ctx, int service, char *active_nick,
33 char *content, unsigned int msgtype);
34 int yahoo_cmd_ping(struct yahoo_context *ctx); 27 int yahoo_cmd_ping(struct yahoo_context *ctx);
35 int yahoo_cmd_idle(struct yahoo_context *ctx); 28 int yahoo_cmd_idle(struct yahoo_context *ctx);
36 int yahoo_cmd_sendfile(struct yahoo_context *ctx, char *active_user, 29 int yahoo_cmd_sendfile(struct yahoo_context *ctx, const char *active_user, const char *touser, const char *msg, const char *filename);
37 char *touser, char *msg, char *filename); 30 int yahoo_cmd_msg(struct yahoo_context *ctx, const char *active_user, const char *touser, const char *msg);
38 int yahoo_cmd_msg(struct yahoo_context *ctx, char *active_user, char *touser, 31 int yahoo_cmd_msg_offline(struct yahoo_context *ctx, const char *active_user, const char *touser, const char *msg);
39 32 int yahoo_cmd_set_away_mode(struct yahoo_context *ctx, int status, const char *msg);
40 char *msg); 33 int yahoo_cmd_set_back_mode(struct yahoo_context *ctx, int status, const char *msg);
41 int yahoo_cmd_msg_offline(struct yahoo_context *ctx, char *active_user, 34 int yahoo_cmd_activate_id(struct yahoo_context *ctx, const char *newid);
42 char *touser, char *msg);
43 int yahoo_cmd_set_away_mode(struct yahoo_context *ctx, int status, char *msg);
44 int yahoo_cmd_set_back_mode(struct yahoo_context *ctx, int status, char *msg);
45 int yahoo_cmd_activate_id(struct yahoo_context *ctx, char *newid);
46 int yahoo_cmd_user_status(struct yahoo_context *ctx); 35 int yahoo_cmd_user_status(struct yahoo_context *ctx);
47 int yahoo_cmd_logoff(struct yahoo_context *ctx); 36 int yahoo_cmd_logoff(struct yahoo_context *ctx);
48 int yahoo_cmd_start_conf(struct yahoo_context *ctx, char *conf_id, 37 int yahoo_cmd_start_conf(struct yahoo_context *ctx, const char *conf_id, char **userlist, const char *msg, int type);
49 char **userlist, char *msg, int type); 38 int yahoo_cmd_conf_logon(struct yahoo_context *ctx, const char *conf_id, const char *host, char **userlist);
50 int yahoo_cmd_conf_logon(struct yahoo_context *ctx, char *conf_id, 39 int yahoo_cmd_decline_conf(struct yahoo_context *ctx, const char *conf_id, const char *host, char **userlist, const char *msg);
51 40 int yahoo_cmd_conf_logoff(struct yahoo_context *ctx, const char *conf_id, char **userlist);
52 char *host, char **userlist); 41 int yahoo_cmd_conf_invite(struct yahoo_context *ctx, const char *conf_id, char **userlist, const char *invited_user, const char *msg);
53 int yahoo_cmd_decline_conf(struct yahoo_context *ctx, char *conf_id, 42 int yahoo_cmd_conf_msg(struct yahoo_context *ctx, const char *conf_id, char **userlist, const char *msg);
54 char *host, char **userlist, char *msg);
55 int yahoo_cmd_conf_logoff(struct yahoo_context *ctx, char *conf_id,
56
57 char **userlist);
58 int yahoo_cmd_conf_invite(struct yahoo_context *ctx, char *conf_id,
59 char **userlist, char *invited_user, char *msg);
60 int yahoo_cmd_conf_msg(struct yahoo_context *ctx, char *conf_id,
61 char **userlist, char *msg);
62 void yahoo_free_rawpacket(struct yahoo_rawpacket *pkt); 43 void yahoo_free_rawpacket(struct yahoo_rawpacket *pkt);
63 void yahoo_free_packet(struct yahoo_packet *pkt); 44 void yahoo_free_packet(struct yahoo_packet *pkt);
64 void yahoo_free_idstatus(struct yahoo_idstatus *idstatus); 45 void yahoo_free_idstatus(struct yahoo_idstatus *idstatus);
65 struct yahoo_packet *yahoo_parsepacket(struct yahoo_context *ctx, 46 struct yahoo_packet *yahoo_parsepacket(struct yahoo_context *ctx, struct yahoo_rawpacket *inpkt);
66 47 int yahoo_parsepacket_ping(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
67 struct yahoo_rawpacket *inpkt); 48 int yahoo_parsepacket_newmail(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
68 int yahoo_parsepacket_ping(struct yahoo_context *ctx, 49 int yahoo_parsepacket_grouprename(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
69 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt); 50 int yahoo_parsepacket_conference_invite(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
70 int yahoo_parsepacket_newmail(struct yahoo_context *ctx, 51 int yahoo_parsepacket_conference_decline(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
71 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt); 52 int yahoo_parsepacket_conference_addinvite(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
72 int yahoo_parsepacket_grouprename(struct yahoo_context *ctx, 53 int yahoo_parsepacket_conference_msg(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
73 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt); 54 int yahoo_parsepacket_conference_user(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
74 int yahoo_parsepacket_conference_invite(struct yahoo_context *ctx, 55 int yahoo_parsepacket_filetransfer(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
75 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt); 56 int yahoo_parsepacket_calendar(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
76 int yahoo_parsepacket_conference_decline(struct yahoo_context *ctx, 57 int yahoo_parsepacket_chatinvite(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
77 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt); 58 int yahoo_parsepacket_newcontact(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
78 int yahoo_parsepacket_conference_addinvite(struct yahoo_context *ctx, 59 int yahoo_parsepacket_status(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
79 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt); 60 int yahoo_parsepacket_message(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
80 int yahoo_parsepacket_conference_msg(struct yahoo_context *ctx, 61 int yahoo_parsepacket_message_offline(struct yahoo_context *ctx, struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
81 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
82 int yahoo_parsepacket_conference_user(struct yahoo_context *ctx,
83 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
84 int yahoo_parsepacket_filetransfer(struct yahoo_context *ctx,
85 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
86 int yahoo_parsepacket_calendar(struct yahoo_context *ctx,
87 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
88 int yahoo_parsepacket_chatinvite(struct yahoo_context *ctx,
89 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
90 int yahoo_parsepacket_newcontact(struct yahoo_context *ctx,
91 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
92 int yahoo_parsepacket_status(struct yahoo_context *ctx,
93 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
94 int yahoo_parsepacket_message(struct yahoo_context *ctx,
95 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
96 int yahoo_parsepacket_message_offline(struct yahoo_context *ctx,
97 struct yahoo_packet *pkt, struct yahoo_rawpacket *inpkt);
98 int yahoo_getdata(struct yahoo_context *ctx); 62 int yahoo_getdata(struct yahoo_context *ctx);
99 struct yahoo_rawpacket *yahoo_getpacket(struct yahoo_context *ctx); 63 struct yahoo_rawpacket *yahoo_getpacket(struct yahoo_context *ctx);
100 int yahoo_isbuddy(struct yahoo_context *ctx, const char *id); 64 int yahoo_isbuddy(struct yahoo_context *ctx, const char *id);
101 void yahoo_freeaddressbook(struct yahoo_context *ctx); 65 void yahoo_freeaddressbook(struct yahoo_context *ctx);
102 int yahoo_fetchaddressbook(struct yahoo_context *ctx); 66 int yahoo_fetchaddressbook(struct yahoo_context *ctx);