comparison src/protocols/oscar/aim.h @ 5836:09f7f23dc83a

[gaim-migrate @ 6267] I think I've fixed the negative online time for real, now. Or, at least reduced the frequency of it happening. Also added the ability to see iChat's "available" messages. Sean, I ended up changing more than I thought I would have to, but that's partially because I like to change things a lot. If it conflicts or whatever feel free to back it out and I can re-patch it back in when you're done with your stuff. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 12 Jun 2003 03:27:58 +0000
parents ac418a9dea99
children dbed8c87f750
comparison
equal deleted inserted replaced
5835:9a08899192ee 5836:09f7f23dc83a
927 #define AIM_FLAG_UNKNOWN100 0x0100 927 #define AIM_FLAG_UNKNOWN100 0x0100
928 #define AIM_FLAG_UNKNOWN200 0x0200 928 #define AIM_FLAG_UNKNOWN200 0x0200
929 #define AIM_FLAG_ACTIVEBUDDY 0x0400 929 #define AIM_FLAG_ACTIVEBUDDY 0x0400
930 #define AIM_FLAG_UNKNOWN800 0x0800 930 #define AIM_FLAG_UNKNOWN800 0x0800
931 #define AIM_FLAG_ABINTERNAL 0x1000 931 #define AIM_FLAG_ABINTERNAL 0x1000
932
933 #define AIM_FLAG_ALLUSERS 0x001f 932 #define AIM_FLAG_ALLUSERS 0x001f
933
934 #define AIM_USERINFO_PRESENT_FLAGS 0x00000001
935 #define AIM_USERINFO_PRESENT_MEMBERSINCE 0x00000002
936 #define AIM_USERINFO_PRESENT_ONLINESINCE 0x00000004
937 #define AIM_USERINFO_PRESENT_IDLE 0x00000008
938 #define AIM_USERINFO_PRESENT_ICQEXTSTATUS 0x00000010
939 #define AIM_USERINFO_PRESENT_ICQIPADDR 0x00000020
940 #define AIM_USERINFO_PRESENT_ICQDATA 0x00000040
941 #define AIM_USERINFO_PRESENT_CAPABILITIES 0x00000080
942 #define AIM_USERINFO_PRESENT_SESSIONLEN 0x00000100
943 #define AIM_USERINFO_PRESENT_CREATETIME 0x00000200
934 944
935 typedef struct { 945 typedef struct {
936 char sn[MAXSNLEN+1]; 946 char sn[MAXSNLEN+1];
937 fu16_t warnlevel; /* evil percent * 10 (999 = 99.9%) */ 947 fu16_t warnlevel; /* evil percent * 10 (999 = 99.9%) */
938 fu16_t idletime; /* in seconds */ 948 fu16_t idletime; /* in seconds */
947 fu32_t ipaddr; 957 fu32_t ipaddr;
948 fu8_t crap[0x25]; /* until we figure it out... */ 958 fu8_t crap[0x25]; /* until we figure it out... */
949 } icqinfo; 959 } icqinfo;
950 fu32_t present; 960 fu32_t present;
951 fu16_t iconcsumlen; 961 fu16_t iconcsumlen;
952 fu8_t iconcsum[30]; 962 fu8_t *iconcsum;
963 char *availablemsg;
953 } aim_userinfo_t; 964 } aim_userinfo_t;
954
955 #define AIM_USERINFO_PRESENT_FLAGS 0x00000001
956 #define AIM_USERINFO_PRESENT_MEMBERSINCE 0x00000002
957 #define AIM_USERINFO_PRESENT_ONLINESINCE 0x00000004
958 #define AIM_USERINFO_PRESENT_IDLE 0x00000008
959 #define AIM_USERINFO_PRESENT_ICQEXTSTATUS 0x00000010
960 #define AIM_USERINFO_PRESENT_ICQIPADDR 0x00000020
961 #define AIM_USERINFO_PRESENT_ICQDATA 0x00000040
962 #define AIM_USERINFO_PRESENT_CAPABILITIES 0x00000080
963 #define AIM_USERINFO_PRESENT_SESSIONLEN 0x00000100
964 #define AIM_USERINFO_PRESENT_CREATETIME 0x00000200
965 965
966 faim_export const char *aim_userinfo_sn(aim_userinfo_t *ui); 966 faim_export const char *aim_userinfo_sn(aim_userinfo_t *ui);
967 faim_export fu16_t aim_userinfo_flags(aim_userinfo_t *ui); 967 faim_export fu16_t aim_userinfo_flags(aim_userinfo_t *ui);
968 faim_export fu16_t aim_userinfo_idle(aim_userinfo_t *ui); 968 faim_export fu16_t aim_userinfo_idle(aim_userinfo_t *ui);
969 faim_export float aim_userinfo_warnlevel(aim_userinfo_t *ui); 969 faim_export float aim_userinfo_warnlevel(aim_userinfo_t *ui);