comparison libpurple/protocols/oscar/flap_connection.c @ 27225:454d46e9cbb7

Make a function static and add two comments
author Mark Doliner <mark@kingant.net>
date Mon, 22 Jun 2009 08:15:58 +0000
parents f6ef3a9534db
children 75aaadd295ed
comparison
equal deleted inserted replaced
27224:c51fc4daf81b 27225:454d46e9cbb7
44 flap_connection_send_version(OscarData *od, FlapConnection *conn) 44 flap_connection_send_version(OscarData *od, FlapConnection *conn)
45 { 45 {
46 FlapFrame *frame; 46 FlapFrame *frame;
47 47
48 frame = flap_frame_new(od, 0x01, 4); 48 frame = flap_frame_new(od, 0x01, 4);
49 byte_stream_put32(&frame->data, 0x00000001); 49 byte_stream_put32(&frame->data, 0x00000001); /* FLAP Version */
50 flap_connection_send(conn, frame); 50 flap_connection_send(conn, frame);
51 } 51 }
52 52
53 /** 53 /**
54 * This sends a channel 1 FLAP containing the FLAP version and 54 * This sends a channel 1 FLAP containing the FLAP version and
62 { 62 {
63 FlapFrame *frame; 63 FlapFrame *frame;
64 GSList *tlvlist = NULL; 64 GSList *tlvlist = NULL;
65 65
66 frame = flap_frame_new(od, 0x01, 4 + 2 + 2 + length); 66 frame = flap_frame_new(od, 0x01, 4 + 2 + 2 + length);
67 byte_stream_put32(&frame->data, 0x00000001); 67 byte_stream_put32(&frame->data, 0x00000001); /* FLAP Version */
68 aim_tlvlist_add_raw(&tlvlist, 0x0006, length, chipsahoy); 68 aim_tlvlist_add_raw(&tlvlist, 0x0006, length, chipsahoy);
69 aim_tlvlist_write(&frame->data, &tlvlist); 69 aim_tlvlist_write(&frame->data, &tlvlist);
70 aim_tlvlist_free(tlvlist); 70 aim_tlvlist_free(tlvlist);
71 71
72 flap_connection_send(conn, frame); 72 flap_connection_send(conn, frame);