summaryrefslogtreecommitdiffstats
path: root/src/ifuse.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-25 23:25:56 +0200
committerGravatar Jonathan Beck2008-08-31 19:32:27 +0200
commit6ac4ceb4c6ee63c279f4841381a3eb09598f3517 (patch)
tree37de86e9d99a56c2e4ef1e7b5db28bd252cd4a39 /src/ifuse.c
parentc042f7ca2731fa5c8a5aa13789f5901ae5a3af7a (diff)
downloadlibplist-6ac4ceb4c6ee63c279f4841381a3eb09598f3517.tar.gz
libplist-6ac4ceb4c6ee63c279f4841381a3eb09598f3517.tar.bz2
migrate main.c
Diffstat (limited to 'src/ifuse.c')
-rw-r--r--src/ifuse.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/src/ifuse.c b/src/ifuse.c
index 7672bb9..cc2072f 100644
--- a/src/ifuse.c
+++ b/src/ifuse.c
@@ -42,8 +42,8 @@
GHashTable *file_handles;
int fh_index = 0;
-iPhone *phone = NULL;
-lockdownd_client *control = NULL;
+iphone_device_t phone = NULL;
+iphone_lckd_client_t control = NULL;
int debug = 0;
@@ -52,22 +52,6 @@ static int ifuse_getattr(const char *path, struct stat *stbuf) {
AFCFile *file;
AFClient *afc = fuse_get_context()->private_data;
- memset(stbuf, 0, sizeof(struct stat));
- file = afc_get_file_info(afc, path);
- if (!file){
- res = -ENOENT;
- } else {
- stbuf->st_mode = file->type | (S_ISDIR(file->type) ? 0755 : 0644);
- stbuf->st_size = file->size;
- stbuf->st_blksize = 2048; // FIXME: Is this the actual block size used on the iPhone?
- stbuf->st_blocks = file->blocks;
- stbuf->st_uid = getuid();
- stbuf->st_gid = getgid();
-
- afc_close_file(afc,file);
- free(file);
- }
-
return res;
}