fio: factor out fio initialization code
[fio.git] / client.h
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
20 struct 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
29 extern struct client_ops fio_client_ops;
30
31 #endif
32