summaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-02-29 11:44:34 +0100
committerJens Axboe <axboe@kernel.dk>2012-02-29 11:44:34 +0100
commit0f92bd205af256af6d4a12cc8883f68b4d23ca85 (patch)
tree172cafc9e1ef00f17783a9a967d6fc2834ee58f4 /client.h
parent0420ba6a85617cb02e196ac92e519191dafc6c52 (diff)
downloadfio-0f92bd205af256af6d4a12cc8883f68b4d23ca85.tar.gz
fio-0f92bd205af256af6d4a12cc8883f68b4d23ca85.tar.bz2
Move client structure into client.h
GUI will need it. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'client.h')
-rw-r--r--client.h40
1 files changed, 39 insertions, 1 deletions
diff --git a/client.h b/client.h
index f5ec9a3e..acf31ff0 100644
--- a/client.h
+++ b/client.h
@@ -1,9 +1,47 @@
#ifndef CLIENT_H
#define CLIENT_H
-struct fio_client;
+#include <sys/socket.h>
+#include <sys/un.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
struct fio_net_cmd;
+struct fio_client {
+ struct flist_head list;
+ struct flist_head hash_list;
+ struct flist_head arg_list;
+ union {
+ struct sockaddr_in addr;
+ struct sockaddr_in6 addr6;
+ struct sockaddr_un addr_un;
+ };
+ char *hostname;
+ int port;
+ int fd;
+
+ char *name;
+
+ int state;
+
+ int skip_newline;
+ int is_sock;
+ int disk_stats_shown;
+ unsigned int jobs;
+ int error;
+ int ipv6;
+ int sent_job;
+
+ struct flist_head eta_list;
+ struct client_eta *eta_in_flight;
+
+ struct flist_head cmd_list;
+
+ uint16_t argc;
+ char **argv;
+};
+
typedef void (*client_text_op_func)(struct fio_client *client,
FILE *f, __u16 pdu_len, const char *buf);