1/*
2	Copyright 1999-2001, Be Incorporated.   All Rights Reserved.
3	This file may be used under the terms of the Be Sample Code License.
4*/
5/* fake_attributes.h
6 * handles mime type information for ntfs
7 * gets/sets mime information in vnode
8 */
9
10#ifndef NTFS_FAKE_ATTR_H_
11#define NTFS_FAKE_ATTR_H_
12
13#include <fs_attr.h>
14
15status_t set_mime_type(vnode *node, const char *filename);
16
17status_t fake_open_attrib_dir(fs_volume *_vol, fs_vnode *_node,
18	void **_cookie);
19status_t fake_close_attrib_dir(fs_volume *_vol, fs_vnode *_node,
20	void *_cookie);
21status_t fake_free_attrib_dir_cookie(fs_volume *_vol, fs_vnode *_node,
22	void *_cookie);
23status_t fake_rewind_attrib_dir(fs_volume *_vol, fs_vnode *_node,
24	void *_cookie);
25status_t fake_read_attrib_dir(fs_volume *_vol, fs_vnode *_node, void *_cookie,
26	struct dirent *buf, size_t bufsize, uint32 *num);
27status_t fake_create_attrib(fs_volume *_vol, fs_vnode *_node, const char *name,
28	uint32 type, int openMode, void** _cookie);
29status_t fake_open_attrib(fs_volume *_vol, fs_vnode *_node, const char *name,
30	int openMode, void **_cookie);
31status_t fake_close_attrib(fs_volume *_vol, fs_vnode *_node, void *cookie);
32status_t fake_free_attrib_cookie(fs_volume *_vol, fs_vnode *_node,
33	void *cookie);
34status_t fake_read_attrib_stat(fs_volume *_vol, fs_vnode *_node, void *cookie,
35	struct stat *stat);
36status_t fake_read_attrib(fs_volume *_vol, fs_vnode *_node, void *cookie,
37	off_t pos,void *buffer, size_t *_length);
38status_t fake_write_attrib(fs_volume *_vol, fs_vnode *_node, void *cookie,
39	off_t pos,	const void *buffer, size_t *_length);
40
41#endif //NTFS_FAKE_ATTR_H_
42