mirror of
https://github.com/xorgy/mediafire-fuse
synced 2026-01-13 13:14:29 -08:00
now that we got rid of global variables, we can split the operations into their own file
This commit is contained in:
51
fuse/operations.h
Normal file
51
fuse/operations.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_OPERATIONS_H__
|
||||
#define __FUSE_OPERATIONS_H__
|
||||
|
||||
#include <fuse/fuse.h>
|
||||
#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
#include "../mfapi/mfconn.h"
|
||||
#include "hashtbl.h"
|
||||
|
||||
struct mediafirefs_context_private {
|
||||
mfconn *conn;
|
||||
folder_tree *tree;
|
||||
char *configfile;
|
||||
char *dircache;
|
||||
char *filecache;
|
||||
};
|
||||
|
||||
int mediafirefs_getattr(const char *path, struct stat *stbuf);
|
||||
int mediafirefs_readdir(const char *path, void *buf,
|
||||
fuse_fill_dir_t filldir, off_t offset,
|
||||
struct fuse_file_info *info);
|
||||
void mediafirefs_destroy();
|
||||
int mediafirefs_mkdir(const char *path, mode_t mode);
|
||||
int mediafirefs_rmdir(const char *path);
|
||||
int mediafirefs_open(const char *path,
|
||||
struct fuse_file_info *file_info);
|
||||
int mediafirefs_read(const char *path, char *buf, size_t size,
|
||||
off_t offset,
|
||||
struct fuse_file_info *file_info);
|
||||
int mediafirefs_release(const char *path,
|
||||
struct fuse_file_info *file_info);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user