Files
mediafire-fuse/fuse/filecache.h

34 lines
1.4 KiB
C
Raw Normal View History

/*
* Copyright (C) 2014 Johannes Schauer <j.schauer@email.de>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2, as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 51
* Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __FUSE_FILECACHE_H__
#define __FUSE_FILECACHE_H__
2014-12-01 22:03:09 +01:00
int filecache_open_file(const char *quickkey,
uint64_t local_revision,
uint64_t remote_revision, uint64_t fsize,
const unsigned char *fhash,
const char *filecache, mfconn * conn,
mode_t mode, bool update);
int filecache_upload_patch(const char *quickkey,
uint64_t local_revision,
const char *filecache, mfconn * conn);
#endif