scripts/qemu.py: log QEMU launch command line
[qemu/ar7.git] / slirp / sbuf.h
blob1cb9a42834162ce507425fb85142fac600b7c9b9
1 /*
2 * Copyright (c) 1995 Danny Gasparovski.
4 * Please read the file COPYRIGHT for the
5 * terms and conditions of the copyright.
6 */
8 #ifndef SBUF_H
9 #define SBUF_H
11 #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc)
13 struct sbuf {
14 uint32_t sb_cc; /* actual chars in buffer */
15 uint32_t sb_datalen; /* Length of data */
16 char *sb_wptr; /* write pointer. points to where the next
17 * bytes should be written in the sbuf */
18 char *sb_rptr; /* read pointer. points to where the next
19 * byte should be read from the sbuf */
20 char *sb_data; /* Actual data */
23 void sbfree(struct sbuf *);
24 bool sbdrop(struct sbuf *, int);
25 void sbreserve(struct sbuf *, int);
26 void sbappend(struct socket *, struct mbuf *);
27 void sbcopy(struct sbuf *, int, int, char *);
29 #endif