ARB
|
#include <sys/types.h>
#include <netinet/in.h>
#include <arbdbt.h>
#include <ad_cb.h>
#include "gb_key.h"
#include "gb_dict.h"
Go to the source code of this file.
Classes | |
struct | DictData |
Functions | |
static GB_CSTR | gb_read_dict_data (GBDATA *gb_dict, long *size) |
GB_ERROR | gb_load_dictionary_data (GBDATA *gb_main, const char *key, char **dict_data, long *size) |
static GB_DICTIONARY * | gb_create_dict (GBDATA *gb_dict) |
static void | delete_gb_dictionary (GB_DICTIONARY *dict) |
static void | gb_system_key_changed_cb (GBDATA *gbd, GBQUARK q, GB_CB_TYPE type) |
static void | gb_system_master_changed_cb (GBDATA *gbd, GBQUARK q, GB_CB_TYPE type) |
void | gb_load_single_key_data (GBDATA *gb_main, GBQUARK q) |
GB_ERROR | gb_save_dictionary_data (GBDATA *gb_main, const char *key, const char *dict, int size) |
GB_ERROR | gb_load_key_data_and_dictionaries (GB_MAIN_TYPE *Main) |
static void | GB_free_dictionary (DictData *dd) |
DictData * | GB_get_dictionary (GBDATA *gb_main, const char *key) |
GB_ERROR | GB_set_dictionary (GBDATA *gb_main, const char *key, const DictData *dd) |
Definition at line 20 of file adsystem.cxx.
References gb_flag_types::compressed_data, GBDATA::flags, GB_internal_error(), GB_read_bytes(), GB_read_bytes_count(), GB_read_bytes_pntr(), and NULp.
Referenced by gb_create_dict(), and gb_load_dictionary_data().
GB_ERROR gb_load_dictionary_data | ( | GBDATA * | gb_main, |
const char * | key, | ||
char ** | dict_data, | ||
long * | size | ||
) |
Definition at line 33 of file adsystem.cxx.
References copy(), error(), GB_entry(), GB_export_error(), GB_find_string(), GB_get_father(), GB_MAIN_TYPE::gb_key_data, GB_MAIN_TYPE::gb_main(), GB_MAIN(), GB_MIND_CASE, gb_read_dict_data(), GBM_DICT_INDEX, gbm_get_mem(), NULp, and SEARCH_GRANDCHILD.
Referenced by gb_create_dictionaries(), and GB_get_dictionary().
|
static |
Definition at line 67 of file adsystem.cxx.
References gb_read_dict_data(), GB_write_security_write(), GB_DICTIONARY::offsets, GB_DICTIONARY::resort, GB_DICTIONARY::text, GB_DICTIONARY::textlen, and GB_DICTIONARY::words.
Referenced by gb_load_single_key_data().
|
static |
Definition at line 85 of file adsystem.cxx.
Referenced by gb_load_single_key_data(), and gb_system_key_changed_cb().
|
static |
Definition at line 89 of file adsystem.cxx.
References delete_gb_dictionary(), gb_Key::dictionary, GB_CB_DELETE, gb_get_main_during_cb(), gb_Key::gb_key, gb_load_single_key_data(), GB_MAIN_TYPE::keys, and NULp.
Referenced by gb_load_single_key_data().
|
static |
Definition at line 102 of file adsystem.cxx.
References GB_CB_DELETE, gb_get_main_during_cb(), gb_load_single_key_data(), gb_Key::gb_master_ali, GB_MAIN_TYPE::keys, and NULp.
Referenced by gb_load_single_key_data().
Definition at line 112 of file adsystem.cxx.
References GBDATA::as_container(), buffer, gb_Key::compression_mask, delete_gb_dictionary(), gb_Key::dictionary, GB_CB_CHANGED_OR_DELETED, gb_create(), gb_create_container(), gb_create_dict(), GB_ensure_callback(), GB_entry(), GB_FATHER(), GB_FIND, GB_find_string(), gb_Key::gb_key, GB_MAIN_TYPE::gb_key_data, gb_Key::gb_key_disabled, GB_MAIN_TYPE::gb_main(), GB_MAIN(), gb_Key::gb_master_ali, GB_MIND_CASE, GB_search(), GB_STRING, GB_SYSTEM_FOLDER, gb_system_key_changed_cb(), gb_system_master_changed_cb(), GB_write_string(), GBT_readOrCreate_int(), gb_Key::key, GB_MAIN_TYPE::keys, NULp, and SEARCH_GRANDCHILD.
Referenced by gb_create_key(), gb_get_compression_mask(), gb_get_dictionary(), gb_load_key_data_and_dictionaries(), gb_save_dictionary_data(), gb_system_key_changed_cb(), gb_system_master_changed_cb(), and gb_uncompress_by_sequence().
GB_ERROR gb_save_dictionary_data | ( | GBDATA * | gb_main, |
const char * | key, | ||
const char * | dict, | ||
int | size | ||
) |
Definition at line 168 of file adsystem.cxx.
References error(), GB_BYTES, gb_create(), gb_create_container(), GB_delete(), GB_entry(), GB_export_error(), GB_FATHER(), gb_find_or_create_quark(), GB_find_string(), GB_MAIN_TYPE::gb_key_data, gb_load_single_key_data(), GB_MAIN_TYPE::gb_main(), GB_MAIN(), GB_MIND_CASE, gb_search(), GB_STRING, GB_write_bytes(), GB_write_string(), NULp, and SEARCH_GRANDCHILD.
Referenced by gb_create_dictionaries(), and GB_set_dictionary().
GB_ERROR gb_load_key_data_and_dictionaries | ( | GB_MAIN_TYPE * | Main | ) |
Definition at line 209 of file adsystem.cxx.
References GBDATA::as_container(), ASSERT_RESULT_PREDICATE, error(), GB_await_error(), GB_CREATE_CONTAINER, GB_create_index(), GB_delete(), GB_entry(), gb_find_or_create_quark(), GB_MAIN_TYPE::gb_key_data, gb_load_single_key_data(), gb_main, GB_MIND_CASE, GB_nextEntry(), GB_read_char_pntr(), gb_search(), GB_SYSTEM_FOLDER, GB_SYSTEM_KEY_DATA, GB_MAIN_TYPE::is_server(), NULp, quark2key(), RETURN_ERROR, GB_MAIN_TYPE::root_container, and GB_MAIN_TYPE::sizeofkeys.
Referenced by GB_login().
|
static |
Definition at line 272 of file adsystem.cxx.
References DictData::data, GBM_DICT_INDEX, gbm_free_mem(), and DictData::size.
Referenced by GB_get_dictionary().
Definition at line 279 of file adsystem.cxx.
References DictData::data, error(), GB_export_error(), GB_free_dictionary(), gb_load_dictionary_data(), NULp, and DictData::size.
Referenced by findAffectedKeys().
Definition at line 295 of file adsystem.cxx.
References DictData::data, error(), gb_save_dictionary_data(), NULp, and DictData::size.
Referenced by Dict::assignToKey(), and Dict::unassignFromKey().