Get the style color and number just once
[LibreOffice.git] / registry / source / regkey.hxx
blob51114e5ccceb093df5087d3c0283e49ae0f95a8d
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <sal/config.h>
23 #include <registry/regtype.h>
24 #include <rtl/ustring.h>
25 #include <sal/types.h>
27 extern "C" {
29 void REGISTRY_CALLTYPE acquireKey(RegKeyHandle);
30 void REGISTRY_CALLTYPE releaseKey(RegKeyHandle);
31 sal_Bool REGISTRY_CALLTYPE isKeyReadOnly(RegKeyHandle);
32 RegError REGISTRY_CALLTYPE getKeyName(RegKeyHandle, rtl_uString**);
33 RegError REGISTRY_CALLTYPE createKey(RegKeyHandle, rtl_uString*, RegKeyHandle*);
34 RegError REGISTRY_CALLTYPE openKey(RegKeyHandle, rtl_uString*, RegKeyHandle*);
35 RegError REGISTRY_CALLTYPE openSubKeys(
36 RegKeyHandle, rtl_uString*, RegKeyHandle**, sal_uInt32*);
37 RegError REGISTRY_CALLTYPE closeSubKeys(RegKeyHandle*, sal_uInt32);
38 RegError REGISTRY_CALLTYPE deleteKey(RegKeyHandle, rtl_uString*);
39 RegError REGISTRY_CALLTYPE closeKey(RegKeyHandle);
40 RegError REGISTRY_CALLTYPE setValue(
41 RegKeyHandle, rtl_uString*, RegValueType, RegValue, sal_uInt32);
42 RegError REGISTRY_CALLTYPE setLongListValue(
43 RegKeyHandle, rtl_uString*, sal_Int32 const *, sal_uInt32);
44 RegError REGISTRY_CALLTYPE setStringListValue(
45 RegKeyHandle, rtl_uString*, char**, sal_uInt32);
46 RegError REGISTRY_CALLTYPE setUnicodeListValue(
47 RegKeyHandle, rtl_uString*, sal_Unicode**, sal_uInt32);
48 RegError REGISTRY_CALLTYPE getValueInfo(
49 RegKeyHandle, rtl_uString*, RegValueType*, sal_uInt32*);
50 RegError REGISTRY_CALLTYPE getValue(RegKeyHandle, rtl_uString*, RegValue);
51 RegError REGISTRY_CALLTYPE getLongListValue(
52 RegKeyHandle, rtl_uString*, sal_Int32**, sal_uInt32*);
53 RegError REGISTRY_CALLTYPE getStringListValue(
54 RegKeyHandle, rtl_uString*, char***, sal_uInt32*);
55 RegError REGISTRY_CALLTYPE getUnicodeListValue(
56 RegKeyHandle, rtl_uString*, sal_Unicode***, sal_uInt32*);
57 RegError REGISTRY_CALLTYPE freeValueList(RegValueType, RegValue, sal_uInt32);
58 RegError REGISTRY_CALLTYPE getResolvedKeyName(
59 RegKeyHandle, rtl_uString*, sal_Bool, rtl_uString**);
60 RegError REGISTRY_CALLTYPE getKeyNames(
61 RegKeyHandle, rtl_uString*, rtl_uString***, sal_uInt32*);
62 RegError REGISTRY_CALLTYPE freeKeyNames(rtl_uString**, sal_uInt32);
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */