diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-06-24 14:42:31 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-29 08:52:49 -0500 |
commit | ad55ea45911dfe3c65840e0c0be1a48dae3670eb (patch) | |
tree | 4991328bd5669011d3f64ce25e916d65fbc587b9 /slirp.h | |
parent | b3bbd4ea13a8c4c0a753b32d4c4781b453a6e5ab (diff) | |
download | slirp-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |