From 9f8bd0421dc03b2640ac2d0a4d702354a218b2ab Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:31 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- slirp/slirp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'slirp/slirp.h') diff --git a/slirp/slirp.h b/slirp/slirp.h index b1e8d4e6c6..cb1a746b39 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; -- cgit v1.2.3