Various GUI updates
[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
04cc6b77 20typedef void (*client_thread_status_display_op)(char *status_message, double perc);
ba936c4b 21
dd366728
SC
22struct 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;
0420ba6a 27 client_eta_op eta;
dd366728 28 client_probe_op probe;
ba936c4b 29 client_thread_status_display_op thread_status_display;
dd366728
SC
30};
31
32extern struct client_ops fio_client_ops;
33
34#endif
35