mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
Add support for updating local cache through patches
- refactor some code: - code handling the file cache is now in fuse/filecache.c - base36 and base16 encoding and decoding moved to utils/hash.c - mfshell: add "updates" command calling device/get_updates - add container class to store patch information as mfapi/patch.c - apicalls: store more info retrieved by file/get_info - apicalls: add device/get_updates - apicalls: add device/get_patch
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "file.h"
|
||||
#include "folder.h"
|
||||
#include "patch.h"
|
||||
#include "mfconn.h"
|
||||
|
||||
#define MFAPI_MAX_LEN_KEY 15
|
||||
@@ -81,4 +82,15 @@ int mfconn_api_device_get_status(mfconn * conn,
|
||||
int mfconn_api_device_get_changes(mfconn * conn, uint64_t revision, struct mfconn_device_change
|
||||
**changes);
|
||||
|
||||
int mfconn_api_device_get_updates(mfconn * conn,
|
||||
const char *quickkey,
|
||||
uint64_t revision,
|
||||
uint64_t target_revision,
|
||||
mfpatch *** patches);
|
||||
|
||||
int mfconn_api_device_get_patch(mfconn * conn, mfpatch * patch,
|
||||
const char *quickkey,
|
||||
uint64_t source_revision,
|
||||
uint64_t target_revision);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user