Avoid lambda being destroyed while it is being called.
[LibreOffice.git] / registry / source / regkey.hxx
blob45c55cee93a770925d434200793289481adc008b
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 #ifndef INCLUDED_REGISTRY_SOURCE_REGKEY_HXX
21 #define INCLUDED_REGISTRY_SOURCE_REGKEY_HXX
23 #include <sal/config.h>
24 #include <registry/regtype.h>
25 #include <rtl/ustring.h>
26 #include <sal/types.h>
28 extern "C" {
30 void REGISTRY_CALLTYPE acquireKey(RegKeyHandle);
31 void REGISTRY_CALLTYPE releaseKey(RegKeyHandle);
32 sal_Bool REGISTRY_CALLTYPE isKeyReadOnly(RegKeyHandle);
33 RegError REGISTRY_CALLTYPE getKeyName(RegKeyHandle, rtl_uString**);
34 RegError REGISTRY_CALLTYPE createKey(RegKeyHandle, rtl_uString*, RegKeyHandle*);
35 RegError REGISTRY_CALLTYPE openKey(RegKeyHandle, rtl_uString*, RegKeyHandle*);
36 RegError REGISTRY_CALLTYPE openSubKeys(
37 RegKeyHandle, rtl_uString*, RegKeyHandle**, sal_uInt32*);
38 RegError REGISTRY_CALLTYPE closeSubKeys(RegKeyHandle*, sal_uInt32);
39 RegError REGISTRY_CALLTYPE deleteKey(RegKeyHandle, rtl_uString*);
40 RegError REGISTRY_CALLTYPE closeKey(RegKeyHandle);
41 RegError REGISTRY_CALLTYPE setValue(
42 RegKeyHandle, rtl_uString*, RegValueType, RegValue, sal_uInt32);
43 RegError REGISTRY_CALLTYPE setLongListValue(
44 RegKeyHandle, rtl_uString*, sal_Int32 const *, sal_uInt32);
45 RegError REGISTRY_CALLTYPE setStringListValue(
46 RegKeyHandle, rtl_uString*, sal_Char**, sal_uInt32);
47 RegError REGISTRY_CALLTYPE setUnicodeListValue(
48 RegKeyHandle, rtl_uString*, sal_Unicode**, sal_uInt32);
49 RegError REGISTRY_CALLTYPE getValueInfo(
50 RegKeyHandle, rtl_uString*, RegValueType*, sal_uInt32*);
51 RegError REGISTRY_CALLTYPE getValue(RegKeyHandle, rtl_uString*, RegValue);
52 RegError REGISTRY_CALLTYPE getLongListValue(
53 RegKeyHandle, rtl_uString*, sal_Int32**, sal_uInt32*);
54 RegError REGISTRY_CALLTYPE getStringListValue(
55 RegKeyHandle, rtl_uString*, sal_Char***, sal_uInt32*);
56 RegError REGISTRY_CALLTYPE getUnicodeListValue(
57 RegKeyHandle, rtl_uString*, sal_Unicode***, sal_uInt32*);
58 RegError REGISTRY_CALLTYPE freeValueList(RegValueType, RegValue, sal_uInt32);
59 RegError REGISTRY_CALLTYPE getResolvedKeyName(
60 RegKeyHandle, rtl_uString*, sal_Bool, rtl_uString**);
61 RegError REGISTRY_CALLTYPE getKeyNames(
62 RegKeyHandle, rtl_uString*, rtl_uString***, sal_uInt32*);
63 RegError REGISTRY_CALLTYPE freeKeyNames(rtl_uString**, sal_uInt32);
67 #endif
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */