~micahg/ubuntu/natty/pidgin/2.7.9-2

« back to all changes in this revision

Viewing changes to libpurple/protocols/oscar/misc.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-11-05 19:44:21 UTC
  • mfrom: (62.1.1 maverick-security) (2.3.12 sid)
  • Revision ID: james.westby@ubuntu.com-20101105194421-8r8o4pzw2m5j4hiy
Tags: 1:2.7.5-1ubuntu1
Resync on Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
{
42
42
        aim_snacid_t snacid = 0x00000000;
43
43
 
44
 
        flap_connection_send_snac(od, conn, family, subtype, 0x0000, snacid, NULL);
 
44
        flap_connection_send_snac(od, conn, family, subtype, snacid, NULL);
45
45
}
46
46
 
47
47
void
51
51
 
52
52
        snacid = aim_cachesnac(od, family, subtype, 0x0000, NULL, 0);
53
53
 
54
 
        flap_connection_send_snac(od, conn, family, subtype, 0x0000, snacid, NULL);
 
54
        flap_connection_send_snac(od, conn, family, subtype, snacid, NULL);
55
55
}
56
56
 
57
57
void
72
72
 
73
73
        byte_stream_put32(&bs, *longdata);
74
74
 
75
 
        flap_connection_send_snac(od, conn, family, subtype, 0x0000, snacid, &bs);
76
 
 
77
 
        byte_stream_destroy(&bs);
78
 
}
79
 
 
80
 
void
81
 
aim_genericreq_s(OscarData *od, FlapConnection *conn, guint16 family, guint16 subtype, guint16 *shortdata)
82
 
{
83
 
        ByteStream bs;
84
 
        aim_snacid_t snacid;
85
 
 
86
 
        if (!shortdata)
87
 
        {
88
 
                aim_genericreq_n(od, conn, family, subtype);
89
 
                return;
90
 
        }
91
 
 
92
 
        byte_stream_new(&bs, 2);
93
 
 
94
 
        snacid = aim_cachesnac(od, family, subtype, 0x0000, NULL, 0);
95
 
 
96
 
        byte_stream_put16(&bs, *shortdata);
97
 
 
98
 
        flap_connection_send_snac(od, conn, family, subtype, 0x0000, snacid, &bs);
 
75
        flap_connection_send_snac(od, conn, family, subtype, snacid, &bs);
99
76
 
100
77
        byte_stream_destroy(&bs);
101
78
}
114
91
 
115
92
        snac2 = aim_remsnac(od, snac->id);
116
93
 
117
 
        if (byte_stream_empty(bs))
 
94
        if (byte_stream_bytes_left(bs))
118
95
                error = byte_stream_get16(bs);
119
96
 
120
97
        if ((userfunc = aim_callhandler(od, snac->family, snac->subtype)))