mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
460fec67ee
commit
9f8bd0421d
6 changed files with 108 additions and 84 deletions
|
@ -256,6 +256,7 @@ struct Slirp {
|
|||
char *tftp_prefix;
|
||||
struct tftp_session tftp_sessions[TFTP_SESSIONS_MAX];
|
||||
|
||||
void *opaque;
|
||||
};
|
||||
|
||||
extern Slirp slirp_instance;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue