Add more job info

Adds a specific command to be sent when a job is received by
the backend. Helps fill out the GUI fields for job values.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/server.h b/server.h
index d17c0ce..5c7c8db 100644
--- a/server.h
+++ b/server.h
@@ -38,7 +38,7 @@
 };
 
 enum {
-	FIO_SERVER_VER		= 7,
+	FIO_SERVER_VER		= 8,
 
 	FIO_SERVER_MAX_PDU	= 1024,
 
@@ -56,7 +56,8 @@
 	FIO_NET_CMD_STOP	= 12,
 	FIO_NET_CMD_DU		= 13,
 	FIO_NET_CMD_RUN		= 14,
-	FIO_NET_CMD_NR		= 15,
+	FIO_NET_CMD_ADD_JOB	= 15,
+	FIO_NET_CMD_NR		= 16,
 
 	FIO_NET_CMD_F_MORE	= 1UL << 0,
 
@@ -106,6 +107,17 @@
 	uint32_t error;
 };
 
+struct cmd_add_job_pdu {
+	uint8_t jobname[32];
+	uint8_t ioengine[32];
+	uint32_t iodepth;
+	uint32_t rw;
+	uint32_t min_bs[2];
+	uint32_t max_bs[2];
+	uint32_t numjobs;
+	uint32_t group_reporting;
+};
+
 extern int fio_start_server(char *);
 extern int fio_server_text_output(const char *, size_t);
 extern int fio_server_log(const char *format, ...);
@@ -129,6 +141,9 @@
 extern void fio_net_cmd_crc(struct fio_net_cmd *);
 extern struct fio_net_cmd *fio_net_recv_cmd(int sk);
 
+struct thread_options;
+extern void fio_server_send_add_job(struct thread_options *, const char *);
+
 extern int exit_backend;
 extern int fio_net_port;