X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=server.h;h=98262af85679c4724116cf0f34076ae7cc949d1d;hp=494c326ed252f20fc7004bd4abd96e9c25cf0fd8;hb=81179eec4a84ff25c190a8a6a685b0b3b4dd2a37;hpb=c59971e18924f44c5e2b234c5208c67c573aaad7 diff --git a/server.h b/server.h index 494c326e..98262af8 100644 --- a/server.h +++ b/server.h @@ -34,17 +34,22 @@ enum { FIO_NET_CMD_QUIT = 1, FIO_NET_CMD_EXIT = 2, FIO_NET_CMD_JOB = 3, - FIO_NET_CMD_TEXT = 4, - FIO_NET_CMD_TS = 5, - FIO_NET_CMD_GS = 6, - FIO_NET_CMD_ETA = 7, - FIO_NET_CMD_PROBE = 8, + FIO_NET_CMD_JOBLINE = 4, + FIO_NET_CMD_TEXT = 5, + FIO_NET_CMD_TS = 6, + FIO_NET_CMD_GS = 7, + FIO_NET_CMD_ETA = 8, + FIO_NET_CMD_PROBE = 9, + FIO_NET_CMD_START = 10, + FIO_NET_CMD_STOP = 11, FIO_NET_CMD_F_MORE = 1UL << 0, /* crc does not include the crc fields */ FIO_NET_CMD_CRC_SZ = sizeof(struct fio_net_cmd) - 2 * sizeof(uint16_t), + + FIO_NET_CMD_JOBLINE_ARGV = 128, }; struct cmd_ts_pdu { @@ -59,6 +64,11 @@ struct cmd_probe_pdu { uint8_t fio_patch; }; +struct cmd_line_pdu { + uint16_t argc; + uint8_t argv[FIO_NET_CMD_JOBLINE_ARGV][64]; +}; + extern int fio_start_server(int); extern int fio_server_text_output(const char *, unsigned int len); extern int fio_server_log(const char *format, ...); @@ -76,6 +86,7 @@ extern int fio_clients_connect(void); extern int fio_clients_send_ini(const char *); extern int fio_handle_clients(void); extern void fio_client_add(const char *); +extern void fio_client_add_cmd_option(const char *, 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);