summaryrefslogtreecommitdiffstats
path: root/src/fuse/helper.h
diff options
context:
space:
mode:
authorSimon Rettberg2015-04-24 17:13:31 +0200
committerSimon Rettberg2015-04-24 17:13:31 +0200
commitee62ca14800eb27e51038a78a0dab4f71b6be31f (patch)
tree11bc7d301dafd884dfdfe52bf91d75dc84a83dfb /src/fuse/helper.h
parentFuse (diff)
downloaddnbd3-ee62ca14800eb27e51038a78a0dab4f71b6be31f.tar.gz
dnbd3-ee62ca14800eb27e51038a78a0dab4f71b6be31f.tar.xz
dnbd3-ee62ca14800eb27e51038a78a0dab4f71b6be31f.zip
[FUSE] Integrate into cmake build process
Diffstat (limited to 'src/fuse/helper.h')
-rw-r--r--src/fuse/helper.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/fuse/helper.h b/src/fuse/helper.h
new file mode 100644
index 0000000..1c972e4
--- /dev/null
+++ b/src/fuse/helper.h
@@ -0,0 +1,29 @@
+#ifndef IMAGEHELPER_H
+#define IMAGEHELPER_H
+
+#include "../protocol.h"
+#include <netdb.h>
+#include <stdio.h>
+#include <string.h>
+#include <errno.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <inttypes.h>
+
+
+typedef struct log_info {
+ uint64_t imageSize;
+ uint64_t receivedBytes;
+ uint64_t imageBlockCount;
+ uint8_t *blockRequestCount;
+} log_info;
+
+
+
+void printLog(log_info *info);
+
+bool sock_printable(struct sockaddr *addr, socklen_t addrLen, char *output, int len);
+
+int connect_to_server(char *server_adress, int port);
+
+#endif