split the I/O part into diag_io.c
diff --git a/src/protocol.h b/src/protocol.h
index 415bc3e..21601ce 100644
--- a/src/protocol.h
+++ b/src/protocol.h
@@ -3,6 +3,8 @@
 
 #include <stdint.h>
 
+struct msgb;
+
 /* From Qualcomm Linux kernel diagchar.h */
 #define DIAG_MAX_REQ_SIZE		(16 * 1024)
 #define DIAG_MAX_HDLC_BUF_SIZE		((DIAG_MAX_REQ_SIZE * 2) + 3)