Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs
reg.h File Reference
#include "vr_stubs.h"
#include "prlock.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _desc
struct  _hdr
struct  _stdnodes
struct  _regfile
struct  _reghandle

Defines

#define MAGIC_NUMBER   0x76644441L
#define MAJOR_VERSION   1 /* major version for incompatible changes */
#define MINOR_VERSION   2 /* minor ver for new (compatible) features */
#define PATHDEL   '/'
#define HDRRESERVE   128 /* number of bytes reserved for hdr */
#define INTSIZE   4
#define DOUBLESIZE   8
#define PACKBUFFERSIZE   2048
#define REGTYPE_KEY   (1)
#define REGTYPE_DELETED   (0x0080)
#define ROOTKEY   (0x20)
#define ROOTKEY_VERSIONS   (0x21)
#define ROOTKEY_STR   "/"
#define ROOTKEY_VERSIONS_STR   "Version Registry"
#define ROOTKEY_USERS_STR   "Users"
#define ROOTKEY_COMMON_STR   "Common"
#define ROOTKEY_PRIVATE_STR   "Private Arenas"
#define OLD_VERSIONS_STR   "ROOTKEY_VERSIONS"
#define OLD_USERS_STR   "ROOTKEY_USERS"
#define OLD_COMMON_STR   "ROOTKEY_COMMON"
#define ASW_MAGIC_PROFILE_NAME   "User1"
#define COPYDESC(dest, src)   memcpy((dest),(src),sizeof(REGDESC))
#define VALID_FILEHANDLE(fh)   ((fh) != NULL)
#define INVALID_NAME_CHAR(p)   ( ((unsigned char)(p) < 0x20) )
#define TYPE_IS_ENTRY(type)   ( (type) & REGTYPE_ENTRY )
#define TYPE_IS_KEY(type)   ( !((type) & REGTYPE_ENTRY) )
#define VERIFY_HREG(h)
#define DESC_LOCATION   0
#define DESC_NAME   4
#define DESC_NAMELEN   8
#define DESC_TYPE   10
#define DESC_LEFT   12
#define DESC_DOWN   16
#define DESC_VALUE   20
#define DESC_VALUELEN   24
#define DESC_VALUEBUF   16 /* stored in place of "down" for entries */
#define DESC_PARENT   28
#define DESC_SIZE   32 /* size of desc on disk */
#define HDR_MAGIC   0
#define HDR_VERMAJOR   4
#define HDR_VERMINOR   6
#define HDR_AVAIL   8
#define HDR_ROOT   12

Typedefs

typedef int32 REGOFF
typedef struct _desc REGDESC
typedef struct _hdr REGHDR
typedef XP_File FILEHANDLE
typedef struct _stdnodes STDNODES
typedef struct _regfile REGFILE
typedef struct _reghandle REGHANDLE

Class Documentation

struct _desc

Definition at line 114 of file reg.h.

Class Members
REGOFF down
REGOFF left
REGOFF location
REGOFF name
uint16 namelen
REGOFF parent
uint16 type
REGOFF value
uint32 valuebuf
uint32 valuelen
struct _hdr

Definition at line 142 of file reg.h.

Class Members
REGOFF avail
uint32 magic
REGOFF root
uint16 verMajor
uint16 verMinor
struct _stdnodes

Definition at line 160 of file reg.h.

Class Members
REGOFF common
REGOFF current_user
REGOFF privarea
REGOFF users
REGOFF versions
struct _regfile

Definition at line 168 of file reg.h.

Collaboration diagram for _regfile:
Class Members
FILEHANDLE fh
char * filename
REGHDR hdr
int hdrDirty
int inInit
PRLock * lock
struct _regfile * next
struct _regfile * prev
int readOnly
int refCount
STDNODES rkeys
PRUint64 uniqkey
struct _reghandle

Definition at line 186 of file reg.h.

Collaboration diagram for _reghandle:
Class Members
uint32 magic
REGFILE * pReg

Define Documentation

Definition at line 89 of file reg.h.

#define COPYDESC (   dest,
  src 
)    memcpy((dest),(src),sizeof(REGDESC))

Definition at line 92 of file reg.h.

#define DESC_DOWN   16

Definition at line 134 of file reg.h.

#define DESC_LEFT   12

Definition at line 133 of file reg.h.

Definition at line 129 of file reg.h.

#define DESC_NAME   4

Definition at line 130 of file reg.h.

Definition at line 131 of file reg.h.

#define DESC_PARENT   28

Definition at line 138 of file reg.h.

#define DESC_SIZE   32 /* size of desc on disk */

Definition at line 140 of file reg.h.

#define DESC_TYPE   10

Definition at line 132 of file reg.h.

#define DESC_VALUE   20

Definition at line 135 of file reg.h.

#define DESC_VALUEBUF   16 /* stored in place of "down" for entries */

Definition at line 137 of file reg.h.

Definition at line 136 of file reg.h.

#define DOUBLESIZE   8

Definition at line 63 of file reg.h.

#define HDR_AVAIL   8

Definition at line 155 of file reg.h.

#define HDR_MAGIC   0

Definition at line 152 of file reg.h.

#define HDR_ROOT   12

Definition at line 156 of file reg.h.

Definition at line 153 of file reg.h.

Definition at line 154 of file reg.h.

#define HDRRESERVE   128 /* number of bytes reserved for hdr */

Definition at line 61 of file reg.h.

#define INTSIZE   4

Definition at line 62 of file reg.h.

#define INVALID_NAME_CHAR (   p)    ( ((unsigned char)(p) < 0x20) )

Definition at line 96 of file reg.h.

#define MAGIC_NUMBER   0x76644441L

Definition at line 57 of file reg.h.

#define MAJOR_VERSION   1 /* major version for incompatible changes */

Definition at line 58 of file reg.h.

#define MINOR_VERSION   2 /* minor ver for new (compatible) features */

Definition at line 59 of file reg.h.

#define OLD_COMMON_STR   "ROOTKEY_COMMON"

Definition at line 85 of file reg.h.

#define OLD_USERS_STR   "ROOTKEY_USERS"

Definition at line 84 of file reg.h.

#define OLD_VERSIONS_STR   "ROOTKEY_VERSIONS"

Definition at line 83 of file reg.h.

#define PACKBUFFERSIZE   2048

Definition at line 65 of file reg.h.

#define PATHDEL   '/'

Definition at line 60 of file reg.h.

#define REGTYPE_DELETED   (0x0080)

Definition at line 70 of file reg.h.

#define REGTYPE_KEY   (1)

Definition at line 69 of file reg.h.

#define ROOTKEY   (0x20)

Definition at line 73 of file reg.h.

#define ROOTKEY_COMMON_STR   "Common"

Definition at line 80 of file reg.h.

#define ROOTKEY_PRIVATE_STR   "Private Arenas"

Definition at line 81 of file reg.h.

#define ROOTKEY_STR   "/"

Definition at line 77 of file reg.h.

#define ROOTKEY_USERS_STR   "Users"

Definition at line 79 of file reg.h.

#define ROOTKEY_VERSIONS   (0x21)

Definition at line 74 of file reg.h.

#define ROOTKEY_VERSIONS_STR   "Version Registry"

Definition at line 78 of file reg.h.

#define TYPE_IS_ENTRY (   type)    ( (type) & REGTYPE_ENTRY )

Definition at line 98 of file reg.h.

#define TYPE_IS_KEY (   type)    ( !((type) & REGTYPE_ENTRY) )

Definition at line 99 of file reg.h.

#define VALID_FILEHANDLE (   fh)    ((fh) != NULL)

Definition at line 94 of file reg.h.

#define VERIFY_HREG (   h)
Value:
( ((h) == NULL) ? REGERR_PARAM : \
    ( (((REGHANDLE*)(h))->magic == MAGIC_NUMBER) ? REGERR_OK : REGERR_BADMAGIC ) )

Definition at line 101 of file reg.h.


Typedef Documentation

Definition at line 158 of file reg.h.

typedef struct _desc REGDESC
typedef struct _regfile REGFILE
typedef struct _reghandle REGHANDLE
typedef struct _hdr REGHDR
typedef int32 REGOFF

Definition at line 112 of file reg.h.

typedef struct _stdnodes STDNODES