Commit | Line | Data |
---|---|---|
dd366728 SC |
1 | #ifndef CLIENT_H |
2 | #define CLIENT_H | |
3 | ||
4 | struct fio_client; | |
5 | struct fio_net_cmd; | |
6 | ||
7 | typedef void (*client_text_op_func)(struct fio_client *client, | |
8 | FILE *f, __u16 pdu_len, const char *buf); | |
9 | ||
10 | typedef void (*client_disk_util_op_func)(struct fio_client *client, struct fio_net_cmd *cmd); | |
11 | ||
12 | typedef void (*client_thread_status_op)(struct fio_net_cmd *cmd); | |
13 | ||
14 | typedef void (*client_group_stats_op)(struct fio_net_cmd *cmd); | |
15 | ||
16 | typedef void (*client_eta_op)(struct fio_client *client, struct fio_net_cmd *cmd); | |
17 | ||
18 | typedef void (*client_probe_op)(struct fio_client *client, struct fio_net_cmd *cmd); | |
19 | ||
04cc6b77 | 20 | typedef void (*client_thread_status_display_op)(char *status_message, double perc); |
ba936c4b | 21 | |
dd366728 SC |
22 | struct client_ops { |
23 | client_text_op_func text_op; | |
24 | client_disk_util_op_func disk_util; | |
25 | client_thread_status_op thread_status; | |
26 | client_group_stats_op group_stats; | |
27 | client_eta_op eta; | |
28 | client_probe_op probe; | |
ba936c4b | 29 | client_thread_status_display_op thread_status_display; |
dd366728 SC |
30 | }; |
31 | ||
32 | extern struct client_ops fio_client_ops; | |
33 | ||
34 | #endif | |
35 |