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 mergeKey (RegHandle hReg, RegKeyHandle hKey, rtl_uString *keyName, rtl_uString *regFileName, sal_Bool bWarnings, sal_Bool bReport)
 
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

static void REGISTRY_CALLTYPE acquire ( RegHandle  hReg)
static

Definition at line 36 of file registry.cxx.

References ORegistry::acquire().

Referenced by initRegistry_Api().

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

Definition at line 95 of file registry.cxx.

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

Referenced by initRegistry_Api().

static RegError REGISTRY_CALLTYPE destroyRegistry ( RegHandle  hReg,
rtl_uString *  registryName 
)
static
static RegError REGISTRY_CALLTYPE dumpRegistry ( RegHandle  hReg,
RegKeyHandle  hKey 
)
static
static RegError REGISTRY_CALLTYPE getName ( RegHandle  hReg,
rtl_uString **  pName 
)
static
Registry_Api* REGISTRY_CALLTYPE initRegistry_Api ( )
static sal_Bool REGISTRY_CALLTYPE isReadOnly ( RegHandle  hReg)
static

Definition at line 84 of file registry.cxx.

Referenced by initRegistry_Api().

static RegError REGISTRY_CALLTYPE mergeKey ( RegHandle  hReg,
RegKeyHandle  hKey,
rtl_uString *  keyName,
rtl_uString *  regFileName,
sal_Bool  bWarnings,
sal_Bool  bReport 
)
static
static RegError REGISTRY_CALLTYPE openRegistry ( rtl_uString *  registryName,
RegHandle phRegistry,
RegAccessMode  accessMode 
)
static

Definition at line 140 of file registry.cxx.

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

Referenced by initRegistry_Api().

static RegError REGISTRY_CALLTYPE openRootKey ( RegHandle  hReg,
RegKeyHandle phRootKey 
)
static
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 368 of file registry.cxx.

References NO_ERROR, and REGISTRY_NOT_OPEN.

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 384 of file registry.cxx.

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

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 347 of file registry.cxx.

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

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 338 of file registry.cxx.

References openRootKey().

static void REGISTRY_CALLTYPE release ( RegHandle  hReg)
static

Definition at line 47 of file registry.cxx.

References ORegistry::release().

Referenced by initRegistry_Api().