xref: /aoo42x/main/registry/source/regkey.hxx (revision 5a5f4a75)
1*5a5f4a75SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*5a5f4a75SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*5a5f4a75SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*5a5f4a75SAndrew Rist  * distributed with this work for additional information
6*5a5f4a75SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*5a5f4a75SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*5a5f4a75SAndrew Rist  * "License"); you may not use this file except in compliance
9*5a5f4a75SAndrew Rist  * with the License.  You may obtain a copy of the License at
10*5a5f4a75SAndrew Rist  *
11*5a5f4a75SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*5a5f4a75SAndrew Rist  *
13*5a5f4a75SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*5a5f4a75SAndrew Rist  * software distributed under the License is distributed on an
15*5a5f4a75SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*5a5f4a75SAndrew Rist  * KIND, either express or implied.  See the License for the
17*5a5f4a75SAndrew Rist  * specific language governing permissions and limitations
18*5a5f4a75SAndrew Rist  * under the License.
19*5a5f4a75SAndrew Rist  *
20*5a5f4a75SAndrew Rist  *************************************************************/
21*5a5f4a75SAndrew Rist 
22*5a5f4a75SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef INCLUDED_REGISTRY_SOURCE_REGKEY_HXX
25cdf0e10cSrcweir #define INCLUDED_REGISTRY_SOURCE_REGKEY_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include "sal/config.h"
28cdf0e10cSrcweir #include "registry/regtype.h"
29cdf0e10cSrcweir #include "rtl/ustring.h"
30cdf0e10cSrcweir #include "sal/types.h"
31cdf0e10cSrcweir 
32cdf0e10cSrcweir extern "C" {
33cdf0e10cSrcweir 
34cdf0e10cSrcweir void REGISTRY_CALLTYPE acquireKey(RegKeyHandle);
35cdf0e10cSrcweir void REGISTRY_CALLTYPE releaseKey(RegKeyHandle);
36cdf0e10cSrcweir sal_Bool REGISTRY_CALLTYPE isKeyReadOnly(RegKeyHandle);
37cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getKeyName(RegKeyHandle, rtl_uString**);
38cdf0e10cSrcweir RegError REGISTRY_CALLTYPE createKey(RegKeyHandle, rtl_uString*, RegKeyHandle*);
39cdf0e10cSrcweir RegError REGISTRY_CALLTYPE openKey(RegKeyHandle, rtl_uString*, RegKeyHandle*);
40cdf0e10cSrcweir RegError REGISTRY_CALLTYPE openSubKeys(
41cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, RegKeyHandle**, sal_uInt32*);
42cdf0e10cSrcweir RegError REGISTRY_CALLTYPE closeSubKeys(RegKeyHandle*, sal_uInt32);
43cdf0e10cSrcweir RegError REGISTRY_CALLTYPE deleteKey(RegKeyHandle, rtl_uString*);
44cdf0e10cSrcweir RegError REGISTRY_CALLTYPE closeKey(RegKeyHandle);
45cdf0e10cSrcweir RegError REGISTRY_CALLTYPE setValue(
46cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, RegValueType, RegValue, sal_uInt32);
47cdf0e10cSrcweir RegError REGISTRY_CALLTYPE setLongListValue(
48cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, sal_Int32*, sal_uInt32);
49cdf0e10cSrcweir RegError REGISTRY_CALLTYPE setStringListValue(
50cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, sal_Char**, sal_uInt32);
51cdf0e10cSrcweir RegError REGISTRY_CALLTYPE setUnicodeListValue(
52cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, sal_Unicode**, sal_uInt32);
53cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getValueInfo(
54cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, RegValueType*, sal_uInt32*);
55cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getValue(RegKeyHandle, rtl_uString*, RegValue);
56cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getLongListValue(
57cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, sal_Int32**, sal_uInt32*);
58cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getStringListValue(
59cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, sal_Char***, sal_uInt32*);
60cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getUnicodeListValue(
61cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, sal_Unicode***, sal_uInt32*);
62cdf0e10cSrcweir RegError REGISTRY_CALLTYPE freeValueList(RegValueType, RegValue, sal_uInt32);
63cdf0e10cSrcweir RegError REGISTRY_CALLTYPE createLink(RegKeyHandle, rtl_uString*, rtl_uString*);
64cdf0e10cSrcweir RegError REGISTRY_CALLTYPE deleteLink(RegKeyHandle, rtl_uString*);
65cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getKeyType(RegKeyHandle, rtl_uString*, RegKeyType*);
66cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getLinkTarget(
67cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, rtl_uString**);
68cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getResolvedKeyName(
69cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, sal_Bool, rtl_uString**);
70cdf0e10cSrcweir RegError REGISTRY_CALLTYPE getKeyNames(
71cdf0e10cSrcweir     RegKeyHandle, rtl_uString*, rtl_uString***, sal_uInt32*);
72cdf0e10cSrcweir RegError REGISTRY_CALLTYPE freeKeyNames(rtl_uString**, sal_uInt32);
73cdf0e10cSrcweir 
74cdf0e10cSrcweir }
75cdf0e10cSrcweir 
76cdf0e10cSrcweir #endif
77