Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfaim/chatnav.c

    rcf02dd6 r7869e48  
    4646         * This looks to be a big hack.  You'll note that this entire
    4747         * SNAC is just a room info structure, but the hard room name,
    48          * here, is set to "create". 
     48         * here, is set to "create".
    4949         *
    5050         * Either this goes on the "list of questions concerning
     
    5757        aimbs_putraw(&fr->data, ck, strlen(ck));
    5858
    59         /* 
     59        /*
    6060         * instance
    61          * 
     61         *
    6262         * Setting this to 0xffff apparently assigns the last instance.
    6363         *
     
    9595        tlvlist = aim_tlvlist_read(bs);
    9696
    97         /* 
     97        /*
    9898         * Type 0x0002: Maximum concurrent rooms.
    99          */ 
     99         */
    100100        if (aim_tlv_gettlv(tlvlist, 0x0002, 1))
    101101                maxrooms = aim_tlv_get8(tlvlist, 0x0002, 1);
    102102
    103         /* 
     103        /*
    104104         * Type 0x0003: Exchange information
    105105         *
    106106         * There can be any number of these, each one
    107          * representing another exchange. 
    108          * 
     107         * representing another exchange.
     108         *
    109109         */
    110110        for (curexchange = 0; ((exchangetlv = aim_tlv_gettlv(tlvlist, 0x0003, curexchange+1))); ) {
     
    121121                innerlist = aim_tlvlist_read(&tbs);
    122122
    123                 /* 
     123                /*
    124124                 * Type 0x000a: Unknown.
    125125                 *
     
    130130                        ;
    131131
    132                 /* 
     132                /*
    133133                 * Type 0x000d: Unknown.
    134134                 */
     
    136136                        ;
    137137
    138                 /* 
     138                /*
    139139                 * Type 0x0004: Unknown
    140140                 */
     
    142142                        ;
    143143
    144                 /* 
     144                /*
    145145                 * Type 0x0002: Unknown
    146146                 */
     
    149149
    150150                        classperms = aim_tlv_get16(innerlist, 0x0002, 1);
    151                        
     151
    152152                        faimdprintf(sess, 1, "faim: class permissions %x\n", classperms);
    153153                }
     
    161161                 * 8 Occupant Peek Allowed
    162162                 *
    163                  */ 
     163                 */
    164164                if (aim_tlv_gettlv(innerlist, 0x00c9, 1))
    165165                        exchanges[curexchange-1].flags = aim_tlv_get16(innerlist, 0x00c9, 1);
    166                      
    167                 /*
    168                  * Type 0x00ca: Creation Date 
     166
     167                /*
     168                 * Type 0x00ca: Creation Date
    169169                 */
    170170                if (aim_tlv_gettlv(innerlist, 0x00ca, 1))
    171171                        ;
    172                      
     172
    173173                /*
    174174                 * Type 0x00d0: Mandatory Channels?
     
    186186                 * Type 0x00d2: Maximum Occupancy?
    187187                 */
    188                 if (aim_tlv_gettlv(innerlist, 0x00d2, 1))       
     188                if (aim_tlv_gettlv(innerlist, 0x00d2, 1))
    189189                        ;
    190190
     
    192192                 * Type 0x00d3: Exchange Description
    193193                 */
    194                 if (aim_tlv_gettlv(innerlist, 0x00d3, 1))       
     194                if (aim_tlv_gettlv(innerlist, 0x00d3, 1))
    195195                        exchanges[curexchange-1].name = aim_tlv_getstr(innerlist, 0x00d3, 1);
    196196                else
     
    200200                 * Type 0x00d4: Exchange Description URL
    201201                 */
    202                 if (aim_tlv_gettlv(innerlist, 0x00d4, 1))       
     202                if (aim_tlv_gettlv(innerlist, 0x00d4, 1))
    203203                        ;
    204204
     
    209209                 * 1  Room creation allowed
    210210                 * 2  Exchange creation allowed
    211                  * 
     211                 *
    212212                 */
    213213                if (aim_tlv_gettlv(innerlist, 0x00d5, 1)) {
     
    219219                /*
    220220                 * Type 0x00d6: Character Set (First Time)
    221                  */           
    222                 if (aim_tlv_gettlv(innerlist, 0x00d6, 1))       
     221                 */
     222                if (aim_tlv_gettlv(innerlist, 0x00d6, 1))
    223223                        exchanges[curexchange-1].charset1 = aim_tlv_getstr(innerlist, 0x00d6, 1);
    224224                else
    225225                        exchanges[curexchange-1].charset1 = NULL;
    226                      
     226
    227227                /*
    228228                 * Type 0x00d7: Language (First Time)
    229                  */           
    230                 if (aim_tlv_gettlv(innerlist, 0x00d7, 1))       
     229                 */
     230                if (aim_tlv_gettlv(innerlist, 0x00d7, 1))
    231231                        exchanges[curexchange-1].lang1 = aim_tlv_getstr(innerlist, 0x00d7, 1);
    232232                else
     
    235235                /*
    236236                 * Type 0x00d8: Character Set (Second Time)
    237                  */           
    238                 if (aim_tlv_gettlv(innerlist, 0x00d8, 1))       
     237                 */
     238                if (aim_tlv_gettlv(innerlist, 0x00d8, 1))
    239239                        exchanges[curexchange-1].charset2 = aim_tlv_getstr(innerlist, 0x00d8, 1);
    240240                else
     
    243243                /*
    244244                 * Type 0x00d9: Language (Second Time)
    245                  */           
    246                 if (aim_tlv_gettlv(innerlist, 0x00d9, 1))       
     245                 */
     246                if (aim_tlv_gettlv(innerlist, 0x00d9, 1))
    247247                        exchanges[curexchange-1].lang2 = aim_tlv_getstr(innerlist, 0x00d9, 1);
    248248                else
    249249                        exchanges[curexchange-1].lang2 = NULL;
    250                      
     250
    251251                /*
    252252                 * Type 0x00da: Unknown
    253253                 */
    254                 if (aim_tlv_gettlv(innerlist, 0x00da, 1))       
     254                if (aim_tlv_gettlv(innerlist, 0x00da, 1))
    255255                        ;
    256256
     
    354354 * Subtype 0x0009
    355355 *
    356  * Since multiple things can trigger this callback, we must lookup the 
     356 * Since multiple things can trigger this callback, we must lookup the
    357357 * snacid to determine the original snac subtype that was called.
    358358 *
     
    364364 *    Nav Short Desc = 8
    365365 *    Nav Instance Info = 16
    366  * And then everything is really asynchronous.  There is no specific 
     366 * And then everything is really asynchronous.  There is no specific
    367367 * attachment of a response to a create room request, for example.  Creating
    368368 * the room yields no different a response than requesting the room's info.
Note: See TracChangeset for help on using the changeset viewer.