diff options
author | Jonathan Beck | 2008-08-31 18:43:29 +0200 |
---|---|---|
committer | Jonathan Beck | 2008-08-31 19:33:19 +0200 |
commit | 5dc380594ad755dd5a9d2cad246e5dcb5480350d (patch) | |
tree | c90811184619c86f920872e9eb84f35604735779 /src/ifuse.c | |
parent | 8333ca944cc56b4da1ab418c0b890f96f5135210 (diff) | |
download | libplist-5dc380594ad755dd5a9d2cad246e5dcb5480350d.tar.gz libplist-5dc380594ad755dd5a9d2cad246e5dcb5480350d.tar.bz2 |
prefix public enum with IPHONE_
Diffstat (limited to 'src/ifuse.c')
-rw-r--r-- | src/ifuse.c | 10 |
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 iphone_afc_file_t file; iphone_afc_client_t afc = fuse_get_context()->private_data; - iphone_afc_open_file(afc, path, AFC_FILE_WRITE, &file); + iphone_afc_open_file(afc, path, IPHONE_AFC_FILE_WRITE, &file); fh_index++; fi->fh = fh_index; 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) { uint32_t mode = 0; if ((fi->flags & 3) == O_RDWR || (fi->flags & 3) == O_WRONLY) { - mode = AFC_FILE_READ; + mode = IPHONE_AFC_FILE_READ; } else if ((fi->flags & 3) == O_RDONLY) { - mode = AFC_FILE_READ; + mode = IPHONE_AFC_FILE_READ; } else { - mode = AFC_FILE_READ; + mode = IPHONE_AFC_FILE_READ; } iphone_afc_open_file(afc, path, mode, &file); @@ -235,7 +235,7 @@ int ifuse_truncate(const char *path, off_t size) { int result = 0; iphone_afc_client_t afc = fuse_get_context()->private_data; iphone_afc_file_t tfile = NULL; - iphone_afc_open_file(afc, path, AFC_FILE_READ, &tfile); + iphone_afc_open_file(afc, path, IPHONE_AFC_FILE_READ, &tfile); if (!tfile) return -1; result = iphone_afc_truncate_file(afc, tfile, size); |