diff options
Diffstat (limited to 'fs')
m--------- | fs/base64 | 0 | ||||
m--------- | fs/cJSON | 0 | ||||
-rw-r--r-- | fs/tabfs.c | 9 |
3 files changed, 2 insertions, 7 deletions
diff --git a/fs/base64 b/fs/base64 deleted file mode 160000 -Subproject 6148c6944469d629a94a1695eb91989030762ff diff --git a/fs/cJSON b/fs/cJSON deleted file mode 160000 -Subproject 2c914c073d71701b596fa58a84529712a0bd1ee @@ -11,15 +11,9 @@ #include <pthread.h> #include <fuse.h> -#include "cJSON/cJSON.h" -#include "cJSON/cJSON.c" - #include "frozen/frozen.h" #include "frozen/frozen.c" -#include "base64/base64.h" -#include "base64/base64.c" - FILE* l; static void send_request(const char *fmt, ...) { @@ -191,10 +185,11 @@ tabfs_read(const char *path, char *buf, size_t size, off_t offset, send_request("{op: %Q, path: %Q, size: %d, offset: %d, fh: %d, flags: %d}", "read", path, size, offset, fi->fh, fi->flags); + // FIXME: base64 char *scan_buf; receive_response("{buf: %Q}", &scan_buf); snprintf(buf, size, "%s", scan_buf); free(scan_buf); - return 0; + return strlen(scan_buf); /* MAKE_REQ("read", { */ /* cJSON_AddStringToObject(req, "path", path); */ |