LibreOffice Module registry (master) 1
Functions
registry.cxx File Reference
#include <registry/registry.hxx>
#include "keyimpl.hxx"
#include "regimpl.hxx"
#include "regkey.hxx"
Include dependency graph for registry.cxx:

Go to the source code of this file.

Functions

static void REGISTRY_CALLTYPE acquire (RegHandle hReg)
 
static void REGISTRY_CALLTYPE release (RegHandle hReg)
 
static RegError REGISTRY_CALLTYPE getName (RegHandle hReg, rtl_uString **pName)
 
static sal_Bool REGISTRY_CALLTYPE isReadOnly (RegHandle hReg)
 
static RegError REGISTRY_CALLTYPE createRegistry (rtl_uString *registryName, RegHandle *phRegistry)
 
static RegError REGISTRY_CALLTYPE openRootKey (RegHandle hReg, RegKeyHandle *phRootKey)
 
static RegError REGISTRY_CALLTYPE openRegistry (rtl_uString *registryName, RegHandle *phRegistry, RegAccessMode accessMode)
 
static RegError REGISTRY_CALLTYPE closeRegistry (RegHandle hReg)
 
static RegError REGISTRY_CALLTYPE destroyRegistry (RegHandle hReg, rtl_uString *registryName)
 
static RegError REGISTRY_CALLTYPE dumpRegistry (RegHandle hReg, RegKeyHandle hKey)
 
Registry_Api *REGISTRY_CALLTYPE initRegistry_Api ()
 the API initialization function. More...
 
RegError REGISTRY_CALLTYPE reg_openRootKey (RegHandle hRegistry, RegKeyHandle *phRootKey)
 This function opens the root key of a registry. More...
 
RegError REGISTRY_CALLTYPE reg_openRegistry (rtl_uString *registryName, RegHandle *phRegistry)
 This function opens a registry with the specified name. More...
 
RegError REGISTRY_CALLTYPE reg_closeRegistry (RegHandle hRegistry)
 This function closes a registry. More...
 
RegError REGISTRY_CALLTYPE reg_dumpRegistry (RegKeyHandle hKey)
 This function reports the complete registry information of a key and all of its subkeys. More...
 

Function Documentation

◆ acquire()

static void REGISTRY_CALLTYPE acquire ( RegHandle  hReg)
static

Definition at line 33 of file registry.cxx.

References ORegistry::acquire().

Referenced by initRegistry_Api().

◆ closeRegistry()

static RegError REGISTRY_CALLTYPE closeRegistry ( RegHandle  hReg)
static

◆ createRegistry()

static RegError REGISTRY_CALLTYPE createRegistry ( rtl_uString *  registryName,
RegHandle phRegistry 
)
static

Definition at line 80 of file registry.cxx.

References ORegistry::initRegistry(), NO_ERROR, READWRITE, and RegError.

Referenced by initRegistry_Api().

◆ destroyRegistry()

static RegError REGISTRY_CALLTYPE destroyRegistry ( RegHandle  hReg,
rtl_uString *  registryName 
)
static

◆ dumpRegistry()

static RegError REGISTRY_CALLTYPE dumpRegistry ( RegHandle  hReg,
RegKeyHandle  hKey 
)
static

◆ getName()

static RegError REGISTRY_CALLTYPE getName ( RegHandle  hReg,
rtl_uString **  pName 
)
static

◆ initRegistry_Api()

Registry_Api *REGISTRY_CALLTYPE initRegistry_Api ( )

◆ isReadOnly()

static sal_Bool REGISTRY_CALLTYPE isReadOnly ( RegHandle  hReg)
static

Definition at line 72 of file registry.cxx.

References isReadOnly().

Referenced by initRegistry_Api(), and isReadOnly().

◆ openRegistry()

static RegError REGISTRY_CALLTYPE openRegistry ( rtl_uString *  registryName,
RegHandle phRegistry,
RegAccessMode  accessMode 
)
static

Definition at line 119 of file registry.cxx.

References ORegistry::initRegistry(), NO_ERROR, and RegError.

Referenced by initRegistry_Api().

◆ openRootKey()

static RegError REGISTRY_CALLTYPE openRootKey ( RegHandle  hReg,
RegKeyHandle phRootKey 
)
static

◆ reg_closeRegistry()

RegError REGISTRY_CALLTYPE reg_closeRegistry ( RegHandle  hRegistry)

This function closes a registry.

Parameters
hRegistryidentifies a currently open registry which should be closed.
Returns
REG_NO_ERROR if succeeds else an error code.

Definition at line 275 of file registry.cxx.

References NO_ERROR, and REGISTRY_NOT_OPEN.

◆ reg_dumpRegistry()

RegError REGISTRY_CALLTYPE reg_dumpRegistry ( RegKeyHandle  hKey)

This function reports the complete registry information of a key and all of its subkeys.

All information which are available (keynames, value types, values, ...) will be printed to stdout for report issues only.

Parameters
hKeyidentifies a currently open key which content will be reported.
Returns
REG_NO_ERROR if succeeds else an error code.

Definition at line 288 of file registry.cxx.

References dumpRegistry(), ORegKey::getRegistry(), and INVALID_KEY.

◆ reg_openRegistry()

RegError REGISTRY_CALLTYPE reg_openRegistry ( rtl_uString *  registryName,
RegHandle phRegistry 
)

This function opens a registry with the specified name.

in readonly mode.

Parameters
registryNamepoints to a null terminated string specifying the name of the registry.
phRegistrypoints to a handle of the opened registry if the function succeeds otherwise NULL.
Returns
REG_NO_ERROR if succeeds else an error code.

Definition at line 257 of file registry.cxx.

References ORegistry::initRegistry(), NO_ERROR, READONLY, and RegError.

◆ reg_openRootKey()

RegError REGISTRY_CALLTYPE reg_openRootKey ( RegHandle  hRegistry,
RegKeyHandle phRootKey 
)

This function opens the root key of a registry.

Parameters
hRegistryidentifies a currently open registry whose rootKey will be returned.
phRootKeypoints to a handle of the open root key if the function succeeds otherwise NULL.
Returns
REG_NO_ERROR if succeeds else an error code.

Definition at line 251 of file registry.cxx.

References openRootKey().

◆ release()

static void REGISTRY_CALLTYPE release ( RegHandle  hReg)
static

Definition at line 41 of file registry.cxx.

References ORegistry::release().

Referenced by initRegistry_Api().