Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/chat.c

    rb8ef1b1 rb7d3cc34  
    180180       
    181181        aim_tx_enqueue(sess, fr);
     182
     183        return 0;
     184}
     185
     186static int aim_addtlvtochain_chatroom(aim_tlvlist_t **list, guint16 type, guint16 exchange, const char *roomname, guint16 instance)
     187{
     188        guint8 *buf;
     189        int buflen;
     190        aim_bstream_t bs;
     191
     192        buflen = 2 + 1 + strlen(roomname) + 2;
     193       
     194        if (!(buf = g_malloc(buflen)))
     195                return 0;
     196
     197        aim_bstream_init(&bs, buf, buflen);
     198
     199        aimbs_put16(&bs, exchange);
     200        aimbs_put8(&bs, strlen(roomname));
     201        aimbs_putraw(&bs, (guint8 *)roomname, strlen(roomname));
     202        aimbs_put16(&bs, instance);
     203
     204        aim_addtlvtochain_raw(list, type, aim_bstream_curpos(&bs), buf);
     205
     206        g_free(buf);
    182207
    183208        return 0;
Note: See TracChangeset for help on using the changeset viewer.