LibreOffice
LibreOffice 7.1 SDK C/C++ API Reference
profile.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#ifndef INCLUDED_OSL_PROFILE_H
21#define INCLUDED_OSL_PROFILE_H
22
23#include "sal/config.h"
24
25#include "rtl/ustring.h"
26#include "sal/saldllapi.h"
27#include "sal/types.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33typedef sal_uInt32 oslProfileOption;
34
35#define osl_Profile_DEFAULT 0x0000
36#define osl_Profile_SYSTEM 0x0001 /* use system depended functionality */
37#define osl_Profile_READLOCK 0x0002 /* lock file for reading */
38#define osl_Profile_WRITELOCK 0x0004 /* lock file for writing */
39#define osl_Profile_FLUSHWRITE 0x0010 /* writing only with flush */
40
41
42typedef void* oslProfile;
43
50 rtl_uString *strProfileName, oslProfileOption Options) SAL_COLD;
51
58 oslProfile Profile) SAL_COLD;
59
65 oslProfile Profile) SAL_COLD;
70 oslProfile Profile,
71 const char* pszSection, const char* pszEntry,
72 char* pszString, sal_uInt32 MaxLen,
73 const char* pszDefault) SAL_COLD;
78 oslProfile Profile,
79 const char* pszSection, const char* pszEntry,
80 sal_Bool Default) SAL_COLD;
85 oslProfile Profile,
86 const char* pszSection, const char* pszEntry,
87 sal_uInt32 FirstId, const char* Strings[],
88 sal_uInt32 Default) SAL_COLD;
89
94 oslProfile Profile,
95 const char* pszSection, const char* pszEntry,
96 const char* pszString) SAL_COLD;
97
102 oslProfile Profile,
103 const char* pszSection, const char* pszEntry,
104 sal_Bool Value) SAL_COLD;
105
110 oslProfile Profile,
111 const char* pszSection, const char* pszEntry,
112 sal_uInt32 FirstId, const char* Strings[],
113 sal_uInt32 Value) SAL_COLD;
114
121 oslProfile Profile,
122 const char *pszSection, const char *pszEntry) SAL_COLD;
123
130 oslProfile Profile, const char *pszSection,
131 char* pszBuffer, sal_uInt32 MaxLen) SAL_COLD;
132
139 oslProfile Profile, char* pszBuffer, sal_uInt32 MaxLen) SAL_COLD;
140
141#ifdef __cplusplus
142}
143#endif
144
145#endif // INCLUDED_OSL_PROFILE_H
146
147/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned char sal_Bool
Definition: types.h:34
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
sal_uInt32 oslProfileOption
Definition: profile.h:33
SAL_DLLPUBLIC sal_Bool osl_writeProfileString(oslProfile Profile, const char *pszSection, const char *pszEntry, const char *pszString) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC oslProfile osl_openProfile(rtl_uString *strProfileName, oslProfileOption Options) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_uInt32 osl_readProfileIdent(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_uInt32 FirstId, const char *Strings[], sal_uInt32 Default) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_removeProfileEntry(oslProfile Profile, const char *pszSection, const char *pszEntry) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_uInt32 osl_getProfileSectionEntries(oslProfile Profile, const char *pszSection, char *pszBuffer, sal_uInt32 MaxLen) SAL_COLD
Deprecated API.
void * oslProfile
Definition: profile.h:42
SAL_DLLPUBLIC sal_Bool osl_readProfileBool(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_Bool Default) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_writeProfileIdent(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_uInt32 FirstId, const char *Strings[], sal_uInt32 Value) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_readProfileString(oslProfile Profile, const char *pszSection, const char *pszEntry, char *pszString, sal_uInt32 MaxLen, const char *pszDefault) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_closeProfile(oslProfile Profile) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_writeProfileBool(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_Bool Value) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_flushProfile(oslProfile Profile) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_uInt32 osl_getProfileSections(oslProfile Profile, char *pszBuffer, sal_uInt32 MaxLen) SAL_COLD
Deprecated API.