ARB
|
#include <attributes.h>
Go to the source code of this file.
GB_MAIN_TYPE* gb_get_main_during_cb | ( | void | ) |
Definition at line 108 of file ad_cb.cxx.
References inside_callback_main.
Referenced by GB_get_gb_main_during_cb(), GB_inside_callback(), gb_system_key_changed_cb(), gb_system_master_changed_cb(), and gb_uncompress_by_sequence().
void gb_remove_callbacks_marked_for_deletion | ( | GBDATA * | gbd | ) |
Definition at line 295 of file ad_cb.cxx.
References gb_remove_callbacks_that().
Referenced by gb_do_callbacks().
Definition at line 83 of file ad_core.cxx.
References GBDATA::flags2, GB_ARRAY_FLAGS(), GB_FATHER(), GB_SON_CHANGED, gb_header_flags::inc_change(), GBDATA::index, GBCONTAINER::set_touched_idx(), and gb_flag_types2::update_in_server.
Referenced by GB_clear_temporary(), gb_copy_explicit(), gb_create(), gb_create_container(), GB_delete(), gb_delete_force(), GB_resort_data_base(), GB_set_temporary(), GB_touch(), gb_touch_header(), GB_write_bits(), GB_write_byte(), gb_write_compressed_pntr(), GB_write_flag(), GB_write_float(), GB_write_int(), GB_write_pntr(), GB_write_pointer(), GB_write_security_delete(), GB_write_security_levels(), GB_write_security_read(), GB_write_security_write(), gbcm_read_bin(), and undo_entry().
void gb_touch_header | ( | GBCONTAINER * | gbc | ) |
Definition at line 108 of file ad_core.cxx.
References GBDATA::flags2, GB_NORMAL_CHANGE, gb_touch_entry(), and gb_flag_types2::header_changed.
Referenced by gb_create(), gb_create_container(), GB_write_flag(), gbcm_read_bin(), and undo_entry().
void gb_untouch_children | ( | GBCONTAINER * | gbc | ) |
Definition at line 114 of file ad_core.cxx.
References GBDATA::as_container(), gb_header_flags::changed, GBCONTAINER::d, gb_header_list::flags, flags, GBDATA::flags2, GB_DATA_LIST_HEADER(), GB_DELETED, GB_HEADER_LIST_GBD(), GB_UNCHANGED, gb_untouch_children(), if, GBCONTAINER::index_of_touched_one_son, GBDATA::is_container(), gb_data_list::nheader, start, and gb_flag_types2::update_in_server.
Referenced by gb_unfold(), gb_untouch_children(), and gb_untouch_children_and_me().
void gb_untouch_me | ( | GBENTRY * | gbe | ) |
Definition at line 149 of file ad_core.cxx.
References gb_header_flags::changed, gb_header_list::flags, GB_DATA_LIST_HEADER(), GB_FATHER(), GB_UNCHANGED, and GBDATA::index.
Referenced by gb_unfold(), and gb_untouch_children_and_me().
void gb_untouch_children_and_me | ( | GBCONTAINER * | gbc | ) |
Definition at line 159 of file ad_core.cxx.
References gb_untouch_children(), and gb_untouch_me().
Referenced by GB_MAIN_TYPE::abort_transaction(), GB_MAIN_TYPE::commit_transaction(), and gb_unfold().
void gb_create_header_array | ( | GBCONTAINER * | gbc, |
int | size | ||
) |
Definition at line 176 of file ad_core.cxx.
References GBCONTAINER::d, gb_header_list::flags, gb_assert, GB_DATA_LIST_HEADER(), GB_HEADER_LIST_GBD(), GB_read_clients(), gbm_free_mem(), gbm_get_mem(), GBM_HEADER_INDEX, GBTUM_MAGIC_NUMBER, gb_data_list::headermemsize, arb_test::nl(), GBDATA::server_id, SET_GB_DATA_LIST_HEADER(), and SET_GB_HEADER_LIST_GBD().
Referenced by gb_clone_explicit(), gb_link_entry(), gb_read_bin_rek_V2(), gb_unfold(), and gbcm_read_bin().
GBDATA* gb_make_pre_defined_entry | ( | GBCONTAINER * | father, |
GBDATA * | gbd, | ||
long | index_pos, | ||
GBQUARK | keyq | ||
) |
Definition at line 327 of file ad_core.cxx.
References GB_MAIN_TYPE::clock, GBDATA::create_extended(), gb_link_entry(), gb_write_index_key(), GBCONTAINER_MAIN(), GBTUM_MAGIC_NUMBER, GBDATA::index, GB_MAIN_TYPE::is_server(), GBDATA::server_id, SET_GB_FATHER(), and GBDATA::touch_creation().
Referenced by undo_entry().
GBENTRY* gb_make_entry | ( | GBCONTAINER * | father, |
const char * | key, | ||
long | index_pos, | ||
GBQUARK | keyq, | ||
GB_TYPES | type | ||
) |
Definition at line 353 of file ad_core.cxx.
References GB_MAIN_TYPE::clock, GBDATA::create_extended(), GBDATA::flags, gb_find_or_create_quark(), GB_GBM_INDEX, gb_link_entry(), GB_OBSOLETE, GB_STRING, GB_STRING_SHRT, gb_write_index_key(), gb_write_key(), GBCONTAINER_MAIN(), gbm_get_mem(), GBTUM_MAGIC_NUMBER, GBDATA::index, GBENTRY::insert_data(), GB_MAIN_TYPE::is_server(), quark2gbmindex(), GBDATA::server_id, SET_GB_FATHER(), gb_flag_types::temporary, GBDATA::touch_creation(), gb_flag_types::type, and type.
Referenced by gb_create(), gb_parse_ascii_rek(), gb_read_bin_rek_V2(), and gbcm_read_bin().
GBCONTAINER* gb_make_pre_defined_container | ( | GBCONTAINER * | father, |
GBCONTAINER * | gbc, | ||
long | index_pos, | ||
GBQUARK | keyq | ||
) |
Definition at line 395 of file ad_core.cxx.
References GB_MAIN_TYPE::clock, GBDATA::create_extended(), gb_link_entry(), gb_write_index_key(), GBCONTAINER_MAIN(), GBTUM_MAGIC_NUMBER, if, GBDATA::index, GB_MAIN_TYPE::is_server(), GBCONTAINER::main_idx, GBDATA::server_id, SET_GB_FATHER(), and GBDATA::touch_creation().
Referenced by undo_entry().
GBCONTAINER* gb_make_container | ( | GBCONTAINER * | father, |
const char * | key, | ||
long | index_pos, | ||
GBQUARK | keyq | ||
) |
Definition at line 414 of file ad_core.cxx.
References GB_MAIN_TYPE::clock, GBDATA::create_extended(), GBDATA::flags, GB_DB, gb_find_or_create_NULL_quark(), GB_GBM_INDEX, gb_link_entry(), gb_write_index_key(), gb_write_key(), GBCONTAINER_MAIN(), gbm_get_mem(), GBTUM_MAGIC_NUMBER, if, GBDATA::index, GB_MAIN_TYPE::is_server(), GBCONTAINER::main_idx, quark2gbmindex(), GBDATA::server_id, SET_GB_FATHER(), GBDATA::touch_creation(), and gb_flag_types::type.
Referenced by gb_create_container(), GB_login(), gb_parse_ascii_rek(), gb_read_bin_rek_V2(), and gbcm_read_bin().
void gb_pre_delete_entry | ( | GBDATA * | gbd | ) |
Definition at line 445 of file ad_core.cxx.
References GBDATA::as_entry(), GBDATA::destroy_extended(), GB_BITS, GB_DB, GB_FATHER(), gb_free_cache(), GB_FREE_TRANSACTION_SAVE(), GB_MAIN_NO_FATHER(), gb_unlink_entry(), gb_write_index_key(), GBS_write_numhash(), GBDATA::index, GB_MAIN_TYPE::is_client(), GB_MAIN_TYPE::remote_hash, GBDATA::server_id, GB_MAIN_TYPE::trigger_delete_callbacks(), and GBDATA::type().
Referenced by gb_check_in_undo_delete(), and gb_delete_entry().
void gb_delete_entry | ( | GBDATA *& | gbd | ) |
Definition at line 511 of file ad_core.cxx.
References gb_delete_entry(), and GBDATA::is_container().
void gb_delete_dummy_father | ( | GBCONTAINER *& | gbc | ) |
Definition at line 542 of file ad_core.cxx.
References GBDATA::as_container(), GBCONTAINER::d, gb_assert, gb_delete_entry(), gb_delete_main_entry(), GB_FATHER(), gb_main, GB_MAIN(), GBCONTAINER_ELEM(), gb_data_list::nheader, NULp, GB_MAIN_TYPE::root_container, and SET_GBCONTAINER_ELEM().
Referenced by GB_close(), and GB_login().
void gb_add_ref_gb_transaction_save | ( | gb_transaction_save * | ts | ) |
Definition at line 586 of file ad_core.cxx.
References gb_transaction_save::refcount.
Referenced by gb_check_in_undo_modify(), and gb_triggered_callback::gb_triggered_callback().
void gb_del_ref_gb_transaction_save | ( | gb_transaction_save * | ts | ) |
Definition at line 591 of file ad_core.cxx.
References gb_extern_data2::data, gb_data_base_type_union2::ex, gb_transaction_save::flags2, GBM_CB_INDEX, gbm_free_mem(), gb_flag_types2::gbm_index, gb_transaction_save::info, gb_extern_data2::memsize, gb_transaction_save::refcount, and gb_transaction_save::stored_external().
Referenced by delete_g_b_undo_entry(), gb_del_ref_and_extern_gb_transaction_save(), GB_FREE_TRANSACTION_SAVE(), and gb_triggered_callback::~gb_triggered_callback().
void gb_del_ref_and_extern_gb_transaction_save | ( | gb_transaction_save * | ts | ) |
Definition at line 606 of file ad_core.cxx.
References gb_extern_data2::data, gb_data_base_type_union2::ex, gb_del_ref_gb_transaction_save(), gb_transaction_save::info, NULp, and gb_transaction_save::stored_external().
Referenced by gb_abortdata(), and undo_entry().
void gb_save_extern_data_in_ts | ( | GBENTRY * | gbe | ) |
Definition at line 639 of file ad_core.cxx.
References GBDATA::create_extended(), gb_data_base_type_union::ex, GBDATA::ext, GBENTRY::free_data(), GB_ARRAY_FLAGS(), GB_CREATED, gb_new_gb_transaction_save(), GBENTRY::index_check_out(), GBENTRY::info, NULp, gb_db_extended::old, and gb_extern_data::set_data().
Referenced by gb_copy_explicit(), gb_save_extern_data_in_ts__and_uncache(), GB_write_byte(), GB_write_float(), GB_write_int(), GB_write_pointer(), gbcm_read_bin(), GB_MAIN_TYPE::trigger_delete_callbacks(), and undo_entry().
void gb_write_index_key | ( | GBCONTAINER * | father, |
long | index, | ||
GBQUARK | new_index | ||
) |
Definition at line 660 of file ad_core.cxx.
References GBDATA::as_entry(), GBCONTAINER::d, gb_header_list::flags, GBDATA::flags2, GB_DATA_LIST_HEADER(), GB_FATHER(), GB_HEADER_LIST_GBD(), GB_INDEX_FILES_NEXT(), GBCONTAINER_IFS(), GBCONTAINER_MAIN(), GBENTRY::index_check_in(), GBENTRY::index_check_out(), GBDATA::is_indexable(), GB_MAIN_TYPE::is_server(), gb_index_files::key, gb_header_flags::key_quark, GB_MAIN_TYPE::keys, gb_Key::nref, NULp, and gb_flag_types2::should_be_indexed.
Referenced by gb_make_container(), gb_make_entry(), gb_make_pre_defined_container(), gb_make_pre_defined_entry(), gb_pre_delete_entry(), gb_write_key(), and gbcm_read_bin().
void gb_create_key_array | ( | GB_MAIN_TYPE * | Main, |
int | index | ||
) |
Definition at line 697 of file ad_core.cxx.
References ARB_recalloc(), gb_Key::compression_mask, gb_assert, GB_MAIN_TYPE::keycnt, GB_MAIN_TYPE::keys, and GB_MAIN_TYPE::sizeofkeys.
Referenced by gb_create_key(), and gbcmc_read_keys().
long gb_create_key | ( | GB_MAIN_TYPE * | Main, |
const char * | key, | ||
bool | create_gb_key | ||
) |
Definition at line 708 of file ad_core.cxx.
References ALLOWED_KEYS, ARB_strdup(), GB_MAIN_TYPE::clock, GB_MAIN_TYPE::first_free_key, gb_assert, GB_await_error(), gb_create_key_array(), GB_MAIN_TYPE::gb_key_data, gb_load_single_key_data(), GB_MAIN_TYPE::gb_main(), gbcmc_key_alloc(), GBK_terminate(), GBK_terminate_on_error(), GBK_terminatef(), GBS_hash_elements(), GBS_write_hash(), GB_MAIN_TYPE::is_client(), gb_Key::key, GB_MAIN_TYPE::key_2_index_hash, GB_MAIN_TYPE::key_clock, GB_MAIN_TYPE::keycnt, GB_MAIN_TYPE::keys, gb_Key::next_free_key, gb_Key::nref, and GB_MAIN_TYPE::send_update_to_server().
Referenced by gb_find_or_create_quark(), GB_login(), gb_read_bin(), gb_write_key(), and gbcms_talking_key_alloc().
Definition at line 768 of file ad_core.cxx.
References GBDATA::as_entry(), gb_header_flags::flags, GBDATA::flags, GBENTRY::free_data(), gb_abortdata(), GB_ARRAY_FLAGS(), GB_BITS, gb_uncache(), GBDATA::get_oldData(), GBDATA::is_entry(), NULp, gb_flag_types::saved_flags, and GBDATA::type().
Referenced by gb_abort_transaction_local_rek(), and gb_check_in_undo_delete().
void gb_abort_transaction_local_rek | ( | GBDATA *& | gbd | ) |
Definition at line 787 of file ad_core.cxx.
References GBDATA::as_container(), gb_header_flags::changed, GBCONTAINER::d, gb_abort_entry(), gb_abort_transaction_local_rek(), GB_ARRAY_FLAGS(), GB_CREATED, GB_DATA_LIST_HEADER(), gb_delete_entry(), GB_DELETED, GB_HEADER_LIST_GBD(), GB_PUT_SECURITY_DELETE, GB_UNCHANGED, GBDATA::is_container(), and gb_data_list::nheader.
Referenced by GB_MAIN_TYPE::abort_transaction(), and gb_abort_transaction_local_rek().
Definition at line 818 of file ad_core.cxx.
References _GB_CHECK_IN_UNDO_CREATE(), _GB_CHECK_IN_UNDO_DELETE(), _GB_CHECK_IN_UNDO_MODIFY(), GBDATA::as_container(), gb_header_flags::changed, GB_MAIN_TYPE::clock, GBDATA::create_extended(), GBCONTAINER::d, error(), flags, GBDATA::flags2, GB_ARRAY_FLAGS(), GB_CB_CHANGED, GB_CB_CHANGED_OR_SON_CREATED, gb_commit_transaction_local_rek(), GB_CREATED, GB_DATA_LIST_HEADER(), gb_delete_entry(), GB_DELETED, GB_FREE_TRANSACTION_SAVE(), GB_HEADER_LIST_GBD(), GB_MAIN(), GB_NORMAL_CHANGE, GB_PUT_SECURITY_DELETE, gb_set_update_in_server_flags(), GB_UNCHANGED, gbcmc_sendupdate_create(), gbcmc_sendupdate_delete(), gbcmc_sendupdate_update(), gbcms_add_to_delete_list(), gb_flag_types2::header_changed, GBCONTAINER::header_update_date, GBCONTAINER::index_of_touched_one_son, GBDATA::is_container(), gb_data_list::nheader, NULp, GBDATA::server_id, start, GBDATA::touch_update(), GB_MAIN_TYPE::trigger_change_callbacks(), and gb_flag_types2::update_in_server.
Referenced by GB_MAIN_TYPE::commit_transaction(), gb_commit_transaction_local_rek(), and GB_MAIN_TYPE::send_update_to_server().
GB_MAIN_IDX gb_make_main_idx | ( | GB_MAIN_TYPE * | Main | ) |
Definition at line 922 of file ad_load.cxx.
References gb_assert, gb_main_array, GB_MAIN_ARRAY_SIZE, GB_random(), initialized, NULp, and short.
Referenced by GB_login(), and gb_save_mapfile().
Definition at line 30 of file ad_save_load.cxx.
References NULp.
Referenced by GB_login(), gb_mapfile_name(), gb_oldQuicksaveName(), gb_quicksaveName(), and gb_reffile_name().
Definition at line 57 of file ad_save_load.cxx.
References gb_findExtension(), and STATIC_BUFFER().
Referenced by GB_login(), and gb_remove_quick_saved().
Definition at line 73 of file ad_save_load.cxx.
References gb_findExtension(), and STATIC_BUFFER().
Referenced by deleteSuperfluousQuicksaves(), GB_login(), gb_remove_quick_saved(), renameQuicksaves(), and GB_MAIN_TYPE::save_quick().
Definition at line 88 of file ad_save_load.cxx.
References gb_findExtension(), and STATIC_BUFFER().
Referenced by ArbDBWriter::finishSave(), GB_mapfile(), gb_read_bin(), and gb_remove_all_but_main().
Definition at line 284 of file ad_save_load.cxx.
References A_TO_I, gb_flag_types::compressed_data, GBDATA::flags, and s.
Referenced by gb_parse_ascii_rek().
Definition at line 567 of file ad_save_load.cxx.
References GB_export_errorf(), GB_KEY(), GB_print_error(), and long.
Referenced by gb_read_bin(), gb_read_bin_rek_V2(), and read_keyword().
Definition at line 179 of file adcache.cxx.
References GB_MAIN_TYPE::cache, GBENTRY::cache_index, gb_cache_entry::clock, gb_cache_entry::data, flush_cache_entry(), gb_assert, GB_MAIN(), gb_cache_entry::gbe, link_cache_entry_to_top(), NULp, unlink_cache_entry(), and GBDATA::update_date().
Referenced by GB_read_bits_pntr(), and GB_read_pntr().
void gb_free_cache | ( | GB_MAIN_TYPE * | Main, |
GBENTRY * | gbe | ||
) |
Definition at line 204 of file adcache.cxx.
References GB_MAIN_TYPE::cache, GBENTRY::cache_index, flush_cache_entry(), and unlink_cache_entry().
Referenced by gb_pre_delete_entry(), and gb_uncache().
void gb_uncache | ( | GBENTRY * | gbe | ) |
Definition at line 215 of file adcache.cxx.
References gb_free_cache(), and GB_MAIN().
Definition at line 260 of file adcache.cxx.
References ARB_alloc(), ARB_strdup(), GB_MAIN_TYPE::cache, cache_free_some_memory(), GBENTRY::cache_index, gb_cache_entry::clock, gb_cache_entry::data, gb_cache::entries, gb_cache::firstfree_entry, gb_assert, GB_get_db_path(), GB_MAIN(), gb_cache_entry::gbe, link_cache_entry_to_top(), gb_cache_entry::next, gb_cache_entry::sizeof_data, gb_cache::sum_data_size, and GBDATA::update_date().
Referenced by GB_read_bits_pntr(), and GB_read_pntr().
GB_ERROR gbcm_unfold_client | ( | GBCONTAINER * | gbc, |
long | deep, | ||
long | index_pos | ||
) |
Definition at line 1305 of file adcomm.cxx.
References buffer, GB_MAIN_TYPE::c_link, CLIENT_ERROR, CLIENT_SEND_ERROR, error(), GBDATA::flags2, gb_flag_types2::folded_container, GB_read_key_pntr(), GBCM_COMMAND_SEND_COUNT, GBCM_COMMAND_SETDEEP, GBCM_COMMAND_SETINDEX, GBCM_COMMAND_UNFOLD, gbcm_read_bin(), gbcm_read_flush(), gbcm_read_two(), gbcm_write_flush(), gbcm_write_two(), GBCONTAINER_MAIN(), GBS_global_string(), NULp, GBDATA::server_id, and gbcmc_comm::socket.
Referenced by gb_unfold().
Definition at line 1356 of file adcomm.cxx.
References CLIENT_SEND_ERROR_AT_ITEM, GB_MAIN(), GBCM_COMMAND_PUT_UPDATE, gbcm_write_two(), NULp, and GBDATA::server_id.
Referenced by GB_MAIN_TYPE::commit_transaction(), and GB_MAIN_TYPE::send_update_to_server().
Definition at line 1365 of file adcomm.cxx.
References buffer, GB_MAIN_TYPE::c_link, CLIENT_RECEIVE_ERROR, CLIENT_SEND_ERROR_AT_ITEM, GB_MAIN(), GBCM_COMMAND_PUT_UPDATE_END, gbcm_read(), gbcm_read_flush(), gbcm_write_flush(), gbcm_write_two(), GBS_write_numhash(), NULp, GB_MAIN_TYPE::remote_hash, GBDATA::server_id, and gbcmc_comm::socket.
Referenced by GB_MAIN_TYPE::commit_transaction(), and GB_MAIN_TYPE::send_update_to_server().
Definition at line 1389 of file adcomm.cxx.
References buffer, GB_MAIN_TYPE::c_link, CLIENT_ERROR, CLIENT_SEND_ERROR_AT_ITEM, father, GB_FATHER(), GB_give_buffer(), GB_KEY(), GB_MAIN(), GBCM_COMMAND_PUT_UPDATE_CREATE, gbcm_write_bin(), gbcm_write_two(), GBS_global_string(), GBDATA::server_id, and gbcmc_comm::socket.
Referenced by gb_commit_transaction_local_rek().
Definition at line 1406 of file adcomm.cxx.
References CLIENT_SEND_ERROR_AT_ITEM, GB_MAIN(), GBCM_COMMAND_PUT_UPDATE_DELETE, gbcm_write_two(), NULp, and GBDATA::server_id.
Referenced by gb_commit_transaction_local_rek().
Definition at line 1415 of file adcomm.cxx.
References buffer, GB_MAIN_TYPE::c_link, CLIENT_ERROR, CLIENT_SEND_ERROR_AT_ITEM, father, GB_FATHER(), GB_give_buffer(), GB_KEY(), GB_MAIN(), GBCM_COMMAND_PUT_UPDATE_UPDATE, gbcm_write_bin(), gbcm_write_two(), GBS_global_string(), GBDATA::server_id, and gbcmc_comm::socket.
Referenced by gb_commit_transaction_local_rek().
Definition at line 1469 of file adcomm.cxx.
References GBDATA::as_container(), buffer, GB_MAIN_TYPE::c_link, CLIENT_RECEIVE_ERROR, CLIENT_SEND_ERROR, CLIENT_SEND_ERROR_AT_ITEM, GB_MAIN_TYPE::clock, GBDATA::create_extended(), error(), GBDATA::flags2, gb_flag_types2::folded_container, gb_delete_entry(), GB_give_buffer(), GB_MAIN(), GBCM_COMMAND_BEGIN_TRANSACTION, GBCM_COMMAND_PUT_UPDATE_CREATE, GBCM_COMMAND_PUT_UPDATE_DELETE, GBCM_COMMAND_PUT_UPDATE_END, GBCM_COMMAND_PUT_UPDATE_KEYS, GBCM_COMMAND_PUT_UPDATE_UPDATE, GBCM_COMMAND_TRANSACTION_RETURN, gbcm_read(), gbcm_read_bin(), gbcm_read_flush(), gbcm_read_two(), gbcm_write_flush(), gbcm_write_two(), gbcmc_read_keys(), GBS_read_numhash(), NULp, GB_MAIN_TYPE::remote_hash, gbcmc_comm::socket, GBDATA::touch_creation_and_update(), and GBDATA::touch_update().
GB_ERROR gbcmc_init_transaction | ( | GBCONTAINER * | gbc | ) |
Definition at line 1549 of file adcomm.cxx.
References buffer, GB_MAIN_TYPE::c_link, CLIENT_RECEIVE_ERROR, CLIENT_SEND_ERROR, CLIENT_SEND_ERROR_AT_ITEM, GB_MAIN_TYPE::clock, error(), GBCM_COMMAND_INIT_TRANSACTION, GBCM_COMMAND_TRANSACTION_RETURN, gbcm_read(), gbcm_read_flush(), gbcm_read_two(), gbcm_write_flush(), gbcm_write_string(), gbcm_write_two(), gbcmc_read_keys(), GBCONTAINER_MAIN(), GBS_write_numhash(), NULp, GB_MAIN_TYPE::remote_hash, GBDATA::server_id, gbcmc_comm::socket, GB_MAIN_TYPE::this_user, gb_user::userbit, gb_user::userid, and gb_user::username.
Definition at line 1596 of file adcomm.cxx.
References GB_MAIN_TYPE::c_link, CLIENT_RECEIVE_ERROR, CLIENT_SEND_ERROR, CLIENT_SEND_ERROR_AT_ITEM, GB_MAIN(), GBCM_COMMAND_COMMIT_TRANSACTION, GBCM_COMMAND_TRANSACTION_RETURN, gbcm_read_flush(), gbcm_read_two(), gbcm_write_flush(), gbcm_write_two(), NULp, GBDATA::server_id, and gbcmc_comm::socket.
Referenced by GB_MAIN_TYPE::commit_transaction().
Definition at line 1615 of file adcomm.cxx.
References GB_MAIN_TYPE::c_link, CLIENT_RECEIVE_ERROR, CLIENT_SEND_ERROR, CLIENT_SEND_ERROR_AT_ITEM, GB_MAIN(), GBCM_COMMAND_ABORT_TRANSACTION, GBCM_COMMAND_TRANSACTION_RETURN, gbcm_read_flush(), gbcm_read_two(), gbcm_write_flush(), gbcm_write_two(), NULp, GBDATA::server_id, and gbcmc_comm::socket.
Referenced by GB_MAIN_TYPE::abort_transaction().
Definition at line 1635 of file adcomm.cxx.
References gbcms_delete_list::creation_date, GBDATA::creation_date(), gb_server_data::del_first, gb_server_data::del_last, GB_MAIN(), gbcms_delete_list::gbd, GBM_CB_INDEX, gbm_get_mem(), gbcms_delete_list::next, NULp, GB_MAIN_TYPE::server_data, gb_server_data::soci, gbcms_delete_list::update_date, and GBDATA::update_date().
Referenced by gb_commit_transaction_local_rek().
allocate a new key quark from client returns new key quark for 'key' or 0 (error is exported in that case)
Definition at line 1788 of file adcomm.cxx.
References GB_MAIN_TYPE::c_link, CLIENT_RECEIVE_ERROR, CLIENT_SEND_ERROR, error(), gb_assert, GB_export_error(), GB_MAIN(), GBCM_COMMAND_KEY_ALLOC, GBCM_COMMAND_KEY_ALLOC_RES, gbcm_read_flush(), gbcm_read_two(), gbcm_write_flush(), gbcm_write_string(), gbcm_write_two(), invalid_use_in_server(), GB_MAIN_TYPE::is_server(), NULp, result, GBDATA::server_id, and gbcmc_comm::socket.
Referenced by gb_create_key().
GB_ERROR gbcmc_send_undo_commands | ( | GBDATA * | gbd, |
enum gb_undo_commands | command | ||
) |
Definition at line 1824 of file adcomm.cxx.
References GB_MAIN_TYPE::c_link, CLIENT_SEND_ERROR, error(), GB_MAIN(), GBCM_COMMAND_UNDO, GBCM_COMMAND_UNDO_CMD, gbcm_read_flush(), gbcm_read_string(), gbcm_write_flush(), gbcm_write_two(), invalid_use_in_server(), GB_MAIN_TYPE::is_server(), NULp, GBDATA::server_id, and gbcmc_comm::socket.
Referenced by GB_request_undo_type(), GB_set_undo_mem(), and GB_undo().
char* gbcmc_send_undo_info_commands | ( | GBDATA * | gbd, |
enum gb_undo_commands | command | ||
) |
Definition at line 1847 of file adcomm.cxx.
References GB_MAIN_TYPE::c_link, CLIENT_SEND_ERROR, GB_export_error(), GB_MAIN(), GBCM_COMMAND_UNDO, GBCM_COMMAND_UNDO_CMD, gbcm_read_flush(), gbcm_read_string(), gbcm_write_flush(), gbcm_write_two(), invalid_use_in_server(), GB_MAIN_TYPE::is_server(), NULp, result, GBDATA::server_id, and gbcmc_comm::socket.
Referenced by GB_undo_info().
GB_ERROR gbcm_login | ( | GBCONTAINER * | gb_main, |
const char * | loginname | ||
) |
Definition at line 1883 of file adcomm.cxx.
References ARB_calloc(), ARB_strdup(), GB_MAX_USERS, GBCONTAINER_MAIN(), GBS_global_string(), NULp, gb_user::nusers, GB_MAIN_TYPE::this_user, gb_user::userbit, gb_user::userid, gb_user::username, and GB_MAIN_TYPE::users.
Referenced by GB_login(), and gbcms_talking_init_transaction().
GBCM_ServerResult gbcmc_close | ( | gbcmc_comm * | link | ) |
Definition at line 1916 of file adcomm.cxx.
References CLIENT_SEND_ERROR, GB_export_error(), GBCM_COMMAND_CLOSE, GBCM_SERVER_FAULT, GBCM_SERVER_OK, gbcm_write_flush(), gbcm_write_two(), gbcmc_comm::socket, and gbcmc_comm::unix_name.
Referenced by GB_close(), and GBCMS_open().
GB_ERROR gbcm_logout | ( | GB_MAIN_TYPE * | Main, |
const char * | loginname | ||
) |
Definition at line 1934 of file adcomm.cxx.
References gb_assert, GB_export_errorf(), GB_MAX_USERS, NULp, gb_user::nusers, gb_user::username, and GB_MAIN_TYPE::users.
Referenced by GB_close(), GB_login(), and GBCMS_accept_calls().
gb_compress_tree* gb_build_uncompress_tree | ( | const unsigned char * | data, |
long | short_flag, | ||
char ** | end | ||
) |
Definition at line 120 of file adcompr.cxx.
References error(), gb_check_huffmann_tree(), GB_export_error(), gb_free_compress_tree(), GB_internal_error(), GB_internal_errorf(), GBM_CB_INDEX, gbm_get_mem(), gb_compress_tree::leaf, NULp, and gb_compress_tree::son.
Referenced by gb_local_data::gb_local_data(), and gb_uncompress_huffmann().
void gb_free_compress_tree | ( | gb_compress_tree * | tree | ) |
Definition at line 183 of file adcompr.cxx.
References gb_free_compress_tree(), GBM_CB_INDEX, gbm_free_mem(), gb_compress_tree::leaf, and gb_compress_tree::son.
Referenced by gb_build_uncompress_tree(), gb_free_compress_tree(), gb_uncompress_huffmann(), and gb_local_data::~gb_local_data().
gb_compress_list* gb_build_compress_list | ( | const unsigned char * | data, |
long | short_flag, | ||
long * | size | ||
) |
Definition at line 193 of file adcompr.cxx.
References gb_compress_list::bitcnt, gb_compress_list::bits, gb_compress_list::command, command, gb_compress_list::mask, and gb_compress_list::value.
Referenced by gb_local_data::gb_local_data().
Definition at line 250 of file adcompr.cxx.
References gb_local_data::bc_size, gb_compress_list::bitcnt, gb_local_data::bitcompress, gb_compress_list::bits, buffer, gb_compress_list::command, command, GB_CS_OK, GB_CS_SUB, GB_give_other_buffer(), GB_INIT_WRITE_BITS, gb_local, GB_WRITE_BITS, s, and gb_compress_list::value.
Referenced by GB_write_bits().
Definition at line 294 of file adcompr.cxx.
References gb_local_data::bituncompress, buffer, GB_CS_OK, GB_CS_SUB, GB_give_other_buffer(), gb_local, GB_READ_BIT, gb_compress_tree::leaf, long, s, and gb_compress_tree::son.
Referenced by GB_read_bits_pntr().
Definition at line 392 of file adcompr.cxx.
References buffer, g_b_write_run(), GB_COPY_NONRUN, and GB_RUNLENGTH_SIZE.
Referenced by gb_compress_equal_bytes(), and gb_compress_seq_by_master().
GB_BUFFER gb_uncompress_bytes | ( | GB_CBUFFER | source, |
size_t | size, | ||
size_t * | new_size | ||
) |
Definition at line 761 of file adcompr.cxx.
References gb_assert, gb_uncompress_equal_bytes(), and gb_uncompress_huffmann().
Referenced by gb_convert_compression().
GB_BUFFER gb_uncompress_longs_old | ( | GB_CBUFFER | source, |
size_t | size, | ||
size_t * | new_size | ||
) |
Definition at line 772 of file adcompr.cxx.
References gb_assert, GB_give_other_buffer(), gb_uncompress_equal_bytes(), gb_uncompress_huffmann(), NULp, and STATIC_ASSERT.
Referenced by gb_convert_compression().
GB_DICTIONARY* gb_get_dictionary | ( | GB_MAIN_TYPE * | Main, |
GBQUARK | key | ||
) |
Definition at line 857 of file adcompr.cxx.
References gb_Key::dictionary, GB_internal_error(), gb_Key::gb_key, GB_MAIN_TYPE::gb_key_data, gb_Key::gb_key_disabled, gb_load_single_key_data(), GB_MAIN_TYPE::gb_main(), GB_MAIN_TYPE::keys, and NULp.
Referenced by gb_compress_data(), gb_create_dictionaries(), and gb_uncompress_by_dictionary().
GB_BUFFER gb_compress_data | ( | GBDATA * | gbd, |
int | key, | ||
GB_CBUFFER | source, | ||
size_t | size, | ||
size_t * | msize, | ||
GB_COMPRESSION_MASK | max_compr, | ||
bool | pre_compressed | ||
) |
Definition at line 923 of file adcompr.cxx.
References gb_assert, gb_compress_by_dictionary(), gb_compress_equal_bytes(), gb_compress_huffmann(), gb_compress_longs(), GB_COMPRESSION_DICTIONARY, GB_COMPRESSION_HUFFMANN, GB_COMPRESSION_LAST, GB_COMPRESSION_RUNLENGTH, GB_COMPRESSION_SORTBYTES, gb_get_dictionary(), GB_HUFFMAN_MIN_SIZE, GB_KEY_QUARK(), GB_MAIN(), GB_RUNLENGTH_MIN_SIZE, GB_STRING, NULp, and GBDATA::type().
Referenced by gb_compress_sequence_by_master(), and GB_write_pntr().
GB_CBUFFER gb_uncompress_data | ( | GBDATA * | gbd, |
GB_CBUFFER | source, | ||
size_t | size | ||
) |
Definition at line 990 of file adcompr.cxx.
References error(), GB_await_error(), GB_COMPRESSION_DICTIONARY, GB_COMPRESSION_HUFFMANN, GB_COMPRESSION_LAST, GB_COMPRESSION_RUNLENGTH, GB_COMPRESSION_SEQUENCE, GB_COMPRESSION_SORTBYTES, GB_COMPRESSION_TAGS_SIZE_MAX, GB_export_error(), GB_read_key_pntr(), gb_uncompress_by_dictionary(), gb_uncompress_by_sequence(), gb_uncompress_equal_bytes(), gb_uncompress_huffmann(), gb_uncompress_longs(), GBS_global_string(), and NULp.
Referenced by GB_read_pntr(), and gb_read_pntr_ts().
GB_ERROR gb_scan_directory | ( | char * | basename, |
gb_scandir * | sd | ||
) |
Definition at line 30 of file adfile.cxx.
References ARB_PATH_MAX, ARB_strdup(), buffer, gb_scandir::date_of_quick_file, error(), GB_SCAN_NEW_QUICK, GB_SCAN_NO_QUICK, GB_SCAN_OLD_QUICK, GBS_global_string(), gb_scandir::highest_quick_index, gb_scandir::newest_quick_index, NULp, and gb_scandir::type.
Referenced by GB_login().
Definition at line 193 of file adhash.cxx.
References gb_assert, and KNOWN_PRIMES.
Referenced by GB_create_index(), GBS_optimize_hash(), and hash_size().
void gb_destroy_indices | ( | GBCONTAINER * | gbc | ) |
Definition at line 166 of file adindex.cxx.
References GB_ENTRIES_ENTRY, GB_GBM_INDEX, GB_IF_ENTRIES_NEXT(), GB_INDEX_FILES_ENTRIES(), GB_INDEX_FILES_NEXT(), GBCONTAINER_IFS(), gbm_free_mem(), and gb_index_files::hash_table_size.
Referenced by gb_delete_entry().
GBDATA* gb_index_find | ( | GBCONTAINER * | gbf, |
gb_index_files * | ifs, | ||
GBQUARK | quark, | ||
const char * | val, | ||
GB_CASE | case_sens, | ||
int | after_index | ||
) |
Definition at line 267 of file adindex.cxx.
References gb_index_files::case_sens, GBCONTAINER::d, GB_CALC_HASH_INDEX, GB_ENTRIES_ENTRY, GB_FATHER(), GB_IF_ENTRIES_GBD(), GB_IF_ENTRIES_NEXT(), GB_INDEX_FILES_ENTRIES(), GB_INDEX_FIND, GB_internal_error(), GB_read_char_pntr(), GBS_string_matches(), gb_index_files::hash_table_size, GBDATA::index, gb_data_list::nheader, NULp, and result.
Referenced by find_sub_sub_by_quark().
void gb_init_undo_stack | ( | GB_MAIN_TYPE * | Main | ) |
Definition at line 344 of file adindex.cxx.
References ARB_calloc(), GB_MAX_UNDO_SIZE, g_b_undo_mgr::max_size_of_all_undos, g_b_undo_mgr::r, g_b_undo_mgr::u, and GB_MAIN_TYPE::undo.
Referenced by GB_MAIN_TYPE::GB_MAIN_TYPE().
void gb_free_undo_stack | ( | GB_MAIN_TYPE * | Main | ) |
Definition at line 417 of file adindex.cxx.
References delete_g_b_undo_header(), g_b_undo_mgr::r, g_b_undo_mgr::u, and GB_MAIN_TYPE::undo.
Referenced by GB_MAIN_TYPE::~GB_MAIN_TYPE().
Definition at line 582 of file adindex.cxx.
References error(), FALLTHROUGH, g_b_undo_list::father, g_b_check_undo_size(), gb_free_all_undos(), GB_MAIN(), gb_set_undo_type(), GB_UNDO_KILL, GB_UNDO_REDO, GB_UNDO_UNDO, GB_UNDO_UNDO_REDO, g_b_undo_list::next, NULp, g_b_undo_mgr::r, GB_MAIN_TYPE::requested_undo_type, g_b_undo_header::stack, g_b_undo_mgr::u, GB_MAIN_TYPE::undo, and g_b_undo_mgr::valid_u.
Referenced by GB_MAIN_TYPE::commit_transaction().
Definition at line 610 of file adindex.cxx.
References delete_g_b_undo_list(), g_b_undo_list::entries, g_b_undo_list::father, GB_MAIN(), gb_set_undo_type(), GB_UNDO_NONE, GB_UNDO_UNDO, g_b_undo_list::next, NULp, g_b_undo_mgr::r, GB_MAIN_TYPE::requested_undo_type, g_b_undo_header::sizeof_this, g_b_undo_header::stack, GB_MAIN_TYPE::undo, and g_b_undo_mgr::valid_u.
Referenced by GB_MAIN_TYPE::commit_transaction().
void gb_check_in_undo_create | ( | GB_MAIN_TYPE * | Main, |
GBDATA * | gbd | ||
) |
Definition at line 636 of file adindex.cxx.
References g_b_undo_entry::flag, GB_GBM_INDEX, GB_UNDO_ENTRY_TYPE_CREATED, g_b_undo_entry::gbm_index, new_g_b_undo_entry(), g_b_undo_entry::source, g_b_undo_entry::type, GB_MAIN_TYPE::undo, and g_b_undo_mgr::valid_u.
Referenced by _GB_CHECK_IN_UNDO_CREATE().
void gb_check_in_undo_modify | ( | GB_MAIN_TYPE * | Main, |
GBDATA * | gbd | ||
) |
Definition at line 647 of file adindex.cxx.
References g_b_undo_entry::d, gb_extern_data2::data, gb_data_base_type_union2::ex, g_b_undo_entry::flag, GBDATA::flags, g_b_add_size_to_undo_entry(), gb_add_ref_gb_transaction_save(), GB_BITS, GB_FREE_TRANSACTION_SAVE(), GB_GBM_INDEX, GB_UNDO_ENTRY_TYPE_MODIFY, GB_UNDO_ENTRY_TYPE_MODIFY_ARRAY, g_b_undo_entry::gbm_index, GBDATA::get_oldData(), gb_transaction_save::info, GBDATA::is_entry(), gb_extern_data2::memsize, new_g_b_undo_entry(), gb_flag_types::saved_flags, g_b_undo_entry::source, gb_transaction_save::stored_external(), g_b_undo_entry::ts, g_b_undo_entry::type, GBDATA::type(), GB_MAIN_TYPE::undo, and g_b_undo_mgr::valid_u.
Referenced by _GB_CHECK_IN_UNDO_MODIFY().
void gb_check_in_undo_delete | ( | GB_MAIN_TYPE * | Main, |
GBDATA *& | gbd | ||
) |
Definition at line 674 of file adindex.cxx.
References GBDATA::as_container(), GBDATA::as_entry(), g_b_undo_entry::d, GBCONTAINER::d, g_b_undo_entry::flag, gb_header_flags::flags, GBDATA::flags2, g_b_add_size_to_undo_entry(), gb_abort_entry(), GB_ARRAY_FLAGS(), GB_BITS, gb_check_in_undo_delete(), gb_delete_entry(), GB_FATHER(), GB_GBM_INDEX, GB_KEY_QUARK(), gb_pre_delete_entry(), GB_UNDO_ENTRY_TYPE_DELETED, GBCONTAINER_ELEM(), g_b_undo_gbd::gbd, g_b_undo_entry::gbm_index, g_b_undo_entry::gs, GBENTRY::index_check_out(), GBDATA::is_container(), g_b_undo_gbd::key, GBENTRY::memsize(), new_g_b_undo_entry(), gb_data_list::nheader, gb_flag_types2::should_be_indexed, g_b_undo_entry::source, GBENTRY::stored_external(), g_b_undo_entry::type, GBDATA::type(), GB_MAIN_TYPE::undo, and g_b_undo_mgr::valid_u.
Referenced by _GB_CHECK_IN_UNDO_DELETE(), and gb_check_in_undo_delete().
void gbm_flush_mem | ( | void | ) |
Definition at line 198 of file admalloc.cxx.
References gbm_pool::first, free_gbm_table(), gb_assert, GBM_MAX_INDEX, GBM_MAX_TABLES, gbm_pool4idx, and gbm_pool::useditems.
Referenced by GB_exit_gb(), and ARBDB_memory_manager::~ARBDB_memory_manager().
void gbm_init_mem | ( | void | ) |
Definition at line 219 of file admalloc.cxx.
References gbb_Cluster::first, GBB_ALIGN, gbb_cluster, GBB_CLUSTERS, GBB_INCR, GBB_MINSIZE, gbm_global, GBM_MAX_INDEX, gbm_pool4idx, NULp, gbb_Cluster::size, and gbm_pool::tables.
Referenced by ARBDB_memory_manager::ARBDB_memory_manager(), and GB_init_gb().
void gbm_debug_mem | ( | void | ) |
Definition at line 549 of file admalloc.cxx.
References gbm_pool::extern_data_items, gbm_pool::extern_data_size, GBM_ALIGNED, gbm_global, GBM_MAX_INDEX, GBM_MAX_TABLES, gbm_pool4idx, gbm_pool::tablecnt, and gbm_pool::useditems.
Referenced by GB_print_debug_information(), and ARBDB_memory_manager::~ARBDB_memory_manager().
GB_ERROR gb_save_mapfile | ( | GB_MAIN_TYPE * | Main, |
GB_CSTR | path | ||
) |
Definition at line 587 of file admap.cxx.
References ADMAP_BYTE_ORDER, ADMAP_ID, ADMAP_ID_LEN, ADMAP_VERSION, gb_map_header::byte_order, calcGbdOffsets(), createGbdByKey(), GB_MAIN_TYPE::dummy_father, error(), freeGbdByKey(), ftwrite_unaligned(), gb_assert, GB_FATHER(), GB_IO_error(), GB_MAIN_TYPE::gb_main(), gb_make_main_idx(), GB_unlink_or_warn(), getrel_GBDATA(), IF_ASSERTION_USED, gb_map_header::main_data_offset, gb_map_header::main_idx, GBCONTAINER::main_idx, gb_map_header::mapfileID, NULp, GB_MAIN_TYPE::release_main_idx(), GB_MAIN_TYPE::root_container, SET_GB_FATHER(), gb_map_header::version, writeError, and writeGbdByKey().
Referenced by ArbDBWriter::finishSave().
int gb_is_valid_mapfile | ( | const char * | path, |
gb_map_header * | mheader, | ||
int | verbose | ||
) |
Definition at line 652 of file admap.cxx.
References ADMAP_BYTE_ORDER, ADMAP_ID, ADMAP_VERSION, gb_map_header::byte_order, error(), GB_export_error(), GB_IO_error(), GB_print_error(), GBS_global_string(), gb_map_header::mapfileID, NULp, and gb_map_header::version.
Referenced by gb_map_mapfile(), and gb_read_bin().
Definition at line 706 of file admap.cxx.
References fileLen, gb_assert, gb_is_valid_mapfile(), GB_map_file(), GB_MAX_MAPPED_FILES, GB_size_of_file(), gb_map_header::main_data_offset, mappedFiles, and NULp.
Referenced by gb_read_bin().
int gb_isMappedMemory | ( | void * | mem | ) |
Definition at line 259 of file adoptimize.cxx.
References error(), gb_convert_compression(), GB_create_container(), GB_disable_quicksave(), GB_entry(), GB_FIND, GB_search(), GB_SYSTEM_FOLDER, GB_warning(), and NULp.
Referenced by GB_login().
char* gb_uncompress_by_dictionary | ( | GBDATA * | gbd, |
GB_CSTR | s_source, | ||
size_t | size, | ||
size_t * | new_size | ||
) |
Definition at line 578 of file adoptimize.cxx.
References error(), GB_export_error(), GB_get_db_path(), gb_get_dictionary(), GB_KEY_QUARK(), GB_MAIN(), gb_uncompress_by_dictionary_internal(), GBS_global_string(), GBDATA::is_a_string(), and NULp.
Referenced by gb_uncompress_data().
char* gb_compress_by_dictionary | ( | GB_DICTIONARY * | dict, |
GB_CSTR | s_source, | ||
size_t | size, | ||
size_t * | msize, | ||
int | last_flag, | ||
int | search_backward, | ||
int | search_forward | ||
) |
Definition at line 591 of file adoptimize.cxx.
References BITMASK, buffer, gb_assert, GB_COMPRESSION_DICTIONARY, GB_COMPRESSION_TAGS_SIZE_MAX, GB_give_other_buffer(), gb_uncompress_by_dictionary_internal(), INDEX_BITS, INDEX_LEN_SHIFT, INDEX_SHIFT, LAST_COMPRESSED_BIT, LEN_SHIFT, length, LONGLEN_DECR, MAX_LONG_INDEX, MAX_SHORT_INDEX, MAX_SHORTLEN, min(), MIN_COMPR_WORD_LEN, MIN_SHORTLEN, NULp, GB_DICTIONARY::offsets, searchWord(), and SHORTLEN_DECR.
Referenced by gb_compress_data().
GBDATA* gb_find_by_nr | ( | GBCONTAINER * | father, |
int | index | ||
) |
Definition at line 367 of file adquery.cxx.
References GBCONTAINER::d, gb_header_list::flags, flags, GB_DATA_LIST_HEADER(), GB_DELETED, GB_HEADER_LIST_GBD(), GB_internal_error(), GB_internal_errorf(), gb_unfold(), gb_header_flags::key_quark, gb_data_list::nheader, and NULp.
Referenced by gb_uncompress_by_sequence().
GBDATA* gb_search | ( | GBCONTAINER * | gbc, |
const char * | key, | ||
GB_TYPES | create, | ||
int | internflag | ||
) |
Definition at line 445 of file adquery.cxx.
References GBDATA::as_container(), find_or_create(), keychar_table::first_non_key_character(), gb_assert, GB_CREATE_CONTAINER, GB_export_error(), GB_export_errorf(), GB_FIND, gb_get_root(), GB_have_error(), gb_search(), GB_test_transaction(), GBDATA::get_father(), GBDATA::is_container(), and NULp.
Referenced by compress_sequence_tree(), gb_load_key_data_and_dictionaries(), gb_save_dictionary_data(), gb_search(), and GB_search().
void gbcm_read_flush | ( | void | ) |
Definition at line 50 of file adsocket.cxx.
References gb_local, gb_local_data::write_buffer, gb_local_data::write_bufsize, gb_local_data::write_free, and gb_local_data::write_ptr.
Referenced by commit_or_abort_transaction(), gbcm_read_buffered(), gbcm_unfold_client(), gbcmc_abort_transaction(), gbcmc_begin_transaction(), gbcmc_commit_transaction(), gbcmc_end_sendupdate(), GBCMC_find(), gbcmc_init_transaction(), gbcmc_key_alloc(), gbcmc_send_undo_commands(), gbcmc_send_undo_info_commands(), gbcms_talking(), gbcms_talking_begin_transaction(), gbcms_talking_find(), gbcms_talking_init_transaction(), gbcms_talking_key_alloc(), gbcms_talking_put_update(), gbcms_talking_undo(), and gbcms_talking_unfold().
Definition at line 79 of file adsocket.cxx.
References gbcm_read_buffered().
Referenced by gbcm_read_bin(), gbcm_read_long(), gbcm_read_string(), gbcm_read_two(), gbcmc_begin_transaction(), gbcmc_end_sendupdate(), gbcmc_init_transaction(), gbcmc_read_keys(), gbcmc_unfold_list(), gbcms_talking(), and gbcms_talking_put_update().
GBCM_ServerResult gbcm_write_flush | ( | int | socket | ) |
Definition at line 91 of file adsocket.cxx.
References EXIT_SUCCESS, gb_local, GBCM_SERVER_FAULT, GBCM_SERVER_OK, gb_local_data::iamclient, gb_local_data::write_buffer, gb_local_data::write_bufsize, gb_local_data::write_free, and gb_local_data::write_ptr.
Referenced by commit_or_abort_transaction(), gbcm_unfold_client(), gbcm_write(), gbcmc_abort_transaction(), gbcmc_begin_transaction(), gbcmc_close(), gbcmc_commit_transaction(), gbcmc_end_sendupdate(), GBCMC_find(), gbcmc_init_transaction(), gbcmc_key_alloc(), gbcmc_send_undo_commands(), gbcmc_send_undo_info_commands(), gbcms_talking_begin_transaction(), gbcms_talking_find(), gbcms_talking_init_transaction(), gbcms_talking_key_alloc(), gbcms_talking_put_update(), gbcms_talking_undo(), and gbcms_talking_unfold().
GBCM_ServerResult gbcm_write | ( | int | socket, |
const char * | ptr, | ||
long | size | ||
) |
Definition at line 128 of file adsocket.cxx.
References gb_local, GBCM_SERVER_FAULT, GBCM_SERVER_OK, gbcm_write_flush(), gb_local_data::write_free, and gb_local_data::write_ptr.
Referenced by gbcm_write_bin(), gbcm_write_long(), gbcm_write_string(), gbcm_write_two(), gbcms_talking_begin_transaction(), gbcms_talking_find(), gbcms_talking_put_update(), gbcms_write_deleted(), gbcms_write_keys(), and gbcms_write_updated().
Definition at line 144 of file adsocket.cxx.
References arb_open_socket(), GB_await_error(), and GBS_read_arb_tcp().
Referenced by gbcmc_open(), and GBCMS_open().
long gbcms_close | ( | gbcmc_comm * | link | ) |
gbcmc_comm* gbcmc_open | ( | const char * | path | ) |
Definition at line 170 of file adsocket.cxx.
References GB_internal_errorf(), gb_local, gbcm_open_socket(), gb_local_data::iamclient, link, NULp, gbcmc_comm::socket, and gbcmc_comm::unix_name.
Referenced by GBCMS_open(), and GB_MAIN_TYPE::login_remote().
Definition at line 186 of file adsocket.cxx.
References gbcm_write().
Referenced by commit_or_abort_transaction(), GB_tell_server_dont_wait(), gbcm_unfold_client(), gbcmc_abort_transaction(), gbcmc_begin_sendupdate(), gbcmc_begin_transaction(), gbcmc_close(), gbcmc_commit_transaction(), gbcmc_end_sendupdate(), GBCMC_find(), gbcmc_init_transaction(), gbcmc_key_alloc(), gbcmc_send_undo_commands(), gbcmc_send_undo_info_commands(), gbcmc_sendupdate_create(), gbcmc_sendupdate_delete(), gbcmc_sendupdate_update(), gbcms_talking_begin_transaction(), gbcms_talking_find(), gbcms_talking_init_transaction(), gbcms_talking_key_alloc(), and gbcms_talking_unfold().
GBCM_ServerResult gbcm_read_two | ( | int | socket, |
long | a, | ||
long * | b, | ||
long * | c | ||
) |
read two values: length and any user long
if data is send by gbcm_write_two() then
b | should be zero and is not used! |
Definition at line 196 of file adsocket.cxx.
References GB_internal_error(), GB_internal_errorf(), gbcm_read(), GBCM_SERVER_FAULT, and GBCM_SERVER_OK.
Referenced by gbcm_unfold_client(), gbcmc_abort_transaction(), gbcmc_begin_transaction(), gbcmc_commit_transaction(), GBCMC_find(), gbcmc_init_transaction(), gbcmc_key_alloc(), gbcms_talking_undo(), and gbcms_talking_unfold().
GBCM_ServerResult gbcm_write_string | ( | int | socket, |
const char * | key | ||
) |
Definition at line 228 of file adsocket.cxx.
References GBCM_SERVER_OK, gbcm_write(), and gbcm_write_long().
Referenced by GBCMC_find(), gbcmc_init_transaction(), gbcmc_key_alloc(), gbcms_talking_undo(), and gbcms_write_keys().
Definition at line 240 of file adsocket.cxx.
References ARB_calloc(), ARB_strdup(), gbcm_read(), gbcm_read_long(), and NULp.
Referenced by gbcmc_read_keys(), gbcmc_send_undo_commands(), gbcmc_send_undo_info_commands(), gbcms_talking_find(), gbcms_talking_init_transaction(), and gbcms_talking_key_alloc().
GBCM_ServerResult gbcm_write_long | ( | int | socket, |
long | data | ||
) |
Definition at line 260 of file adsocket.cxx.
References GBCM_SERVER_OK, and gbcm_write().
Referenced by gbcm_write_string(), and GBCMC_find().
Definition at line 265 of file adsocket.cxx.
References gbcm_read().
Referenced by gbcm_read_string(), and gbcms_talking_find().
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().
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().
GB_ERROR gb_unfold | ( | GBCONTAINER * | gbc, |
long | deep, | ||
int | index_pos | ||
) |
get data from server.
gbc | container to unfold |
deep | if != 0, then get subitems too. |
index_pos |
|
Definition at line 586 of file arbdb.cxx.
References GBDATA::as_container(), GBDATA::as_entry(), GBCONTAINER::d, error(), flags, GBDATA::flags2, gb_flag_types2::folded_container, gb_create_header_array(), GB_DATA_LIST_HEADER(), GB_DELETED, GB_HEADER_LIST_GBD(), GB_internal_error(), GB_print_error(), gb_untouch_children(), gb_untouch_children_and_me(), gb_untouch_me(), gbcm_unfold_client(), GBCONTAINER_ELEM(), GBCONTAINER_MAIN(), GBDATA::is_container(), gb_data_list::nheader, and NULp.
Referenced by dump_internal(), find_sub_by_quark(), GB_clone(), gb_copy_explicit(), gb_find_by_nr(), GB_get_subfields(), gb_search_marked(), gbcmc_unfold_list(), and GB_MAIN_TYPE::login_remote().
void gb_abort_and_close_all_DBs | ( | void | ) |
Definition at line 710 of file arbdb.cxx.
References GB_MAIN_TYPE::abort_transaction(), error(), GB_close(), gb_main, GB_MAIN(), gb_remembered_db(), and GB_MAIN_TYPE::get_transaction_level().
Referenced by GB_test_shell_closed::close_global_shell(), and GBP_prepare_to_die().
Definition at line 900 of file arbdb.cxx.
References GBDATA::index.
Referenced by compress_sequence_tree().
Definition at line 1317 of file arbdb.cxx.
References GBENTRY::cache_index, gb_flag_types::compressed_data, GBDATA::flags, gb_assert, GB_NORMAL_CHANGE, gb_save_extern_data_in_ts__and_uncache(), gb_touch_entry(), GBENTRY::insert_data(), and NULp.
Referenced by compress_sequence_tree().
int gb_get_compression_mask | ( | GB_MAIN_TYPE * | Main, |
GBQUARK | key, | ||
int | gb_type | ||
) |
Definition at line 1329 of file arbdb.cxx.
References gb_Key::compression_mask, gb_Key::gb_key, gb_Key::gb_key_disabled, gb_load_single_key_data(), GB_MAIN_TYPE::gb_main(), and GB_MAIN_TYPE::keys.
Referenced by gb_create_dictionaries(), and GB_write_pntr().
GBQUARK gb_find_or_create_quark | ( | GB_MAIN_TYPE * | Main, |
const char * | key | ||
) |
Definition at line 1668 of file arbdb.cxx.
References gb_create_key(), GBK_terminate(), and key2quark().
Referenced by compress_sequence_tree(), gb_find_or_create_NULL_quark(), GB_find_or_create_quark(), gb_fix_recursive(), gb_hierarchy_location::gb_hierarchy_location(), gb_load_key_data_and_dictionaries(), gb_make_entry(), and gb_save_dictionary_data().
GBQUARK gb_find_or_create_NULL_quark | ( | GB_MAIN_TYPE * | Main, |
const char * | key | ||
) |
Definition at line 1678 of file arbdb.cxx.
References gb_find_or_create_quark().
Referenced by gb_make_container().
GBCONTAINER* gb_get_root | ( | GBENTRY * | gbe | ) |
Definition at line 1741 of file arbdb.cxx.
References GB_MAIN(), and GB_MAIN_TYPE::root_container.
Referenced by gb_search().
GBCONTAINER* gb_get_root | ( | GBCONTAINER * | gbc | ) |
Definition at line 1742 of file arbdb.cxx.
References GB_MAIN(), and GB_MAIN_TYPE::root_container.
GBENTRY* gb_create | ( | GBCONTAINER * | father, |
const char * | key, | ||
GB_TYPES | type | ||
) |
Definition at line 1763 of file arbdb.cxx.
References GB_ARRAY_FLAGS(), gb_assert, GB_CREATED, GB_DELETED, GB_FATHER(), gb_make_entry(), gb_touch_entry(), and gb_touch_header().
Referenced by compress_sequence_tree(), find_or_create(), GB_create(), gb_load_single_key_data(), and gb_save_dictionary_data().
GBCONTAINER* gb_create_container | ( | GBCONTAINER * | father, |
const char * | key | ||
) |
Definition at line 1773 of file arbdb.cxx.
References GB_CREATED, GB_FATHER(), gb_make_container(), gb_touch_entry(), and gb_touch_header().
Referenced by compress_sequence_tree(), find_or_create(), GB_create_container(), gb_load_single_key_data(), and gb_save_dictionary_data().
Definition at line 1945 of file arbdb.cxx.
References GB_DELETED, gb_touch_entry(), and NULp.
Referenced by gbcms_talking_put_update().
GB_ERROR gb_resort_system_folder_to_top | ( | GBCONTAINER * | gb_main | ) |
Definition at line 2705 of file arbdb.cxx.
References error(), GB_child(), GB_entry(), GB_export_error(), GB_nextChild(), GB_number_of_subentries(), GB_read_clients(), GB_resort_data_base(), GB_SYSTEM_FOLDER, and NULp.
Referenced by GB_login().