LibreOffice Module store (master) 1
store.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#pragma once
21
22#include <store/storedllapi.h>
23#include <store/types.h>
24#include <rtl/ustring.h>
25#include <sal/types.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
33typedef void* storeHandle;
34
40 storeHandle Handle
42
49 storeHandle Handle
51
54typedef void* storeFileHandle;
55
63 sal_uInt16 nPageSize,
64 storeFileHandle *phFile
66
80 rtl_uString *pFilename,
81 storeAccessMode eAccessMode,
82 sal_uInt16 nPageSize,
83 storeFileHandle *phFile
85
92 storeFileHandle hFile
94
100 storeFileHandle hFile
102
106
118 storeFileHandle hFile,
119 rtl_uString const *pPath,
120 rtl_uString const *pName,
121 storeAccessMode eAccessMode,
122 storeDirectoryHandle *phDirectory
124
132 storeDirectoryHandle hDirectory,
133 storeFindData *pFindData
135
143 storeDirectoryHandle hDirectory,
144 storeFindData *pFindData
146
149typedef void* storeStreamHandle;
150
162 storeFileHandle hFile,
163 rtl_uString const *pPath,
164 rtl_uString const *pName,
165 storeAccessMode eMode,
166 storeStreamHandle *phStrm
168
178 storeStreamHandle hStrm,
179 sal_uInt32 nOffset,
180 void *pBuffer,
181 sal_uInt32 nBytes,
182 sal_uInt32 *pnDone
184
194 storeStreamHandle hStrm,
195 sal_uInt32 nOffset,
196 const void *pBuffer,
197 sal_uInt32 nBytes,
198 sal_uInt32 *pnDone
200
208 storeFileHandle hFile,
209 rtl_uString const *pPath,
210 rtl_uString const *pName
212
213#ifdef __cplusplus
214}
215#endif
216
217/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
STORE_DLLPUBLIC storeError store_openStream(storeFileHandle hFile, rtl_uString const *pPath, rtl_uString const *pName, storeAccessMode eMode, storeStreamHandle *phStrm) SAL_THROW_EXTERN_C()
Open a stream.
Definition: store.cxx:264
void * storeHandle
Handle opaque type.
Definition: store.h:33
STORE_DLLPUBLIC storeError store_openDirectory(storeFileHandle hFile, rtl_uString const *pPath, rtl_uString const *pName, storeAccessMode eAccessMode, storeDirectoryHandle *phDirectory) SAL_THROW_EXTERN_C()
Open a directory.
Definition: store.cxx:184
void * storeStreamHandle
Stream Handle opaque type.
Definition: store.h:149
STORE_DLLPUBLIC storeError store_acquireHandle(storeHandle Handle) SAL_THROW_EXTERN_C()
Acquire a Handle.
Definition: store.cxx:65
STORE_DLLPUBLIC storeError store_findNext(storeDirectoryHandle hDirectory, storeFindData *pFindData) SAL_THROW_EXTERN_C()
Find next directory entry.
Definition: store.cxx:242
STORE_DLLPUBLIC storeError store_writeStream(storeStreamHandle hStrm, sal_uInt32 nOffset, const void *pBuffer, sal_uInt32 nBytes, sal_uInt32 *pnDone) SAL_THROW_EXTERN_C()
Write to a stream.
Definition: store.cxx:323
void * storeDirectoryHandle
Directory Handle opaque type.
Definition: store.h:105
STORE_DLLPUBLIC storeError store_findFirst(storeDirectoryHandle hDirectory, storeFindData *pFindData) SAL_THROW_EXTERN_C()
Find first directory entry.
Definition: store.cxx:221
STORE_DLLPUBLIC storeError store_releaseHandle(storeHandle Handle) SAL_THROW_EXTERN_C()
Release a Handle.
Definition: store.cxx:77
STORE_DLLPUBLIC storeError store_flushFile(storeFileHandle hFile) SAL_THROW_EXTERN_C()
Flush a file.
Definition: store.cxx:172
STORE_DLLPUBLIC storeError store_createMemoryFile(sal_uInt16 nPageSize, storeFileHandle *phFile) SAL_THROW_EXTERN_C()
Open a temporary file in memory.
Definition: store.cxx:89
STORE_DLLPUBLIC storeError store_openFile(rtl_uString *pFilename, storeAccessMode eAccessMode, sal_uInt16 nPageSize, storeFileHandle *phFile) SAL_THROW_EXTERN_C()
Open a file.
Definition: store.cxx:120
STORE_DLLPUBLIC storeError store_readStream(storeStreamHandle hStrm, sal_uInt32 nOffset, void *pBuffer, sal_uInt32 nBytes, sal_uInt32 *pnDone) SAL_THROW_EXTERN_C()
Read from a stream.
Definition: store.cxx:304
void * storeFileHandle
File Handle opaque type.
Definition: store.h:54
STORE_DLLPUBLIC storeError store_remove(storeFileHandle hFile, rtl_uString const *pPath, rtl_uString const *pName) SAL_THROW_EXTERN_C()
Remove a file entry.
Definition: store.cxx:342
STORE_DLLPUBLIC storeError store_closeFile(storeFileHandle hFile) SAL_THROW_EXTERN_C()
Close a file.
Definition: store.cxx:158
#define STORE_DLLPUBLIC
Definition: storedllapi.h:26
Find Data structure.
Definition: types.h:105
storeAccessMode
Access Mode enumeration.
Definition: types.h:62
storeError
Error Code enumeration.
Definition: types.h:73
#define SAL_THROW_EXTERN_C()