comparison src/protocols/yahoo/yahoo.h @ 7134:67f9b43c402a

[gaim-migrate @ 7701] I think this is the fifth Yahoo authentication method Gaim's seen in its days. Please tell me if anything stops working. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Fri, 03 Oct 2003 23:01:13 +0000
parents 847d899a5724
children 580bd39219a2
comparison
equal deleted inserted replaced
7133:28dd20b5f4cf 7134:67f9b43c402a
22 22
23 #ifndef _YAHOO_H_ 23 #ifndef _YAHOO_H_
24 #define _YAHOO_H_ 24 #define _YAHOO_H_
25 25
26 #include "prpl.h" 26 #include "prpl.h"
27
28 #define WEBMESSENGER_URL "http://login.yahoo.com/config/login?.src=pg"
27 29
28 enum yahoo_service { /* these are easier to see in hex */ 30 enum yahoo_service { /* these are easier to see in hex */
29 YAHOO_SERVICE_LOGON = 1, 31 YAHOO_SERVICE_LOGON = 1,
30 YAHOO_SERVICE_LOGOFF, 32 YAHOO_SERVICE_LOGOFF,
31 YAHOO_SERVICE_ISAWAY, 33 YAHOO_SERVICE_ISAWAY,
81 YAHOO_SERVICE_CHATLEAVE, 83 YAHOO_SERVICE_CHATLEAVE,
82 YAHOO_SERVICE_CHATEXIT = 0x9b, 84 YAHOO_SERVICE_CHATEXIT = 0x9b,
83 YAHOO_SERVICE_CHATADDINVITE = 0x9d, 85 YAHOO_SERVICE_CHATADDINVITE = 0x9d,
84 YAHOO_SERVICE_CHATLOGOUT = 0xa0, 86 YAHOO_SERVICE_CHATLOGOUT = 0xa0,
85 YAHOO_SERVICE_CHATPING, 87 YAHOO_SERVICE_CHATPING,
86 YAHOO_SERVICE_COMMENT = 0xa8 88 YAHOO_SERVICE_COMMENT = 0xa8,
89 YAHOO_SERVICE_WEBLOGIN = 0x0226
87 }; 90 };
88 91
89 enum yahoo_status { 92 enum yahoo_status {
90 YAHOO_STATUS_AVAILABLE = 0, 93 YAHOO_STATUS_AVAILABLE = 0,
91 YAHOO_STATUS_BRB, 94 YAHOO_STATUS_BRB,
98 YAHOO_STATUS_OUTTOLUNCH, 101 YAHOO_STATUS_OUTTOLUNCH,
99 YAHOO_STATUS_STEPPEDOUT, 102 YAHOO_STATUS_STEPPEDOUT,
100 YAHOO_STATUS_INVISIBLE = 12, 103 YAHOO_STATUS_INVISIBLE = 12,
101 YAHOO_STATUS_CUSTOM = 99, 104 YAHOO_STATUS_CUSTOM = 99,
102 YAHOO_STATUS_IDLE = 999, 105 YAHOO_STATUS_IDLE = 999,
106 YAHOO_STATUS_WEBLOGIN = 0x5a55aa55,
103 YAHOO_STATUS_OFFLINE = 0x5a55aa56, /* don't ask */ 107 YAHOO_STATUS_OFFLINE = 0x5a55aa56, /* don't ask */
104 YAHOO_STATUS_TYPING = 0x16 108 YAHOO_STATUS_TYPING = 0x16
105 }; 109 };
106 110
107 struct yahoo_data { 111 struct yahoo_data {
115 GSList *confs; 119 GSList *confs;
116 unsigned int conf_id; /* just a counter */ 120 unsigned int conf_id; /* just a counter */
117 gboolean chat_online; 121 gboolean chat_online;
118 gboolean in_chat; 122 gboolean in_chat;
119 char *chat_name; 123 char *chat_name;
124 char *auth;
120 }; 125 };
121 126
122 struct yahoo_pair { 127 struct yahoo_pair {
123 int key; 128 int key;
124 char *value; 129 char *value;