Add hashtable implementation to maintain a local copy of the remote

This commit is contained in:
josch
2014-09-25 13:05:17 +02:00
parent 8ac6e70609
commit b4045f19ce
8 changed files with 942 additions and 8 deletions

View File

@@ -49,7 +49,7 @@ int mfconn_api_folder_create(mfconn * conn, const char *parent,
const char *name);
long mfconn_api_folder_get_content(mfconn * conn, int mode,
mffolder * folder_curr,
const char *folderkey,
mffolder *** folder_result,
mffile *** file_result);

View File

@@ -46,7 +46,7 @@ static int _decode_folder_get_content_files(mfhttp * conn, void *data);
* pointers to them.
*/
long
mfconn_api_folder_get_content(mfconn * conn, int mode, mffolder * folder_curr,
mfconn_api_folder_get_content(mfconn * conn, int mode, const char *folderkey,
mffolder *** mffolder_result,
mffile *** mffile_result)
{
@@ -54,7 +54,6 @@ mfconn_api_folder_get_content(mfconn * conn, int mode, mffolder * folder_curr,
int retval;
char *content_type;
mfhttp *http;
const char *folderkey;
if (conn == NULL)
return -1;
@@ -64,7 +63,6 @@ mfconn_api_folder_get_content(mfconn * conn, int mode, mffolder * folder_curr,
else
content_type = "files";
folderkey = folder_get_key(folder_curr);
if (folderkey == NULL) {
api_call = mfconn_create_signed_get(conn, 0, "folder/get_content.php",
"?content_type=%s"