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