ARB
Functions
ad_cb_prot.h File Reference
#include <attributes.h>
Include dependency graph for ad_cb_prot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

NOT4PERL bool GB_inside_callback (GBDATA *of_gbd, GB_CB_TYPE cbtype)
 
charGB_get_callback_info (GBDATA *gbd)
 
GB_ERROR GB_add_callback (GBDATA *gbd, GB_CB_TYPE type, const DatabaseCallback &dbcb)
 
void GB_remove_callback (GBDATA *gbd, GB_CB_TYPE type, const DatabaseCallback &dbcb)
 
void GB_remove_all_callbacks_to (GBDATA *gbd, GB_CB_TYPE type, GB_CB func)
 
GB_ERROR GB_add_hierarchy_callback (GBDATA *gb_main, const char *db_path, GB_CB_TYPE type, const DatabaseCallback &dbcb)
 
GB_ERROR GB_remove_hierarchy_callback (GBDATA *gb_main, const char *db_path, GB_CB_TYPE type, const DatabaseCallback &dbcb)
 
GB_ERROR GB_ensure_callback (GBDATA *gbd, GB_CB_TYPE type, const DatabaseCallback &dbcb)
 
void GB_atclose_callback (GBDATA *gbd, const DatabaseCallback &atClose)
 

Function Documentation

NOT4PERL bool GB_inside_callback ( GBDATA of_gbd,
GB_CB_TYPE  cbtype 
)
char* GB_get_callback_info ( GBDATA gbd)
GB_ERROR GB_add_callback ( GBDATA gbd,
GB_CB_TYPE  type,
const DatabaseCallback &  dbcb 
)
void GB_remove_callback ( GBDATA gbd,
GB_CB_TYPE  type,
const DatabaseCallback &  dbcb 
)
void GB_remove_all_callbacks_to ( GBDATA gbd,
GB_CB_TYPE  type,
GB_CB  func 
)

Definition at line 364 of file ad_cb.cxx.

References gb_remove_callbacks_that().

Referenced by flush_taxonomy_cb(), and get_cached_taxonomy().

GB_ERROR GB_add_hierarchy_callback ( GBDATA gb_main,
const char db_path,
GB_CB_TYPE  type,
const DatabaseCallback &  dbcb 
)

same as overloaded GB_add_hierarchy_callback(), but using db_path instead of GBDATA to define hierarchy location. If the path starts with '/', the full path has to match to trigger the callback. Otherwise only the given path has to match (from bottom up), e.g. "gb_group" will trigger on any "gb_group" entry (regardless of its parent-path).

Definition at line 432 of file ad_cb.cxx.

References GB_MAIN_TYPE::add_hierarchy_cb(), and GB_MAIN().

Referenced by install_config_change_callbacks().

GB_ERROR GB_remove_hierarchy_callback ( GBDATA gb_main,
const char db_path,
GB_CB_TYPE  type,
const DatabaseCallback &  dbcb 
)

same as overloaded GB_remove_hierarchy_callback(), but using db_path instead of GBDATA to define hierarchy location

Definition at line 440 of file ad_cb.cxx.

References GB_MAIN(), and GB_MAIN_TYPE::remove_hierarchy_cb().

GB_ERROR GB_ensure_callback ( GBDATA gbd,
GB_CB_TYPE  type,
const DatabaseCallback &  dbcb 
)
void GB_atclose_callback ( GBDATA gbd,
const DatabaseCallback &  atClose 
)

Add a callback, which gets called directly before GB_close destroys all data. This is the recommended way to remove all callbacks from DB elements.

Definition at line 458 of file ad_cb.cxx.

References add_to_callback_chain(), GB_MAIN_TYPE::close_callbacks, GB_CB_DELETE, and GB_MAIN().

Referenced by GroupUIdata::GroupUIdata(), keepQuery(), mark_as_macro_executor(), start_SECEDIT_plugin(), and TreeAwarRegistry::TreeAwarRegistry().