Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

Fuse::DirNode Interface Reference

Inheritance diagram for Fuse::DirNode:

Inheritance graph
[legend]
Collaboration diagram for Fuse::DirNode:

Collaboration graph
[legend]
List of all members.

Detailed Description

Interface for operations on directories.


Public Member Functions

IntPtr Open (out int errCode)
int Release (IntPtr fh)
int ReadDir (IntPtr fh, ulong offset, ReadDirCallback cb)
Node Lookup (string name, ref int errCode)


Member Function Documentation

Node Fuse::DirNode::Lookup string  name,
ref int  errCode
 

if null is returned, then errCode will be used as the error code. The error code should be a negated errno (see enum Fuse.ErrorCode).

Implemented in Sulf::DirNodeWrapper, Sulf::MapFS, and Sulf::PassthruDirNode.

IntPtr Fuse::DirNode::Open out int  errCode  ) 
 

return directory handle (or fill errCode on error). This corresponds to an opendir() call.

Implemented in Sulf::DirNodeWrapper, Sulf::MapFS, and Sulf::PassthruDirNode.

int Fuse::DirNode::ReadDir IntPtr  fh,
ulong  offset,
ReadDirCallback  cb
 

Read directory entries, starting at the given offset.

Note that Unix directories normally contain special files "." and "..", so these should be added first, eg:

          public int ReadDir( IntPtr fh, ulong offset, ReadDirCallback cb )
          {
              // add standard entries
              cb(".", 0, (int)ModeFlags.Directory, 0);
              cb("..", 0, (int)ModeFlags.Directory, 0);

              // ...

              return 0;
          }

Returns:
0 for success, or a negative error number on failure (see Fuse.ErrorCode).

Implemented in Sulf::DirNodeWrapper, Sulf::MapFS, and Sulf::PassthruDirNode.

int Fuse::DirNode::Release IntPtr  fh  ) 
 

Release directory handle. This corresponds to a closedir() call.

Implemented in Sulf::DirNodeWrapper, Sulf::MapFS, and Sulf::PassthruDirNode.


The documentation for this interface was generated from the following file:
Generated on Wed May 18 23:16:51 2005 for SULF by  doxygen 1.4.3