summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlulf@carrot.studby.ntnu.no <lulf@carrot.studby.ntnu.no>2007-11-21 10:40:14 +0100
committerlulf@carrot.studby.ntnu.no <lulf@carrot.studby.ntnu.no>2007-11-21 10:40:14 +0100
commiteecaa0e7250a2c0cc9f019e6a5dc86582d284800 (patch)
treeb6b8e3519f73cd3f514c9c6624a81e845f51c56f
parent74d3d5ca1399fdf578778fd72e782079d2a6f5d7 (diff)
- Add node structure skeleton.
- Revert vnops changes.
-rw-r--r--include/mp3node.h9
-rwxr-xr-xsrc/mp3_vnops.c6
2 files changed, 12 insertions, 3 deletions
diff --git a/include/mp3node.h b/include/mp3node.h
new file mode 100644
index 0000000..c7e9140
--- /dev/null
+++ b/include/mp3node.h
@@ -0,0 +1,9 @@
+#ifndef _MP3NODE_H_
+#define _MP3NODE_H_
+struct ID3Tag;
+
+struct mnode {
+ ID3Tag *tag;
+ void *data;
+};
+#endif
diff --git a/src/mp3_vnops.c b/src/mp3_vnops.c
index fbf773c..b9e191a 100755
--- a/src/mp3_vnops.c
+++ b/src/mp3_vnops.c
@@ -23,7 +23,7 @@ static int mp3_getattr (const char *path, struct stat *stbuf)
return 0;
}
- return ENOENT;
+ return -ENOENT;
}
static int mp3_readdir (const char *path, void *buf, fuse_fill_dir_t filler,
@@ -44,7 +44,7 @@ static int mp3_open (const char *path, struct fuse_file_info *fi)
if (strcmp (path, "/MP3Z") == 0)
return 0;
- return ENOENT;
+ return -ENOENT;
}
static int mp3_read (const char *path, char *buf, size_t size, off_t offset,
@@ -55,7 +55,7 @@ static int mp3_read (const char *path, char *buf, size_t size, off_t offset,
return 12;
}
- return ENOENT;
+ return -ENOENT;
}
static struct fuse_operations mp3_oper = {