xref: /haiku/src/add-ons/kernel/file_systems/packagefs/nodes/AttributeCookie.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef ATTRIBUTE_COOKIE_H
6 #define ATTRIBUTE_COOKIE_H
7 
8 
9 #include <sys/stat.h>
10 
11 #include <SupportDefs.h>
12 
13 
14 class AttributeCookie {
15 public:
16 	virtual						~AttributeCookie();
17 
18 	virtual	status_t			Close();
19 	virtual	status_t			ReadAttribute(off_t offset, void* buffer,
20 									size_t* bufferSize) = 0;
21 	virtual	status_t			ReadAttributeStat(struct stat* st) = 0;
22 };
23 
24 
25 #endif	// ATTRIBUTE_COOKIE_H
26