From 816c875ac4332e206037ce8ddbc390f5bf4c3a31 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 29 Dec 2024 17:29:37 -0700 Subject: [PATCH] net/slirp: Move prototype def into slirp.h --- include/net/slirp.h | 4 ++++ ui/xemu-net.c | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/net/slirp.h b/include/net/slirp.h index bad3e1e241..eaf036c86b 100644 --- a/include/net/slirp.h +++ b/include/net/slirp.h @@ -32,6 +32,10 @@ void hmp_hostfwd_remove(Monitor *mon, const QDict *qdict); void hmp_info_usernet(Monitor *mon, const QDict *qdict); +#ifdef XBOX +void *slirp_get_state_from_netdev(const char *id); +#endif + #endif #endif /* QEMU_NET_SLIRP_H */ diff --git a/ui/xemu-net.c b/ui/xemu-net.c index d7dbd5de11..606109efcc 100644 --- a/ui/xemu-net.c +++ b/ui/xemu-net.c @@ -42,8 +42,6 @@ static const char *id = "xemu-netdev"; static const char *id_hubport = "xemu-netdev-hubport"; -void *slirp_get_state_from_netdev(const char *id); - void xemu_net_enable(void) { Error *local_err = NULL;