fio: make gui actually do something
[fio.git] / client.h
CommitLineData
dd366728
SC
1#ifndef CLIENT_H
2#define CLIENT_H
3
4struct fio_client;
5struct fio_net_cmd;
6
7typedef void (*client_text_op_func)(struct fio_client *client,
8 FILE *f, __u16 pdu_len, const char *buf);
9
10typedef void (*client_disk_util_op_func)(struct fio_client *client, struct fio_net_cmd *cmd);
11
12typedef void (*client_thread_status_op)(struct fio_net_cmd *cmd);
13
14typedef void (*client_group_stats_op)(struct fio_net_cmd *cmd);
15
16typedef void (*client_eta_op)(struct fio_client *client, struct fio_net_cmd *cmd);
17
18typedef void (*client_probe_op)(struct fio_client *client, struct fio_net_cmd *cmd);
19
20struct client_ops {
21 client_text_op_func text_op;
22 client_disk_util_op_func disk_util;
23 client_thread_status_op thread_status;
24 client_group_stats_op group_stats;
25 client_eta_op eta;
26 client_probe_op probe;
27};
28
29extern struct client_ops fio_client_ops;
30
31#endif
32