From 6c9647c1866b49d61ea3ce7d9201450fa0497b52 Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Thu, 1 Feb 2001 02:03:25 +0000 Subject: More cleanup: - Removed bool.h and references to it everywhere. This is checked now in ./configure and the stuff went into acconfig.h - Replaced ugly bufferStore-based method of returning directory entries from rfsv::readdir() by a cleaner way. (A new, separate class PlpDirent is returned now.) With the old implementation, the caller has to know about the layout of the entries. Also, the old implementation was not 64bit aware. - Similar replacement done for rfsv::dir(). This now returns the entries in a standard STL container (deque) instead of a bufferArray. - Started renaming #include statements for standard library headers from the old form to the new recommended form. --- lib/rfsv32.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/rfsv32.h') diff --git a/lib/rfsv32.h b/lib/rfsv32.h index fb4c624..2ef584b 100644 --- a/lib/rfsv32.h +++ b/lib/rfsv32.h @@ -2,13 +2,14 @@ #define _rfsv32_h_ #include "rfsv.h" +#include "plpdirent.h" class rfsv32 : public rfsv { public: rfsv32(ppsocket *); - Enum dir(const char * const, bufferArray &); + Enum dir(const char * const, PlpDir &); Enum dircount(const char * const, long &); Enum copyFromPsion(const char * const, const char * const, void *, cpCallback_t); Enum copyToPsion(const char * const, const char * const, void *, cpCallback_t); @@ -35,7 +36,7 @@ public: Enum devlist(long &); Enum devinfo(const int, long &, long &, long &, long &, char * const); Enum opendir(const long, const char * const, rfsvDirhandle &); - Enum readdir(rfsvDirhandle &, bufferStore &); + Enum readdir(rfsvDirhandle &, PlpDirent &); Enum closedir(rfsvDirhandle &); Enum setVolumeName(const char, const char * const); long opMode(const long); @@ -52,7 +53,8 @@ private: EPOC_ATTR_NORMAL = 0x0080, EPOC_ATTR_TEMPORARY = 0x0100, EPOC_ATTR_COMPRESSED = 0x0800, - EPOC_ATTR_MASK = 0x09f7 /* All of the above */ + EPOC_ATTR_MASK = 0x09f7, /* All of the above */ + EPOC_ATTR_GETUID = 0x10000000 /* Deliver UIDs on dir listing */ }; enum open_mode { -- cgit v1.2.3