xref: /haiku/src/add-ons/kernel/file_systems/netfs/headers/shared/NodeInfo.h (revision 7749d0bb0c358a3279b1b9cc76d8376e900130a5)
1 // NodeInfo.h
2 
3 #ifndef NET_FS_NODE_INFO_H
4 #define NET_FS_NODE_INFO_H
5 
6 #include <sys/stat.h>
7 
8 #include "Request.h"
9 #include "ServerNodeID.h"
10 
11 struct NodeInfo : public RequestMember {
12 	virtual	void				ShowAround(RequestMemberVisitor* visitor);
13 
14 	inline	NodeID				GetID() const;
15 
16 	struct stat	st;
17 	int64		revision;
18 };
19 
20 // GetID
21 inline
22 NodeID
23 NodeInfo::GetID() const
24 {
25 	return NodeID(st.st_dev, st.st_ino);
26 }
27 
28 #endif	// NET_FS_NODE_INFO_H
29