25 struct gb_close_callback_list;
46 quick_save_disabled(
NULp),
71 #if defined(GEN_CACHE_STATS)
84 #define ALLOWED_KEYS 15000
85 #define ALLOWED_DATES 256
92 int transaction_level;
93 int aborted_transaction;
101 callback_group() : hierarchy_cbs(
NULp) {}
105 inline void forget_hcbs();
110 callback_group changeCBs;
111 callback_group deleteCBs;
164 GB_ERROR check_saveable(
const char *new_path,
const char *
flags)
const;
165 GB_ERROR check_quick_saveable(
const char *new_path,
const char *
flags)
const {
167 return error ? error : check_saveable(new_path, flags);
220 #error gb_main.h included twice
long last_main_saved_transaction
int allow_corrupt_file_recovery
char * dates[ALLOWED_DATES]
__ATTR__USERESULT GB_ERROR send_update_to_server(GBDATA *gbd) __ATTR__USERESULT
gb_user * users[GB_MAX_USERS]
bool has_pending_change_callback() const
GBCONTAINER * root_container
unsigned int last_updated
void forget_hierarchy_cbs()
GB_ERROR save_as(const char *as_path, const char *savetype)
gb_cache_idx firstfree_entry
GB_MAIN_TYPE(const char *db_path)
gb_cache_idx oldest_entry
GB_ERROR save_quick(const char *refpath)
GB_HASH * key_2_index_hash
char * quick_save_disabled
GB_ERROR save_quick_as(const char *as_path)
GBCONTAINER * gb_key_data
GB_ERROR begin_transaction() __ATTR__USERESULT
GB_ERROR login_remote(const char *db_path, const char *opent) __ATTR__USERESULT
GB_ERROR push_transaction() __ATTR__USERESULT
GB_ERROR add_hierarchy_cb(const gb_hierarchy_location &loc, const TypedDatabaseCallback &dbcb)
static void error(const char *msg)
GB_UNDO_TYPE requested_undo_type
bool has_pending_delete_callback() const
GB_ERROR pop_transaction() __ATTR__USERESULT
int get_transaction_level() const
gb_server_data * server_data
unsigned int security_level
void trigger_change_callbacks(GBDATA *gbd, GB_CB_TYPE type)
GB_ERROR commit_transaction() __ATTR__USERESULT
gb_callback_list * close_callbacks
#define __ATTR__USERESULT
GB_ERROR panic_save(const char *db_panic)
long last_saved_transaction
GB_ERROR remove_hierarchy_cb(const gb_hierarchy_location &loc, const TypedDatabaseCallback &dbcb)
GB_ERROR abort_transaction() __ATTR__USERESULT
gb_cache_idx newest_entry
GB_ERROR no_transaction()
void trigger_delete_callbacks(GBDATA *gbd)
void call_pending_callbacks()
GBCONTAINER * dummy_father