blob: aebec89088d19468852b5f87230dd8656c2c4f65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_OSL_DETAIL_FILE_H
#define INCLUDED_OSL_DETAIL_FILE_H
#include "sal/config.h"
#include <sys/stat.h>
#include "sal/saldllapi.h"
#include "sal/types.h"
/** @cond INTERNAL */
/* Some additions to the osl file functions for LibreOffice internal
use. Needed for details in the Android support.
*/
#if defined __cplusplus
extern "C" {
#endif
/* More flags needed for semantics that match the open() call that
used to be in SvFileStream::Open().
*/
#define osl_File_OpenFlag_Trunc 0x00000010L
#define osl_File_OpenFlag_NoExcl 0x00000020L
SAL_DLLPUBLIC oslFileError SAL_CALL osl_openFilePath(
const char *cpFilePath,
oslFileHandle* pHandle,
sal_uInt32 uFlags );
/* Get the OS specific "handle" of an open file. */
SAL_DLLPUBLIC oslFileError SAL_CALL osl_getFileOSHandle(
oslFileHandle Handle,
sal_IntPtr *piFileHandle );
/* for unit testing. */
SAL_DLLPUBLIC oslFileError SAL_CALL osl_openMemoryAsFile( void *address, size_t size, oslFileHandle *pHandle );
#if defined __cplusplus
}
#endif
/** @endcond */
#endif /* INCLUDED_OSL_DETAIL_FILE_H */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|