Lines 1-18
Link Here
|
1 |
--- mtpfs.h.orig 2009-01-04 03:03:56.000000000 +0800 |
1 |
--- mtpfs.h 2012-02-23 20:37:14.000000000 -0800 |
2 |
+++ mtpfs.h 2009-01-04 03:05:16.000000000 +0800 |
2 |
+++ mtpfs.h 2012-12-12 19:10:01.055523958 -0800 |
3 |
@@ -18,8 +18,9 @@ |
3 |
@@ -18,7 +18,9 @@ |
4 |
#include <fcntl.h> |
4 |
#include <fcntl.h> |
5 |
#include <dirent.h> |
5 |
#include <dirent.h> |
6 |
#include <errno.h> |
6 |
#include <errno.h> |
7 |
-#include <sys/statfs.h> |
7 |
-#include <sys/statfs.h> |
8 |
- |
|
|
9 |
+#include <sys/param.h> |
8 |
+#include <sys/param.h> |
10 |
+#include <sys/mount.h> |
9 |
+#include <sys/mount.h> |
11 |
+#include <sys/statvfs.h> |
10 |
+#include <sys/statvfs.h> |
|
|
11 |
|
12 |
#include <libmtp.h> |
12 |
#include <libmtp.h> |
13 |
#include <glib.h> |
13 |
#include <glib.h> |
14 |
#include <id3tag.h> |
14 |
@@ -49,7 +51,7 @@ |
15 |
@@ -49,7 +50,7 @@ |
15 |
|
|
|
16 |
|
17 |
/* fuse functions */ |
18 |
-static void * mtpfs_init (void); |
19 |
+static void * mtpfs_init (struct fuse_conn_info *); |
20 |
static int mtpfs_blank (); |
21 |
static int mtpfs_release (const char *path, struct fuse_file_info *fi); |
22 |
void mtpfs_destroy (); |
23 |
@@ -62,7 +64,7 @@ |
16 |
static int mtpfs_unlink (const gchar * path); |
24 |
static int mtpfs_unlink (const gchar * path); |
17 |
static int mtpfs_mkdir (const char *path, mode_t mode); |
25 |
static int mtpfs_mkdir (const char *path, mode_t mode); |
18 |
static int mtpfs_rmdir (const char *path); |
26 |
static int mtpfs_rmdir (const char *path); |
Lines 20-23
Link Here
|
20 |
+static int mtpfs_statfs (const char *path, struct statvfs *stbuf); |
28 |
+static int mtpfs_statfs (const char *path, struct statvfs *stbuf); |
21 |
int calc_length(int f); |
29 |
int calc_length(int f); |
22 |
|
30 |
|
23 |
|
31 |
static LIBMTP_mtpdevice_t *device; |