]> git.proxmox.com Git - qemu.git/blobdiff - net.h
net: add return value to packet receive handler
[qemu.git] / net.h
diff --git a/net.h b/net.h
index a28827c4a731a0677b9ead47c4a2557baacdb5fe..f1cedf4d171cf55986ef95373ee39996ea88f72b 100644 (file)
--- a/net.h
+++ b/net.h
@@ -8,7 +8,7 @@
 typedef struct VLANClientState VLANClientState;
 
 typedef int (NetCanReceive)(VLANClientState *);
-typedef void (NetReceive)(VLANClientState *, const uint8_t *, size_t);
+typedef ssize_t (NetReceive)(VLANClientState *, const uint8_t *, size_t);
 typedef ssize_t (NetReceiveIOV)(VLANClientState *, const struct iovec *, int);
 typedef void (NetCleanup) (VLANClientState *);
 typedef void (LinkStatusChanged)(VLANClientState *);