gnunet-fuse

GNUnet file-sharing directory mounting via FUSE
Log | Files | Refs | Submodules | README | LICENSE

commit add3740dc9f3d6cafe030afbb45b8f13cd26f9cd
parent 72b3524cf9bfb7f55e4416d2a068a93372117d8d
Author: Mauricio Günther <mauricio@140774ce-b5e7-0310-ab8b-a85725594a96>
Date:   Wed, 21 Mar 2012 06:56:07 +0000

added missing gnunet-fuse.h


Diffstat:
Asrc/ext/gnunet-fuse.h | 70++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+), 0 deletions(-)

diff --git a/src/ext/gnunet-fuse.h b/src/ext/gnunet-fuse.h @@ -0,0 +1,70 @@ +/* + * gnfs.h - types and stuff + * + * Created on: Mar 16, 2012 + * Author: mg + * + * + * + * This file is part of gnunet-fuse. + * Copyright (C) 2007 David Barksdale + * + * gnunet-fuse is free software; you can redistribute it and/or + * modify if under the terms of version 2 of the GNU General Public License + * as published by the Free Software Foundation. + * + * gnunet-fuse 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#ifndef GNUNETFUSE_H_ +#define GNUNETFUSE_H_ + +#include <gnunet/platform.h> +#include "gnunet/gnunet_common.h" +#include "gnunet/gnunet_configuration_lib.h" +#include "gnunet/gnunet_crypto_lib.h" +#include "gnunet/gnunet_directories.h" +#include "gnunet/gnunet_getopt_lib.h" +#include "gnunet/gnunet_os_lib.h" +#include "gnunet/gnunet_program_lib.h" +#include "gnunet/gnunet_resolver_service.h" +#include "gnunet/gnunet_scheduler_lib.h" +#include <fuse.h> + + + +/* Variables from commandline for gnunet-fuse */ + +static char *source; +static char *directory; + + + +/* FUSE function files */ +int gn_getattr(const char *path, struct stat *stbuf); +int gn_mknod(const char *path, mode_t mode, dev_t rdev); +int gn_mkdir(const char *path, mode_t mode); +int gn_unlink(const char *path); +int gn_rmdir(const char *path); +int gn_rename(const char *from, const char *to); +int gn_truncate(const char *path, off_t size); +int gn_open(const char *path, struct fuse_file_info *fi); +int gn_read(const char *path, char *buf, size_t size, off_t offset, + struct fuse_file_info *fi); +int gn_write(const char *path, const char *buf, size_t size, off_t offset, + struct fuse_file_info *fi); +int gn_release(const char *path, struct fuse_file_info *fi); +int gn_readdir(const char *path, void *buf, fuse_fill_dir_t filler, + off_t offset, struct fuse_file_info *fi); +int gn_utimens(const char *path, const struct timespec ts[2]); + + +#endif /* GNUNETFUSE_H_ */