aboutsummaryrefslogtreecommitdiff
path: root/slirp/slirp.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:31 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:49 -0500
commit9f8bd0421dc03b2640ac2d0a4d702354a218b2ab (patch)
treeb866bf7d4864fac7a8313bdf04cca2f997242951 /slirp/slirp.h
parent460fec67ee3807bb2eb189587ffe803a48f317e5 (diff)
downloadqemu-9f8bd0421dc03b2640ac2d0a4d702354a218b2ab.zip
qemu-9f8bd0421dc03b2640ac2d0a4d702354a218b2ab.tar.gz
qemu-9f8bd0421dc03b2640ac2d0a4d702354a218b2ab.tar.bz2
slirp: Use internal state in interface
This now also exports the internal state to the slirp users in qemu, returning it from slirp_init and expecting it along with service invocations. Additionally provide an opaque value interface for the callbacks from slirp into the qemu core. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/slirp.h')
-rw-r--r--slirp/slirp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/slirp/slirp.h b/slirp/slirp.h
index b1e8d4e..cb1a746 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -256,6 +256,7 @@ struct Slirp {
char *tftp_prefix;
struct tftp_session tftp_sessions[TFTP_SESSIONS_MAX];
+ void *opaque;
};
extern Slirp slirp_instance;