Mercurial > pidgin
comparison src/protocols/oscar/oscar_internal.h @ 13253:87a7c3077c19
[gaim-migrate @ 15619]
More cleaning up of oscar. Renamed some functions to be more clear.
Got rid of some stuff that wasn't used. Inlined some small things
in conn.c that were only used once.
The goals of all this are
1. Non-blocking I/O for all connections
2. p2p stuff won't use the same struct as oscar connections, because
that's stupid
3. The oscar PRPL should be less scary
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 12 Feb 2006 21:27:04 +0000 |
parents | f260d319bbbc |
children | b08f8f3c9197 |
comparison
equal
deleted
inserted
replaced
13252:2871c385c45a | 13253:87a7c3077c19 |
---|---|
124 faim_internal int aim_bstream_recv(ByteStream *bs, int fd, size_t count); | 124 faim_internal int aim_bstream_recv(ByteStream *bs, int fd, size_t count); |
125 faim_internal void aim_rxqueue_cleanbyconn(OscarSession *sess, OscarConnection *conn); | 125 faim_internal void aim_rxqueue_cleanbyconn(OscarSession *sess, OscarConnection *conn); |
126 faim_internal void aim_frame_destroy(FlapFrame *); | 126 faim_internal void aim_frame_destroy(FlapFrame *); |
127 | 127 |
128 /* txqueue.c */ | 128 /* txqueue.c */ |
129 faim_internal FlapFrame *aim_tx_new(OscarSession *sess, OscarConnection *conn, guint8 framing, guint16 chan, int datalen); | 129 faim_internal FlapFrame *flap_frame_new(OscarSession *sess, OscarConnection *conn, guint8 framing, guint16 chan, int datalen); |
130 faim_internal int aim_tx_enqueue(OscarSession *, FlapFrame *); | 130 faim_internal int aim_tx_enqueue(OscarSession *, FlapFrame *); |
131 faim_internal int aim_bstream_send(ByteStream *bs, OscarConnection *conn, size_t count); | 131 faim_internal int aim_bstream_send(ByteStream *bs, OscarConnection *conn, size_t count); |
132 faim_internal int aim_tx_sendframe(OscarSession *sess, FlapFrame *cur); | |
133 faim_internal void aim_tx_cleanqueue(OscarSession *, OscarConnection *); | 132 faim_internal void aim_tx_cleanqueue(OscarSession *, OscarConnection *); |
134 | 133 |
135 /* | 134 /* |
136 * Generic SNAC structure. Rarely if ever used. | 135 * Generic SNAC structure. Rarely if ever used. |
137 */ | 136 */ |
150 faim_internal aim_snacid_t aim_newsnac(OscarSession *, aim_snac_t *newsnac); | 149 faim_internal aim_snacid_t aim_newsnac(OscarSession *, aim_snac_t *newsnac); |
151 faim_internal aim_snacid_t aim_cachesnac(OscarSession *sess, const guint16 family, const guint16 type, const guint16 flags, const void *data, const int datalen); | 150 faim_internal aim_snacid_t aim_cachesnac(OscarSession *sess, const guint16 family, const guint16 type, const guint16 flags, const void *data, const int datalen); |
152 faim_internal aim_snac_t *aim_remsnac(OscarSession *, aim_snacid_t id); | 151 faim_internal aim_snac_t *aim_remsnac(OscarSession *, aim_snacid_t id); |
153 faim_internal int aim_putsnac(ByteStream *, guint16 family, guint16 type, guint16 flags, aim_snacid_t id); | 152 faim_internal int aim_putsnac(ByteStream *, guint16 family, guint16 type, guint16 flags, aim_snacid_t id); |
154 | 153 |
155 /* Stored in ->priv of the service request SNAC for chats. */ | |
156 struct chatsnacinfo { | 154 struct chatsnacinfo { |
157 guint16 exchange; | 155 guint16 exchange; |
158 char name[128]; | 156 char name[128]; |
159 guint16 instance; | 157 guint16 instance; |
160 }; | 158 }; |