13a0a7215Sthreedeyes/*
23a0a7215Sthreedeyes	Copyright 1999-2001, Be Incorporated.   All Rights Reserved.
33a0a7215Sthreedeyes	This file may be used under the terms of the Be Sample Code License.
43a0a7215Sthreedeyes*/
53a0a7215Sthreedeyes/* fake_attributes.h
63a0a7215Sthreedeyes * handles mime type information for ntfs
73a0a7215Sthreedeyes * gets/sets mime information in vnode
83a0a7215Sthreedeyes */
93a0a7215Sthreedeyes
103a0a7215Sthreedeyes#ifndef NTFS_FAKE_ATTR_H_
113a0a7215Sthreedeyes#define NTFS_FAKE_ATTR_H_
123a0a7215Sthreedeyes
133a0a7215Sthreedeyes#include <fs_attr.h>
143a0a7215Sthreedeyes
155d9f944fSJulian Harnathstatus_t set_mime_type(vnode *node, const char *filename);
163a0a7215Sthreedeyes
173a0a7215Sthreedeyesstatus_t fake_open_attrib_dir(fs_volume *_vol, fs_vnode *_node,
183a0a7215Sthreedeyes	void **_cookie);
193a0a7215Sthreedeyesstatus_t fake_close_attrib_dir(fs_volume *_vol, fs_vnode *_node,
203a0a7215Sthreedeyes	void *_cookie);
213a0a7215Sthreedeyesstatus_t fake_free_attrib_dir_cookie(fs_volume *_vol, fs_vnode *_node,
223a0a7215Sthreedeyes	void *_cookie);
233a0a7215Sthreedeyesstatus_t fake_rewind_attrib_dir(fs_volume *_vol, fs_vnode *_node,
243a0a7215Sthreedeyes	void *_cookie);
253a0a7215Sthreedeyesstatus_t fake_read_attrib_dir(fs_volume *_vol, fs_vnode *_node, void *_cookie,
263a0a7215Sthreedeyes	struct dirent *buf, size_t bufsize, uint32 *num);
27157d8266Sthreedeyesstatus_t fake_create_attrib(fs_volume *_vol, fs_vnode *_node, const char *name,
28157d8266Sthreedeyes	uint32 type, int openMode, void** _cookie);
293a0a7215Sthreedeyesstatus_t fake_open_attrib(fs_volume *_vol, fs_vnode *_node, const char *name,
303a0a7215Sthreedeyes	int openMode, void **_cookie);
313a0a7215Sthreedeyesstatus_t fake_close_attrib(fs_volume *_vol, fs_vnode *_node, void *cookie);
323a0a7215Sthreedeyesstatus_t fake_free_attrib_cookie(fs_volume *_vol, fs_vnode *_node,
333a0a7215Sthreedeyes	void *cookie);
343a0a7215Sthreedeyesstatus_t fake_read_attrib_stat(fs_volume *_vol, fs_vnode *_node, void *cookie,
353a0a7215Sthreedeyes	struct stat *stat);
363a0a7215Sthreedeyesstatus_t fake_read_attrib(fs_volume *_vol, fs_vnode *_node, void *cookie,
373a0a7215Sthreedeyes	off_t pos,void *buffer, size_t *_length);
383a0a7215Sthreedeyesstatus_t fake_write_attrib(fs_volume *_vol, fs_vnode *_node, void *cookie,
393a0a7215Sthreedeyes	off_t pos,	const void *buffer, size_t *_length);
405d9f944fSJulian Harnath
413a0a7215Sthreedeyes#endif //NTFS_FAKE_ATTR_H_
42