]> git.proxmox.com Git - qemu.git/blobdiff - net.h
net: pass VLANClientState* as first arg to receive handlers
[qemu.git] / net.h
diff --git a/net.h b/net.h
index 4d204e06e6a808414d8d73f9be4c9261f09b0b2b..a28827c4a731a0677b9ead47c4a2557baacdb5fe 100644 (file)
--- a/net.h
+++ b/net.h
@@ -7,9 +7,9 @@
 
 typedef struct VLANClientState VLANClientState;
 
-typedef int (NetCanReceive)(void *);
-typedef void (NetReceive)(void *, const uint8_t *, size_t);
-typedef ssize_t (NetReceiveIOV)(void *, const struct iovec *, int);
+typedef int (NetCanReceive)(VLANClientState *);
+typedef void (NetReceive)(VLANClientState *, const uint8_t *, size_t);
+typedef ssize_t (NetReceiveIOV)(VLANClientState *, const struct iovec *, int);
 typedef void (NetCleanup) (VLANClientState *);
 typedef void (LinkStatusChanged)(VLANClientState *);