comparison: libpurple/protocols/oscar/bstream.c
libpurple/protocols/oscar/bstream.c
- changeset 22860
- 2b0e247173b2
- parent 19859
- 71d37b57eff2
- child 25086
- fb94ee60a4f2
equal
deleted
inserted
replaced
| 43 bs->offset = 0; |
43 bs->offset = 0; |
| 44 |
44 |
| 45 return 0; |
45 return 0; |
| 46 } |
46 } |
| 47 |
47 |
| |
48 void byte_stream_destroy(ByteStream *bs) |
| |
49 { |
| |
50 g_free(bs->data); |
| |
51 } |
| |
52 |
| 48 int byte_stream_empty(ByteStream *bs) |
53 int byte_stream_empty(ByteStream *bs) |
| 49 { |
54 { |
| 50 return bs->len - bs->offset; |
55 return bs->len - bs->offset; |
| 51 } |
56 } |
| 52 |
57 |