mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-23 16:02:18 +02:00
cut base64 and cJSON modules out. fix read!
this wasn't too bad
This commit is contained in:
parent
adf4330f54
commit
a45e9ae97a
6
.gitmodules
vendored
6
.gitmodules
vendored
|
@ -1,9 +1,3 @@
|
|||
[submodule "fs/cJSON"]
|
||||
path = fs/cJSON
|
||||
url = https://github.com/DaveGamble/cJSON.git
|
||||
[submodule "fs/base64"]
|
||||
path = fs/base64
|
||||
url = https://github.com/zhicheng/base64.git
|
||||
[submodule "fs/frozen"]
|
||||
path = fs/frozen
|
||||
url = https://github.com/cesanta/frozen.git
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 6148c6944469d629a94a1695eb91989030762ffc
|
1
fs/cJSON
1
fs/cJSON
|
@ -1 +0,0 @@
|
|||
Subproject commit 2c914c073d71701b596fa58a84529712a0bd1eeb
|
|
@ -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); */
|
||||
|
|
Loading…
Reference in a new issue