aboutsummaryrefslogtreecommitdiff
path: root/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
commitad55ea45911dfe3c65840e0c0be1a48dae3670eb (patch)
tree4991328bd5669011d3f64ce25e916d65fbc587b9 /slirp.h
parentb3bbd4ea13a8c4c0a753b32d4c4781b453a6e5ab (diff)
downloadslirp-ad55ea45911dfe3c65840e0c0be1a48dae3670eb.zip
slirp-ad55ea45911dfe3c65840e0c0be1a48dae3670eb.tar.gz
slirp-ad55ea45911dfe3c65840e0c0be1a48dae3670eb.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.h')
-rw-r--r--slirp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/slirp.h b/slirp.h
index 0cf525d..5cb13aa 100644
--- a/slirp.h
+++ b/slirp.h
@@ -255,6 +255,8 @@ struct Slirp {
/* tftp states */
char *tftp_prefix;
struct tftp_session tftp_sessions[TFTP_SESSIONS_MAX];
+
+ void *opaque;
};
extern Slirp slirp_instance;