aboutsummaryrefslogtreecommitdiffstats
path: root/slirp2/sbuf.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:35 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 18:28:35 -0800
commitf721e3ac031f892af46f255a47d7f54a91317b30 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /slirp2/sbuf.h
parentbae1bc39312d5019bd9a5b8d840a529213a69a17 (diff)
downloadexternal_qemu-f721e3ac031f892af46f255a47d7f54a91317b30.zip
external_qemu-f721e3ac031f892af46f255a47d7f54a91317b30.tar.gz
external_qemu-f721e3ac031f892af46f255a47d7f54a91317b30.tar.bz2
auto import from //depot/cupcake/@135843
Diffstat (limited to 'slirp2/sbuf.h')
-rw-r--r--slirp2/sbuf.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/slirp2/sbuf.h b/slirp2/sbuf.h
deleted file mode 100644
index 05fa01a..0000000
--- a/slirp2/sbuf.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 1995 Danny Gasparovski.
- *
- * Please read the file COPYRIGHT for the
- * terms and conditions of the copyright.
- */
-
-#ifndef _SBUF_H_
-#define _SBUF_H_
-
-#include "mbuf.h"
-#include <stddef.h>
-
-/* a SBuf is a simple circular buffer used to hold RX and TX data in a struct socket
- */
-
-typedef struct sbuf {
- unsigned sb_cc; /* actual chars in buffer */
- unsigned sb_datalen; /* Length of data */
- char* sb_wptr; /* write pointer. points to where the next
- * bytes should be written in the sbuf */
- char* sb_rptr; /* read pointer. points to where the next
- * byte should be read from the sbuf */
- char* sb_data; /* Actual data */
-} SBufRec, *SBuf;
-
-void sbuf_free (SBuf sb);
-void sbuf_drop (SBuf sb, int num);
-void sbuf_reserve (SBuf sb, int count);
-void sbuf_append (struct socket *so, MBuf m);
-void sbuf_appendsb(SBuf sb, MBuf m);
-void sbuf_copy (SBuf sb, int offset, int length, char *to);
-
-#define sbuf_flush(sb) sbuf_drop((sb),(sb)->sb_cc)
-#define sbuf_space(sb) ((sb)->sb_datalen - (sb)->sb_cc)
-
-#endif