client/server: pass type of client to the backend
[fio.git] / server.h
index 7a801bf0a283235ebc72d50392d7fc99f87f4dc1..2235f3a503f3f38541eeafb820922f31ec02371b 100644 (file)
--- a/server.h
+++ b/server.h
@@ -38,7 +38,7 @@ struct fio_net_int_cmd {
 };
 
 enum {
-       FIO_SERVER_VER                  = 10,
+       FIO_SERVER_VER                  = 11,
 
        FIO_SERVER_MAX_FRAGMENT_PDU     = 1024,
 
@@ -97,9 +97,16 @@ struct cmd_single_line_pdu {
 
 struct cmd_line_pdu {
        uint16_t lines;
+       uint16_t client_type;
        struct cmd_single_line_pdu options[0];
 };
 
+struct cmd_job_pdu {
+       uint32_t buf_len;
+       uint32_t client_type;
+       uint8_t buf[0];
+};
+
 struct cmd_start_pdu {
        uint32_t jobs;
 };