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/if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slirp/if.c') diff --git a/slirp/if.c b/slirp/if.c index 75b15e4..0f04e13 100644 --- a/slirp/if.c +++ b/slirp/if.c @@ -162,7 +162,7 @@ if_start(Slirp *slirp) again: /* check if we can really output */ - if (!slirp_can_output()) + if (!slirp_can_output(slirp->opaque)) return; /* -- cgit v1.1