Stephen M. Cameron | dd36672 | 2012-02-24 08:17:30 +0100 | [diff] [blame] | 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 | |
Stephen M. Cameron | ba936c4 | 2012-02-24 08:17:31 +0100 | [diff] [blame] | 20 | typedef void (*client_thread_status_display_op)(char *status_message); |
| 21 | |
Stephen M. Cameron | dd36672 | 2012-02-24 08:17:30 +0100 | [diff] [blame] | 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; |
Stephen M. Cameron | ba936c4 | 2012-02-24 08:17:31 +0100 | [diff] [blame] | 29 | client_thread_status_display_op thread_status_display; |
Stephen M. Cameron | dd36672 | 2012-02-24 08:17:30 +0100 | [diff] [blame] | 30 | }; |
| 31 | |
| 32 | extern struct client_ops fio_client_ops; |
| 33 | |
| 34 | #endif |
| 35 | |