summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-31 18:43:29 +0200
committerGravatar Jonathan Beck2008-08-31 19:33:19 +0200
commit5dc380594ad755dd5a9d2cad246e5dcb5480350d (patch)
treec90811184619c86f920872e9eb84f35604735779 /src/ifuse.c
parent8333ca944cc56b4da1ab418c0b890f96f5135210 (diff)
downloadlibimobiledevice-5dc380594ad755dd5a9d2cad246e5dcb5480350d.tar.gz
libimobiledevice-5dc380594ad755dd5a9d2cad246e5dcb5480350d.tar.bz2
prefix public enum with IPHONE_
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 6d2bae0..353188e 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -76,7 +76,7 @@ static int ifuse_create(const char *path, mode_t mode, struct fuse_file_info *fi
76 iphone_afc_file_t file; 76 iphone_afc_file_t file;
77 iphone_afc_client_t afc = fuse_get_context()->private_data; 77 iphone_afc_client_t afc = fuse_get_context()->private_data;
78 78
79 iphone_afc_open_file(afc, path, AFC_FILE_WRITE, &file); 79 iphone_afc_open_file(afc, path, IPHONE_AFC_FILE_WRITE, &file);
80 fh_index++; 80 fh_index++;
81 fi->fh = fh_index; 81 fi->fh = fh_index;
82 g_hash_table_insert(file_handles, &fh_index, file); 82 g_hash_table_insert(file_handles, &fh_index, file);
@@ -89,11 +89,11 @@ static int ifuse_open(const char *path, struct fuse_file_info *fi) {
89 uint32_t mode = 0; 89 uint32_t mode = 0;
90 90
91 if ((fi->flags & 3) == O_RDWR || (fi->flags & 3) == O_WRONLY) { 91 if ((fi->flags & 3) == O_RDWR || (fi->flags & 3) == O_WRONLY) {
92 mode = AFC_FILE_READ; 92 mode = IPHONE_AFC_FILE_READ;
93 } else if ((fi->flags & 3) == O_RDONLY) { 93 } else if ((fi->flags & 3) == O_RDONLY) {
94 mode = AFC_FILE_READ; 94 mode = IPHONE_AFC_FILE_READ;
95 } else { 95 } else {
96 mode = AFC_FILE_READ; 96 mode = IPHONE_AFC_FILE_READ;
97 } 97 }
98 98
99 iphone_afc_open_file(afc, path, mode, &file); 99 iphone_afc_open_file(afc, path, mode, &file);
@@ -235,7 +235,7 @@ int ifuse_truncate(const char *path, off_t size) {
235 int result = 0; 235 int result = 0;
236 iphone_afc_client_t afc = fuse_get_context()->private_data; 236 iphone_afc_client_t afc = fuse_get_context()->private_data;
237 iphone_afc_file_t tfile = NULL; 237 iphone_afc_file_t tfile = NULL;
238 iphone_afc_open_file(afc, path, AFC_FILE_READ, &tfile); 238 iphone_afc_open_file(afc, path, IPHONE_AFC_FILE_READ, &tfile);
239 if (!tfile) return -1; 239 if (!tfile) return -1;
240 240
241 result = iphone_afc_truncate_file(afc, tfile, size); 241 result = iphone_afc_truncate_file(afc, tfile, size);