Mercurial > pidgin
comparison src/protocols/oscar/aim.h @ 2706:e841b14b5b89
[gaim-migrate @ 2719]
oh
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 10 Nov 2001 08:02:40 +0000 |
parents | fee85ed7fc3f |
children | 03bf072c6238 |
comparison
equal
deleted
inserted
replaced
2705:5f431eefb0f2 | 2706:e841b14b5b89 |
---|---|
964 faim_export int aim_ssi_reqdata(aim_session_t *sess, aim_conn_t *conn, time_t localstamp, fu16_t localrev); | 964 faim_export int aim_ssi_reqdata(aim_session_t *sess, aim_conn_t *conn, time_t localstamp, fu16_t localrev); |
965 faim_export int aim_ssi_enable(aim_session_t *sess, aim_conn_t *conn); | 965 faim_export int aim_ssi_enable(aim_session_t *sess, aim_conn_t *conn); |
966 faim_export int aim_ssi_modbegin(aim_session_t *sess, aim_conn_t *conn); | 966 faim_export int aim_ssi_modbegin(aim_session_t *sess, aim_conn_t *conn); |
967 faim_export int aim_ssi_modend(aim_session_t *sess, aim_conn_t *conn); | 967 faim_export int aim_ssi_modend(aim_session_t *sess, aim_conn_t *conn); |
968 | 968 |
969 struct aim_icq_offlinemsg { | |
970 fu32_t sender; | |
971 fu16_t year; | |
972 fu8_t month, day, hour, minute; | |
973 fu16_t type; | |
974 char *msg; | |
975 }; | |
976 | |
977 faim_export int aim_icq_reqofflinemsgs(aim_session_t *sess); | |
978 faim_export int aim_icq_ackofflinemsgs(aim_session_t *sess); | |
979 | |
969 /* aim_util.c */ | 980 /* aim_util.c */ |
970 /* | 981 /* |
971 * These are really ugly. You'd think this was LISP. I wish it was. | 982 * These are really ugly. You'd think this was LISP. I wish it was. |
972 * | 983 * |
973 * XXX With the advent of bstream's, these should be removed to enforce | 984 * XXX With the advent of bstream's, these should be removed to enforce |
990 #define aimutil_get32(buf) ((((*(buf))<<24)&0xff000000) + \ | 1001 #define aimutil_get32(buf) ((((*(buf))<<24)&0xff000000) + \ |
991 (((*((buf)+1))<<16)&0x00ff0000) + \ | 1002 (((*((buf)+1))<<16)&0x00ff0000) + \ |
992 (((*((buf)+2))<< 8)&0x0000ff00) + \ | 1003 (((*((buf)+2))<< 8)&0x0000ff00) + \ |
993 (((*((buf)+3) )&0x000000ff))) | 1004 (((*((buf)+3) )&0x000000ff))) |
994 | 1005 |
1006 /* Little-endian versions (damn ICQ) */ | |
1007 #define aimutil_putle8(buf, data) ( \ | |
1008 (*(buf) = (unsigned char)(data) & 0xff), \ | |
1009 1) | |
1010 #define aimutil_getle8(buf) ( \ | |
1011 (*(buf)) & 0xff \ | |
1012 ) | |
1013 #define aimutil_putle16(buf, data) ( \ | |
1014 (*((buf)+0) = (unsigned char)((data) >> 0) & 0xff), \ | |
1015 (*((buf)+1) = (unsigned char)((data) >> 8) & 0xff), \ | |
1016 2) | |
1017 #define aimutil_getle16(buf) ( \ | |
1018 (((*((buf)+0)) << 0) & 0x00ff) + \ | |
1019 (((*((buf)+1)) << 8) & 0xff00) \ | |
1020 ) | |
1021 #define aimutil_putle32(buf, data) ( \ | |
1022 (*((buf)+0) = (unsigned char)((data) >> 0) & 0xff), \ | |
1023 (*((buf)+1) = (unsigned char)((data) >> 8) & 0xff), \ | |
1024 (*((buf)+2) = (unsigned char)((data) >> 16) & 0xff), \ | |
1025 (*((buf)+3) = (unsigned char)((data) >> 24) & 0xff), \ | |
1026 4) | |
1027 #define aimutil_getle32(buf) ( \ | |
1028 (((*((buf)+0)) << 0) & 0x000000ff) + \ | |
1029 (((*((buf)+1)) << 8) & 0x0000ff00) + \ | |
1030 (((*((buf)+2)) << 16) & 0x00ff0000) + \ | |
1031 (((*((buf)+3)) << 24) & 0xff000000)) | |
1032 | |
1033 | |
995 faim_export int aimutil_putstr(u_char *, const char *, int); | 1034 faim_export int aimutil_putstr(u_char *, const char *, int); |
996 faim_export int aimutil_tokslen(char *toSearch, int index, char dl); | 1035 faim_export int aimutil_tokslen(char *toSearch, int index, char dl); |
997 faim_export int aimutil_itemcnt(char *toSearch, char dl); | 1036 faim_export int aimutil_itemcnt(char *toSearch, char dl); |
998 faim_export char *aimutil_itemidx(char *toSearch, int index, char dl); | 1037 faim_export char *aimutil_itemidx(char *toSearch, int index, char dl); |
999 | 1038 |