Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htreg.h File Reference

#include "htdata.h"
#include "htstring.h"

Go to the source code of this file.

Classes

class  ht_registry
class  ht_registry_data
class  ht_registry_data_dword
class  ht_registry_data_raw
class  ht_registry_data_stree
class  ht_registry_data_string
class  ht_registry_node
class  ht_registry_node_type_desc

Defines

#define RNT_INVALID   0
#define RNT_SUBDIR   1
#define RNT_SYMLINK   2
#define RNT_DWORD   3
#define RNT_STRING   4
#define RNT_RAW   5
#define RNT_USER   0x100
#define MAX_SYMLINK_REC_DEPTH   20

Typedefs

typedef ht_registry_data *(* create_empty_registry_data_func )()
typedef UINT ht_registry_node_type

Functions

dword get_config_dword (char *ident)
char * get_config_string (char *ident)
bool init_registry ()
void done_registry ()

Variables

ht_registryregistry


Define Documentation

#define MAX_SYMLINK_REC_DEPTH   20
 

Definition at line 155 of file htreg.h.

Referenced by ht_registry::find_entry_get_data(), and ht_registry::find_entry_get_subdir().

#define RNT_DWORD   3
 

Definition at line 131 of file htreg.h.

Referenced by ht_registry::debug_dump_i(), get_config_dword(), ht_registry::init(), and ht_registry::set_dword().

#define RNT_INVALID   0
 

Definition at line 127 of file htreg.h.

Referenced by ht_registry::register_node_type().

#define RNT_RAW   5
 

Definition at line 133 of file htreg.h.

Referenced by RegistryFs::create_pstat_t(), ht_registry::debug_dump_i(), ht_registry::init(), RegNodeFile::load_node(), ht_registry::set_raw(), and RegNodeFile::store_node().

#define RNT_STRING   4
 

Definition at line 132 of file htreg.h.

Referenced by ht_registry::debug_dump_i(), get_config_string(), ht_registry::init(), and ht_registry::set_string().

#define RNT_SUBDIR   1
 

Definition at line 129 of file htreg.h.

Referenced by RegistryFs::create_pstat_t(), ht_registry::create_subdir(), ht_registry::debug_dump_i(), ht_registry::enum_next(), ht_registry::enum_prev(), RegistryFs::enumFiletype(), ht_registry::find_data_entry(), ht_registry::find_entry_get_subdir(), ht_registry::init(), and ht_registry::splitfind().

#define RNT_SYMLINK   2
 

Definition at line 130 of file htreg.h.

Referenced by RegistryFs::create_pstat_t(), ht_registry::debug_dump_i(), ht_registry::find_entry_get_data(), ht_registry::find_entry_get_subdir(), ht_registry::init(), and ht_registry::set_symlink().

#define RNT_USER   0x100
 

Definition at line 135 of file htreg.h.


Typedef Documentation

typedef ht_registry_data*(* create_empty_registry_data_func)()
 

Definition at line 113 of file htreg.h.

Referenced by ht_registry::have_node_type(), ht_registry::init(), ht_registry_node_type_desc::load(), and ht_registry::register_node_type().

typedef UINT ht_registry_node_type
 

Definition at line 115 of file htreg.h.

Referenced by RegistryFs::canonicalize(), ht_registry::create_node(), RegistryFs::create_pfind_t(), RegistryFs::create_pstat_t(), RegNodeFile::done(), ht_registry::enum_next(), ht_registry::enum_prev(), ht_registry::find_any_entry(), ht_registry::find_data_entry(), RegistryFs::findFirst(), RegistryFs::findNext(), get_config_dword(), get_config_string(), ht_registry::get_node_type_desc(), ht_registry::have_node_type(), RegNodeFile::init(), ht_registry::init(), ht_registry_node::init(), RegNodeFile::load_node(), load_pal(), ht_registry::lookup_node_type(), RegistryFs::open(), RegistryFs::pstat(), ht_registry::register_node_type(), ht_registry::set_node(), and RegNodeFile::store_node().


Function Documentation

void done_registry  ) 
 

Definition at line 934 of file htreg.cc.

References ATOM_HT_CREATE_EMPTY_DWORD, ATOM_HT_CREATE_EMPTY_RAW, ATOM_HT_CREATE_EMPTY_STRING, ATOM_HT_CREATE_EMPTY_SYMLINK, ATOM_HT_REGISTRY, ATOM_HT_REGISTRY_DATA_DWORD, ATOM_HT_REGISTRY_DATA_RAW, ATOM_HT_REGISTRY_DATA_STREE, ATOM_HT_REGISTRY_DATA_STRING, ATOM_HT_REGISTRY_NODE, ATOM_HT_REGISTRY_NODE_TYPE_DESC, ht_registry::done(), registry, UNREGISTER, and unregister_atom().

dword get_config_dword char *  ident  ) 
 

Definition at line 843 of file htreg.cc.

References dword, ht_registry::find_data_entry(), ht_registry::get_node_type_desc(), HT_NAME_MAX, ht_registry_node_type, LOG_ERROR, LOG_EX, registry, RNT_DWORD, and ht_registry_data_dword::value.

Referenced by ht_text_editor::config_changed(), ht_text_viewer::config_changed(), save_fileconfig(), and save_systemconfig().

char* get_config_string char *  ident  ) 
 

Definition at line 863 of file htreg.cc.

References ht_registry::find_data_entry(), ht_registry::get_node_type_desc(), HT_NAME_MAX, ht_registry_node_type, ht_strdup(), LOG_ERROR, LOG_EX, NULL, registry, RNT_STRING, and ht_registry_data_string::value.

Referenced by VfsListbox::config_changed(), ht_text_viewer::config_changed(), ht_status::handlemsg(), and ht_status::init().

bool init_registry  ) 
 

Definition at line 895 of file htreg.cc.

References ATOM_HT_CREATE_EMPTY_DWORD, ATOM_HT_CREATE_EMPTY_RAW, ATOM_HT_CREATE_EMPTY_STRING, ATOM_HT_CREATE_EMPTY_SYMLINK, ATOM_HT_REGISTRY, ATOM_HT_REGISTRY_DATA_DWORD, ATOM_HT_REGISTRY_DATA_RAW, ATOM_HT_REGISTRY_DATA_STREE, ATOM_HT_REGISTRY_DATA_STRING, ATOM_HT_REGISTRY_NODE, ATOM_HT_REGISTRY_NODE_TYPE_DESC, create_empty_dword(), create_empty_raw(), create_empty_string(), create_empty_symlink(), default_reg, ht_memmap_file::done(), ht_object_stream::done(), ht_object_stream_inter::getObject(), ht_object_stream_bin::init(), ht_memmap_file::init(), NULL, REGISTER, register_atom(), and registry.


Variable Documentation

ht_registry* registry
 

Definition at line 205 of file htreg.h.

Referenced by RegistryFs::canonicalize(), RegistryFs::createFile(), RegistryFs::deleteFile(), RegNodeFile::done(), done_registry(), RegistryFs::enumFiletype(), RegistryFs::findFirst(), RegistryFs::findNext(), get_config_dword(), get_config_string(), ht_app::handlemsg(), RegNodeFile::init(), init_registry(), ht_app::load(), load_pal(), RegistryFs::makeDir(), RegistryFs::open(), RegistryFs::pstat(), and ht_app::store().


Generated on Fri May 7 21:15:49 2004 by doxygen 1.3.5