00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _STORE_TYPES_H_
00021 #define _STORE_TYPES_H_
00022
00023 #include <sal/types.h>
00024 #include <rtl/ustring.h>
00025
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029
00033 #define STORE_DEFAULT_PAGESIZE ((sal_uInt16)0x0400)
00034
00035
00039 #define STORE_MINIMUM_PAGESIZE ((sal_uInt16)0x0200)
00040 #define STORE_MAXIMUM_PAGESIZE ((sal_uInt16)0x8000)
00041
00042
00047 #define STORE_MAXIMUM_NAMESIZE 256
00048
00049
00053 #define STORE_ATTRIB_ISLINK ((sal_uInt32)0x10000000)
00054 #define STORE_ATTRIB_ISDIR ((sal_uInt32)0x20000000)
00055 #define STORE_ATTRIB_ISFILE ((sal_uInt32)0x40000000)
00056
00057
00063 enum __store_AccessMode
00064 {
00065 store_AccessCreate,
00066 store_AccessReadCreate,
00067 store_AccessReadWrite,
00068 store_AccessReadOnly,
00069 store_Access_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
00070 };
00071
00074 typedef enum __store_AccessMode storeAccessMode;
00075
00076
00079 enum __store_Error
00080 {
00081 store_E_None = 0,
00082 store_E_AccessViolation,
00083 store_E_LockingViolation,
00084 store_E_CantSeek,
00085 store_E_CantRead,
00086 store_E_CantWrite,
00087 store_E_InvalidAccess,
00088 store_E_InvalidHandle,
00089 store_E_InvalidParameter,
00090 store_E_InvalidChecksum,
00091 store_E_AlreadyExists,
00092 store_E_NotExists,
00093 store_E_NotDirectory,
00094 store_E_NotFile,
00095 store_E_NoMoreFiles,
00096 store_E_NameTooLong,
00097 store_E_OutOfMemory,
00098 store_E_OutOfSpace,
00099 store_E_Pending,
00100 store_E_WrongFormat,
00101 store_E_WrongVersion,
00102 store_E_Unknown,
00103 store_E_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
00104 };
00105
00108 typedef enum __store_Error storeError;
00109
00110
00115 struct __store_FindData
00116 {
00120 sal_Unicode m_pszName[STORE_MAXIMUM_NAMESIZE];
00121
00125 sal_Int32 m_nLength;
00126
00130 sal_uInt32 m_nAttrib;
00131
00136 sal_uInt32 m_nSize;
00137
00140 sal_uInt32 m_nReserved;
00141 };
00142
00145 typedef struct __store_FindData storeFindData;
00146
00147
00148
00149
00150
00151
00152
00153
00154 #ifdef __cplusplus
00155 }
00156 #endif
00157
00158 #endif
00159
00160