+ Changed StorageKit namespace to BPrivate::Storage

+ Changed Sniffer namespace to BPrivate::Storage::Sniffer


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@714 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2002-08-12 08:42:01 +00:00
parent 82b7566525
commit 09d84e61b6
75 changed files with 589 additions and 336 deletions
+2
View File
@@ -103,3 +103,5 @@ typedef struct {
#define SHT_HIUSER 0xffffffff
#endif // _ELF_H
+6 -2
View File
@@ -8,7 +8,8 @@
#include <String.h>
namespace StorageKit {
namespace BPrivate {
namespace Storage {
class Exception {
public:
@@ -106,6 +107,9 @@ private:
BString fDescription;
};
}; // namespace StorageKit
}; // namespace Storage
}; // namespace BPrivate
#endif // _EXCEPTION_H
+2
View File
@@ -17,3 +17,5 @@ extern status_t swap_data_adapter(type_code type, void *data, size_t length,
extern bool is_type_swapped_adapter(type_code type);
#endif // _LIB_BE_ADAPTER_H
+6 -2
View File
@@ -13,7 +13,8 @@
#include <DataIO.h>
#include <File.h>
namespace StorageKit {
namespace BPrivate {
namespace Storage {
/*!
\class OffsetFile
@@ -58,6 +59,9 @@ private:
off_t fCurrentPosition;
};
}; // namespace StorageKit
}; // namespace Storage
}; // namespace BPrivate
#endif // _OFFSET_FILE_H
+2
View File
@@ -44,3 +44,5 @@ struct PEFSectionHeader {
const uint32 kPEFSectionHeaderSize = 28;
#endif // _PEF_H
+6 -2
View File
@@ -15,7 +15,8 @@
#include <Query.h>
#include <String.h>
namespace StorageKit {
namespace BPrivate {
namespace Storage {
// QueryNode
class QueryNode {
@@ -201,6 +202,9 @@ private:
BList fNodes;
};
}; // namespace StorageKit
}; // namespace Storage
}; // namespace BPrivate
#endif // _QUERY_PREDICATE_H
+6 -2
View File
@@ -17,7 +17,8 @@
struct resource_info;
struct PEFContainerHeader;
namespace StorageKit {
namespace BPrivate {
namespace Storage {
class Exception;
struct MemArea;
@@ -123,6 +124,9 @@ ResourceFile::_GetUInt32(uint32 value)
return (fHostEndianess ? value : B_SWAP_INT32(value));
}
}; // namespace StorageKit
}; // namespace Storage
}; // namespace BPrivate
#endif // _RESOURCE_FILE_H
+6 -2
View File
@@ -13,7 +13,8 @@
#include <DataIO.h>
#include <String.h>
namespace StorageKit {
namespace BPrivate {
namespace Storage {
/*!
\class ResourceItem
@@ -82,6 +83,9 @@ private:
bool fIsModified;
};
}; // namespace StorageKit
}; // namespace Storage
}; // namespace BPrivate
#endif // _RESOURCE_ITEM_H
+6 -2
View File
@@ -12,7 +12,8 @@
#include <List.h>
namespace StorageKit {
namespace BPrivate {
namespace Storage {
class ResourceItem;
@@ -70,6 +71,9 @@ private:
bool fIsModified;
};
}; // namespace StorageKit
}; // namespace Storage
}; // namespace BPrivate
#endif // _RESOURCES_CONTAINER_H
+2
View File
@@ -103,3 +103,5 @@ const uint32 kResourceInfoTableEndSize = 8;
#endif // _DEF_RESOURCES_H
+9 -6
View File
@@ -28,7 +28,8 @@ typedef struct entry_ref;
/*! Encompasses the functions used internally by the Storage Kit to
interface with the kernel, as well as various internal support functions,
data types, and type aliases. */
namespace StorageKit {
namespace BPrivate {
namespace Storage {
// Type aliases
typedef dirent DirEntry;
@@ -63,7 +64,7 @@ status_t stat_dev(dev_t dev, fs_info* info);
new file descriptor if successful, -1 otherwise. This version
fails if the given file does not exist, or if you specify
O_CREAT as one of the flags (use the four argument version
of StorageKit::open() if you wish to create the file when
of BPrivate::Storage::open() if you wish to create the file when
it doesn't already exist). */
status_t open(const char *path, OpenFlags flags, FileDescriptor &result);
@@ -190,13 +191,13 @@ status_t rewind_dir(FileDescriptor dir);
/*! Iterates through the given directory searching for an entry whose name
matches that given by name. On success, places the DirEntry in result
and returns B_OK. On failures, returns an error code and sets result to
StorageKit::NullDir.
BPrivate::Storage::NullDir.
<b>Note:</b> This call modifies the internal position marker of dir. */
status_t find_dir(FileDescriptor dir, const char *name, DirEntry *result,
size_t length);
/*! Calls the other version of StorageKit::find_dir() and stores the results
/*! Calls the other version of BPrivate::Storage::find_dir() and stores the results
in the given entry_ref. */
status_t find_dir(FileDescriptor dir, const char *name, entry_ref *result);
@@ -328,7 +329,9 @@ status_t rename(const char *oldPath, const char *newPath);
/*! Removes path from the filesystem. */
status_t remove(const char *path);
} // namespace StorageKit
}; // namespace Storage
}; // namespace BPrivate
#endif // _STORAGE_KIT_KERNEL_INTERFACE_H
+8 -2
View File
@@ -11,6 +11,8 @@
class BPositionIO;
namespace BPrivate {
namespace Storage {
namespace Sniffer {
//! Abstract class defining methods acting on a list of ORed patterns
@@ -26,6 +28,10 @@ protected:
bool fCaseInsensitive;
};
}
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_DISJ_LIST_H
#endif // _SNIFFER_DISJ_LIST_H
+8 -2
View File
@@ -12,6 +12,8 @@
#include <SupportDefs.h>
#include <string>
namespace BPrivate {
namespace Storage {
namespace Sniffer {
//! Exception class used by the MIME Sniffer
@@ -47,6 +49,10 @@ private:
ssize_t fPos;
};
}
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_ERR_H
#endif // _SNIFFER_ERR_H
+8 -2
View File
@@ -20,6 +20,8 @@
class BString;
//! MIME Sniffer related classes
namespace BPrivate {
namespace Storage {
namespace Sniffer {
class Rule;
@@ -323,8 +325,12 @@ private:
Err *fOutOfMemErr;
};
} // namespace Sniffer
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_PARSER_H
+8 -2
View File
@@ -15,6 +15,8 @@
class BPositionIO;
namespace BPrivate {
namespace Storage {
namespace Sniffer {
class Err;
@@ -46,6 +48,10 @@ private:
Err *fErrorMessage;
};
}
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_PATTERN_H
#endif // _SNIFFER_PATTERN_H
@@ -15,6 +15,8 @@
class BPositionIO;
namespace BPrivate {
namespace Storage {
namespace Sniffer {
class Err;
@@ -38,6 +40,10 @@ private:
Range fRange;
};
}
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_PATTERN_LIST_H
#endif // _SNIFFER_PATTERN_LIST_H
+8 -2
View File
@@ -13,6 +13,8 @@
class BPositionIO;
namespace BPrivate {
namespace Storage {
namespace Sniffer {
class Err;
@@ -33,6 +35,10 @@ private:
Pattern *fPattern;
};
}
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_R_PATTERN_H
#endif // _SNIFFER_R_PATTERN_H
@@ -14,6 +14,8 @@
class BPositionIO;
namespace BPrivate {
namespace Storage {
namespace Sniffer {
class Err;
@@ -34,6 +36,10 @@ private:
std::vector<RPattern*> fList;
};
}
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_R_PATTERN_LIST_H
#endif // _SNIFFER_R_PATTERN_LIST_H
+8 -2
View File
@@ -11,6 +11,8 @@
#include <SupportDefs.h>
namespace BPrivate {
namespace Storage {
namespace Sniffer {
class Err;
@@ -33,6 +35,10 @@ private:
status_t fCStatus;
};
}
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_RANGE_H
#endif // _SNIFFER_RANGE_H
+8 -2
View File
@@ -14,6 +14,8 @@
class BPositionIO;
namespace BPrivate {
namespace Storage {
namespace Sniffer {
class DisjList;
@@ -40,6 +42,10 @@ private:
std::vector<DisjList*> *fConjList; // A list of DisjLists to be ANDed
};
}
}; // namespace Sniffer
}; // namespace Storage
}; // namespace BPrivate
#endif // _SNIFFER_RULE_H
#endif // _SNIFFER_RULE_H
+6 -2
View File
@@ -12,7 +12,8 @@
#define _STORAGE_SUPPORT_H
namespace StorageKit {
namespace BPrivate {
namespace Storage {
//! Returns whether the supplied path is absolute.
bool is_absolute_path(const char *path);
@@ -37,6 +38,9 @@ status_t check_entry_name(const char *entry);
//! Checks whether a path name is a valid path name.
status_t check_path_name(const char *path);
} // namespace StorageKit
}; // namespace Storage
}; // namespace BPrivate
#endif // _STORAGE_SUPPORT_H