server: bump protocol version
[fio.git] / server.h
index 494a40a9499a21c8f0aeee49f7cb0ed43243e89c..da1167167749b4041de47b8598b20e0bd4346b7d 100644 (file)
--- a/server.h
+++ b/server.h
@@ -25,18 +25,18 @@ struct fio_net_cmd {
         */
        uint16_t cmd_crc16;     /* cmd checksum */
        uint16_t pdu_crc16;     /* payload checksum */
-       uint8_t payload[0];     /* payload */
+       uint8_t payload[];      /* payload */
 };
 
 struct fio_net_int_cmd {
-       struct fio_net_cmd cmd;
        struct flist_head list;
        struct timeval tv;
        uint64_t saved_tag;
+       struct fio_net_cmd cmd;
 };
 
 enum {
-       FIO_SERVER_VER          = 7,
+       FIO_SERVER_VER          = 11,
 
        FIO_SERVER_MAX_PDU      = 1024,
 
@@ -86,16 +86,17 @@ struct cmd_probe_pdu {
 
 struct cmd_single_line_pdu {
        uint16_t len;
-       uint8_t text[0];
+       uint8_t text[];
 };
 
 struct cmd_line_pdu {
        uint16_t lines;
-       struct cmd_single_line_pdu options[0];
+       struct cmd_single_line_pdu options[];
 };
 
 struct cmd_start_pdu {
        uint32_t jobs;
+       uint32_t stat_outputs;
 };
 
 struct cmd_end_pdu {
@@ -124,6 +125,7 @@ extern int fio_clients_send_ini(const char *);
 extern int fio_handle_clients(void);
 extern int fio_client_add(const char *, void **);
 extern void fio_client_add_cmd_option(void *, const char *);
+extern void fio_client_add_ini_file(void *, const char *);
 
 extern int fio_recv_data(int sk, void *p, unsigned int len);
 extern int fio_send_data(int sk, const void *p, unsigned int len);