aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/yahoo/yahoo2_types.h
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-04-15 21:31:52 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2007-04-15 21:31:52 -0700
commitcfc8d58f4c15048e943800272017f69804bb61b7 (patch)
treeb777cadc8b97774db995f449a81ed34fe10fe800 /protocols/yahoo/yahoo2_types.h
parent6bbb939e953bbe1ca9ed3101a1569abe4521f543 (diff)
Updating the Yahoo! module. This seems to fix handling of incoming away
states/messages, should fix some issues with group chats, and unfortunately also adds some crap which I don't want to clean up for now.
Diffstat (limited to 'protocols/yahoo/yahoo2_types.h')
-rw-r--r--protocols/yahoo/yahoo2_types.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/protocols/yahoo/yahoo2_types.h b/protocols/yahoo/yahoo2_types.h
index 1a92b267..df1756eb 100644
--- a/protocols/yahoo/yahoo2_types.h
+++ b/protocols/yahoo/yahoo2_types.h
@@ -29,6 +29,7 @@ extern "C" {
#endif
enum yahoo_status {
+ YAHOO_STATUS_DISCONNECTED = -1,
YAHOO_STATUS_AVAILABLE = 0,
YAHOO_STATUS_BRB,
YAHOO_STATUS_BUSY,
@@ -42,13 +43,15 @@ enum yahoo_status {
YAHOO_STATUS_INVISIBLE = 12,
YAHOO_STATUS_CUSTOM = 99,
YAHOO_STATUS_IDLE = 999,
+ YAHOO_STATUS_WEBLOGIN = 0x5a55aa55,
YAHOO_STATUS_OFFLINE = 0x5a55aa56, /* don't ask */
- YAHOO_STATUS_NOTIFY = 0x16
+ YAHOO_STATUS_NOTIFY = 0x16 /* TYPING */
};
#define YAHOO_STATUS_GAME 0x2 /* Games don't fit into the regular status model */
enum yahoo_login_status {
YAHOO_LOGIN_OK = 0,
+ YAHOO_LOGIN_LOGOFF = 2,
YAHOO_LOGIN_UNAME = 3,
YAHOO_LOGIN_PASSWD = 13,
YAHOO_LOGIN_LOCK = 14,
@@ -57,6 +60,9 @@ enum yahoo_login_status {
};
enum yahoo_error {
+ E_UNKNOWN = -1,
+ E_CONNECTION = -2,
+ E_SYSTEM = -3,
E_CUSTOM = 0,
/* responses from ignore buddy */
@@ -78,6 +84,7 @@ enum yahoo_log_level {
YAHOO_LOG_DEBUG
};
+#define YAHOO_PROTO_VER 0x000b
/* Yahoo style/color directives */
#define YAHOO_COLOR_BLACK "\033[30m"
@@ -115,6 +122,12 @@ enum yahoo_webcam_direction_type {
YAHOO_WEBCAM_UPLOAD
};
+enum yahoo_stealth_visibility_type {
+ YAHOO_STEALTH_DEFAULT = 0,
+ YAHOO_STEALTH_ONLINE,
+ YAHOO_STEALTH_PERM_OFFLINE
+};
+
/* chat member attribs */
#define YAHOO_CHAT_MALE 0x8000
#define YAHOO_CHAT_FEMALE 0x10000