Tue, 31 Jul 2001 01:00:39 +0000
[gaim-migrate @ 2096]
moving protocols from plugins/ to src/protocols. making it so that you can select which protocols are compiled statically.
| 2086 | 1 | /* |
| 2 | * AIM Callback Types | |
| 3 | * | |
| 4 | */ | |
| 5 | #ifndef __AIM_CBTYPES_H__ | |
| 6 | #define __AIM_CBTYPES_H__ | |
| 7 | ||
| 8 | /* | |
| 9 | * SNAC Families. | |
| 10 | */ | |
| 11 | #define AIM_CB_FAM_ACK 0x0000 | |
| 12 | #define AIM_CB_FAM_GEN 0x0001 | |
| 13 | #define AIM_CB_FAM_LOC 0x0002 | |
| 14 | #define AIM_CB_FAM_BUD 0x0003 | |
| 15 | #define AIM_CB_FAM_MSG 0x0004 | |
| 16 | #define AIM_CB_FAM_ADS 0x0005 | |
| 17 | #define AIM_CB_FAM_INV 0x0006 | |
| 18 | #define AIM_CB_FAM_ADM 0x0007 | |
| 19 | #define AIM_CB_FAM_POP 0x0008 | |
| 20 | #define AIM_CB_FAM_BOS 0x0009 | |
| 21 | #define AIM_CB_FAM_LOK 0x000a | |
| 22 | #define AIM_CB_FAM_STS 0x000b | |
| 23 | #define AIM_CB_FAM_TRN 0x000c | |
| 24 | #define AIM_CB_FAM_CTN 0x000d /* ChatNav */ | |
| 25 | #define AIM_CB_FAM_CHT 0x000e /* Chat */ | |
| 26 | #define AIM_CB_FAM_ATH 0x0017 | |
| 27 | #define AIM_CB_FAM_OFT 0xfffe /* OFT/Rvous */ | |
| 28 | #define AIM_CB_FAM_SPECIAL 0xffff /* Internal libfaim use */ | |
| 29 | ||
| 30 | /* | |
| 31 | * SNAC Family: Ack. | |
| 32 | * | |
| 33 | * Not really a family, but treating it as one really | |
| 34 | * helps it fit into the libfaim callback structure better. | |
| 35 | * | |
| 36 | */ | |
| 37 | #define AIM_CB_ACK_ACK 0x0001 | |
| 38 | ||
| 39 | /* | |
| 40 | * SNAC Family: General. | |
| 41 | */ | |
| 42 | #define AIM_CB_GEN_ERROR 0x0001 | |
| 43 | #define AIM_CB_GEN_CLIENTREADY 0x0002 | |
| 44 | #define AIM_CB_GEN_SERVERREADY 0x0003 | |
| 45 | #define AIM_CB_GEN_SERVICEREQ 0x0004 | |
| 46 | #define AIM_CB_GEN_REDIRECT 0x0005 | |
| 47 | #define AIM_CB_GEN_RATEINFOREQ 0x0006 | |
| 48 | #define AIM_CB_GEN_RATEINFO 0x0007 | |
| 49 | #define AIM_CB_GEN_RATEINFOACK 0x0008 | |
| 50 | #define AIM_CB_GEN_RATECHANGE 0x000a | |
| 51 | #define AIM_CB_GEN_SERVERPAUSE 0x000b | |
| 52 | #define AIM_CB_GEN_SERVERRESUME 0x000d | |
| 53 | #define AIM_CB_GEN_REQSELFINFO 0x000e | |
| 54 | #define AIM_CB_GEN_SELFINFO 0x000f | |
| 55 | #define AIM_CB_GEN_EVIL 0x0010 | |
| 56 | #define AIM_CB_GEN_SETIDLE 0x0011 | |
| 57 | #define AIM_CB_GEN_MIGRATIONREQ 0x0012 | |
| 58 | #define AIM_CB_GEN_MOTD 0x0013 | |
| 59 | #define AIM_CB_GEN_SETPRIVFLAGS 0x0014 | |
| 60 | #define AIM_CB_GEN_WELLKNOWNURL 0x0015 | |
| 61 | #define AIM_CB_GEN_NOP 0x0016 | |
| 62 | #define AIM_CB_GEN_DEFAULT 0xffff | |
| 63 | ||
| 64 | /* | |
| 65 | * SNAC Family: Location Services. | |
| 66 | */ | |
| 67 | #define AIM_CB_LOC_ERROR 0x0001 | |
| 68 | #define AIM_CB_LOC_REQRIGHTS 0x0002 | |
| 69 | #define AIM_CB_LOC_RIGHTSINFO 0x0003 | |
| 70 | #define AIM_CB_LOC_SETUSERINFO 0x0004 | |
| 71 | #define AIM_CB_LOC_REQUSERINFO 0x0005 | |
| 72 | #define AIM_CB_LOC_USERINFO 0x0006 | |
| 73 | #define AIM_CB_LOC_WATCHERSUBREQ 0x0007 | |
| 74 | #define AIM_CB_LOC_WATCHERNOT 0x0008 | |
| 75 | #define AIM_CB_LOC_DEFAULT 0xffff | |
| 76 | ||
| 77 | /* | |
| 78 | * SNAC Family: Buddy List Management Services. | |
| 79 | */ | |
| 80 | #define AIM_CB_BUD_ERROR 0x0001 | |
| 81 | #define AIM_CB_BUD_REQRIGHTS 0x0002 | |
| 82 | #define AIM_CB_BUD_RIGHTSINFO 0x0003 | |
| 83 | #define AIM_CB_BUD_ADDBUDDY 0x0004 | |
| 84 | #define AIM_CB_BUD_REMBUDDY 0x0005 | |
| 85 | #define AIM_CB_BUD_REJECT 0x000a | |
| 86 | #define AIM_CB_BUD_ONCOMING 0x000b | |
| 87 | #define AIM_CB_BUD_OFFGOING 0x000c | |
| 88 | #define AIM_CB_BUD_DEFAULT 0xffff | |
| 89 | ||
| 90 | /* | |
| 91 | * SNAC Family: Messeging Services. | |
| 92 | */ | |
| 93 | #define AIM_CB_MSG_ERROR 0x0001 | |
| 94 | #define AIM_CB_MSG_PARAMINFO 0x0005 | |
| 95 | #define AIM_CB_MSG_INCOMING 0x0007 | |
| 96 | #define AIM_CB_MSG_EVIL 0x0009 | |
| 97 | #define AIM_CB_MSG_MISSEDCALL 0x000a | |
| 98 | #define AIM_CB_MSG_CLIENTERROR 0x000b | |
| 99 | #define AIM_CB_MSG_ACK 0x000c | |
| 100 | #define AIM_CB_MSG_DEFAULT 0xffff | |
| 101 | ||
| 102 | /* | |
| 103 | * SNAC Family: Advertisement Services | |
| 104 | */ | |
| 105 | #define AIM_CB_ADS_ERROR 0x0001 | |
| 106 | #define AIM_CB_ADS_DEFAULT 0xffff | |
| 107 | ||
| 108 | /* | |
| 109 | * SNAC Family: Invitation Services. | |
| 110 | */ | |
| 111 | #define AIM_CB_INV_ERROR 0x0001 | |
| 112 | #define AIM_CB_INV_DEFAULT 0xffff | |
| 113 | ||
| 114 | /* | |
| 115 | * SNAC Family: Administrative Services. | |
| 116 | */ | |
| 117 | #define AIM_CB_ADM_ERROR 0x0001 | |
| 118 | #define AIM_CB_ADM_INFOCHANGE_REPLY 0x0005 | |
| 119 | #define AIM_CB_ADM_DEFAULT 0xffff | |
| 120 | ||
| 121 | /* | |
| 122 | * SNAC Family: Popup Messages | |
| 123 | */ | |
| 124 | #define AIM_CB_POP_ERROR 0x0001 | |
| 125 | #define AIM_CB_POP_DEFAULT 0xffff | |
| 126 | ||
| 127 | /* | |
| 128 | * SNAC Family: Misc BOS Services. | |
| 129 | */ | |
| 130 | #define AIM_CB_BOS_ERROR 0x0001 | |
| 131 | #define AIM_CB_BOS_RIGHTSQUERY 0x0002 | |
| 132 | #define AIM_CB_BOS_RIGHTS 0x0003 | |
| 133 | #define AIM_CB_BOS_DEFAULT 0xffff | |
| 134 | ||
| 135 | /* | |
| 136 | * SNAC Family: User Lookup Services | |
| 137 | */ | |
| 138 | #define AIM_CB_LOK_ERROR 0x0001 | |
| 139 | #define AIM_CB_LOK_DEFAULT 0xffff | |
| 140 | ||
| 141 | /* | |
| 142 | * SNAC Family: User Status Services | |
| 143 | */ | |
| 144 | #define AIM_CB_STS_ERROR 0x0001 | |
| 145 | #define AIM_CB_STS_SETREPORTINTERVAL 0x0002 | |
| 146 | #define AIM_CB_STS_REPORTACK 0x0004 | |
| 147 | #define AIM_CB_STS_DEFAULT 0xffff | |
| 148 | ||
| 149 | /* | |
| 150 | * SNAC Family: Translation Services | |
| 151 | */ | |
| 152 | #define AIM_CB_TRN_ERROR 0x0001 | |
| 153 | #define AIM_CB_TRN_DEFAULT 0xffff | |
| 154 | ||
| 155 | /* | |
| 156 | * SNAC Family: Chat Navigation Services | |
| 157 | */ | |
| 158 | #define AIM_CB_CTN_ERROR 0x0001 | |
| 159 | #define AIM_CB_CTN_CREATE 0x0008 | |
| 160 | #define AIM_CB_CTN_INFO 0x0009 | |
| 161 | #define AIM_CB_CTN_DEFAULT 0xffff | |
| 162 | ||
| 163 | /* | |
| 164 | * SNAC Family: Chat Services | |
| 165 | */ | |
| 166 | #define AIM_CB_CHT_ERROR 0x0001 | |
| 167 | #define AIM_CB_CHT_ROOMINFOUPDATE 0x0002 | |
| 168 | #define AIM_CB_CHT_USERJOIN 0x0003 | |
| 169 | #define AIM_CB_CHT_USERLEAVE 0x0004 | |
| 170 | #define AIM_CB_CHT_OUTGOINGMSG 0x0005 | |
| 171 | #define AIM_CB_CHT_INCOMINGMSG 0x0006 | |
| 172 | #define AIM_CB_CHT_DEFAULT 0xffff | |
| 173 | ||
| 174 | /* | |
| 175 | * SNAC Family: Authorizer | |
| 176 | * | |
| 177 | * Used only in protocol versions three and above. | |
| 178 | * | |
| 179 | */ | |
| 180 | #define AIM_CB_ATH_ERROR 0x0001 | |
| 181 | #define AIM_CB_ATH_LOGINREQEST 0x0002 | |
| 182 | #define AIM_CB_ATH_LOGINRESPONSE 0x0003 | |
| 183 | #define AIM_CB_ATH_AUTHREQ 0x0006 | |
| 184 | #define AIM_CB_ATH_AUTHRESPONSE 0x0007 | |
| 185 | ||
| 186 | /* | |
| 187 | * OFT Services | |
| 188 | * | |
| 189 | * See non-SNAC note below. | |
| 190 | */ | |
| 191 | #define AIM_CB_OFT_DIRECTIMCONNECTREQ 0x0001/* connect request -- actually an OSCAR CAP*/ | |
| 192 | #define AIM_CB_OFT_DIRECTIMINCOMING 0x0002 | |
| 193 | #define AIM_CB_OFT_DIRECTIMDISCONNECT 0x0003 | |
| 194 | #define AIM_CB_OFT_DIRECTIMTYPING 0x0004 | |
| 195 | #define AIM_CB_OFT_DIRECTIMINITIATE 0x0005 | |
| 196 | ||
| 197 | #define AIM_CB_OFT_GETFILECONNECTREQ 0x0006 /* connect request -- actually an OSCAR CAP*/ | |
| 198 | #define AIM_CB_OFT_GETFILELISTINGREQ 0x0007 /* OFT listing.txt request */ | |
| 199 | #define AIM_CB_OFT_GETFILEFILEREQ 0x0008 /* received file request */ | |
| 200 | #define AIM_CB_OFT_GETFILEFILESEND 0x0009 /* received file request confirm -- send data */ | |
| 201 | #define AIM_CB_OFT_GETFILECOMPLETE 0x000a /* received file send complete*/ | |
| 202 | #define AIM_CB_OFT_GETFILEINITIATE 0x000b /* request for file get acknowledge */ | |
| 203 | #define AIM_CB_OFT_GETFILEDISCONNECT 0x000c /* OFT connection disconnected.*/ | |
| 204 | #define AIM_CB_OFT_GETFILELISTING 0x000d /* OFT listing.txt received.*/ | |
| 205 | #define AIM_CB_OFT_GETFILERECEIVE 0x000e /* OFT file incoming.*/ | |
| 206 | #define AIM_CB_OFT_GETFILELISTINGRXCONFIRM 0x000f | |
| 207 | #define AIM_CB_OFT_GETFILESTATE4 0x0010 | |
| 208 | ||
| 209 | #define AIM_CB_OFT_SENDFILEDISCONNECT 0x0020 /* OFT connection disconnected.*/ | |
| 210 | ||
| 211 | ||
| 212 | ||
| 213 | /* | |
| 214 | * SNAC Family: Internal Messages | |
| 215 | * | |
| 216 | * This isn't truely a SNAC family either, but using | |
| 217 | * these, we can integrated non-SNAC services into | |
| 218 | * the SNAC-centered libfaim callback structure. | |
| 219 | * | |
| 220 | */ | |
| 221 | #define AIM_CB_SPECIAL_AUTHSUCCESS 0x0001 | |
| 222 | #define AIM_CB_SPECIAL_AUTHOTHER 0x0002 | |
| 223 | #define AIM_CB_SPECIAL_CONNERR 0x0003 | |
| 224 | #define AIM_CB_SPECIAL_CONNCOMPLETE 0x0004 | |
| 225 | #define AIM_CB_SPECIAL_FLAPVER 0x0005 | |
| 226 | #define AIM_CB_SPECIAL_DEBUGCONN_CONNECT 0xe001 | |
| 227 | #define AIM_CB_SPECIAL_UNKNOWN 0xffff | |
| 228 | #define AIM_CB_SPECIAL_DEFAULT AIM_CB_SPECIAL_UNKNOWN | |
| 229 | ||
| 230 | ||
| 231 | #endif/*__AIM_CBTYPES_H__ */ |