Fix a gcc 4.6 warning.
[usmb.git] / usmb_file.h
blobf9ed6593ffa5f632081aac22c412d63c0d87e111
1 /* usmb - mount SMB shares via FUSE and Samba
2 * Copyright (C) 2006-2009 Geoff Johnstone
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 as
6 * published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef USMB_FILE_H
18 #define USMB_FILE_H
20 #include <fuse.h>
21 #include <stddef.h>
22 #include <sys/types.h>
24 int usmb_getattr (const char *filename, struct stat *st);
25 int usmb_fgetattr (const char *filename, struct stat *st,
26 struct fuse_file_info *fi);
27 int usmb_unlink (const char *filename);
28 int usmb_open (const char *filename, struct fuse_file_info *fi);
29 int usmb_release (const char *filename, struct fuse_file_info *fi);
30 int usmb_read (const char *filename, char *buff, size_t len, off_t off,
31 struct fuse_file_info *fi);
32 int usmb_write (const char *filename, const char *buff, size_t len, off_t off,
33 struct fuse_file_info *fi);
34 int usmb_create (const char *filename, mode_t mode,
35 struct fuse_file_info *fi);
36 int usmb_rename (const char *from, const char *to);
37 int usmb_utime (const char *filename, struct utimbuf *utb);
38 int usmb_truncate (const char *filename, off_t newsize);
39 int usmb_chmod (const char *filename, mode_t mode);
40 int usmb_ftruncate (const char *path, off_t size,
41 struct fuse_file_info *fi);
43 #endif