implement preliminary support to read files

* no writing yet
  * no delta updates yet - new versions will be retrieved fully
This commit is contained in:
josch
2014-10-27 14:17:03 +01:00
parent 21465f8943
commit 3db5ce5c42
7 changed files with 215 additions and 76 deletions

View File

@@ -20,7 +20,8 @@
#ifndef __MFAPI_FILE_H__
#define __MFAPI_FILE_H__
#include <sys/types.h>
#include <stdint.h>
#include <time.h>
typedef struct mffile mffile;
@@ -56,8 +57,6 @@ int file_set_onetime_link(mffile * file, const char *onetime_link);
const char *file_get_onetime_link(mffile * file);
ssize_t file_download_direct(mffile * file, const char *local_dir);
int file_set_size(mffile * file, uint64_t size);
uint64_t file_get_size(mffile * file);