summaryrefslogtreecommitdiffstats
path: root/src/fuse/main.h
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-11 16:14:59 +0200
committerSimon Rettberg2024-05-13 18:26:42 +0200
commitef86f10d71bf2081b17025e0ea2ad020845233bc (patch)
tree360536a6be044397f88fced139c4db6bdfc8759c /src/fuse/main.h
parent[FUSE] Rename COW API endpoints again (diff)
downloaddnbd3-ef86f10d71bf2081b17025e0ea2ad020845233bc.tar.gz
dnbd3-ef86f10d71bf2081b17025e0ea2ad020845233bc.tar.xz
dnbd3-ef86f10d71bf2081b17025e0ea2ad020845233bc.zip
[FUSE] More cleanup and minor fixes
- Add support for aborting session and further uploads via SIGQUIT - Make API versioned - Change it to "uuid" everywhere instead of a mix of uuid and guid - Server can now tell us to wait with further uploads - merge request is now urlencoded POST instead of mime data
Diffstat (limited to 'src/fuse/main.h')
-rw-r--r--src/fuse/main.h32
1 files changed, 3 insertions, 29 deletions
diff --git a/src/fuse/main.h b/src/fuse/main.h
index 721f251..53d81e4 100644
--- a/src/fuse/main.h
+++ b/src/fuse/main.h
@@ -1,39 +1,13 @@
#ifndef _MAIN_H_
#define _MAIN_H_
-#include "cowfile.h"
-#include "connection.h"
-#include "helper.h"
-#include <dnbd3/version.h>
-#include <dnbd3/build.h>
-#include <dnbd3/shared/protocol.h>
-#include <dnbd3/shared/log.h>
-
#define FUSE_USE_VERSION 30
-#include <dnbd3/config.h>
#include <fuse_lowlevel.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <assert.h>
-/* for printing uint */
-#define __STDC_FORMAT_MACROS
-#include <inttypes.h>
-#include <getopt.h>
-#include <time.h>
-#include <signal.h>
-#include <pthread.h>
-#define debugf(...) do { logadd( LOG_DEBUG1, __VA_ARGS__ ); } while (0)
-
-#define INO_ROOT (1)
-#define INO_STATS (2)
-#define INO_IMAGE (3)
+#include <stdbool.h>
extern bool useCow;
extern bool cow_merge_after_upload;
void image_ll_getattr( fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi );
+void main_shutdown(void);
-#endif /* main_H_ */ \ No newline at end of file
+#endif /* main_H_ */