Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Interface for a sorcery wizard. More...
#include <sorcery.h>
Data Fields | |
void(* | close )(void *data) |
Callback for closing a wizard. More... | |
int(* | create )(const struct ast_sorcery *sorcery, void *data, void *object) |
Callback for creating an object. More... | |
int(* | delete )(const struct ast_sorcery *sorcery, void *data, void *object) |
Callback for deleting an object. More... | |
void(* | force_reload )(void *data, const struct ast_sorcery *sorcery, const char *type) |
Optional callback for forcing a reload to occur, even if wizard has determined no changes. More... | |
int(* | is_stale )(const struct ast_sorcery *sorcery, void *data, void *object) |
Callback for whether or not the wizard believes the object is stale. More... | |
void(* | load )(void *data, const struct ast_sorcery *sorcery, const char *type) |
Optional callback for loading persistent objects. More... | |
struct ast_module * | module |
Pointer to the Asterisk module this wizard is implemented by. More... | |
const char * | name |
Name of the wizard. More... | |
void *(* | open )(const char *data) |
Callback for opening a wizard. More... | |
void(* | reload )(void *data, const struct ast_sorcery *sorcery, const char *type) |
Optional callback for reloading persistent objects. More... | |
void *(* | retrieve_fields )(const struct ast_sorcery *sorcery, void *data, const char *type, const struct ast_variable *fields) |
Optional callback for retrieving an object using fields. More... | |
void *(* | retrieve_id )(const struct ast_sorcery *sorcery, void *data, const char *type, const char *id) |
Callback for retrieving an object using an id. More... | |
void(* | retrieve_multiple )(const struct ast_sorcery *sorcery, void *data, const char *type, struct ao2_container *objects, const struct ast_variable *fields) |
Optional callback for retrieving multiple objects using some optional field criteria. More... | |
void(* | retrieve_prefix )(const struct ast_sorcery *sorcery, void *data, const char *type, struct ao2_container *objects, const char *prefix, const size_t prefix_len) |
Optional callback for retrieving multiple objects by matching their id with a prefix. More... | |
void(* | retrieve_regex )(const struct ast_sorcery *sorcery, void *data, const char *type, struct ao2_container *objects, const char *regex) |
Callback for retrieving multiple objects using a regex on their id. More... | |
int(* | update )(const struct ast_sorcery *sorcery, void *data, void *object) |
Callback for updating an object. More... | |
void(* close) (void *data) |
Callback for closing a wizard.
Definition at line 322 of file sorcery.h.
Referenced by AST_TEST_DEFINE(), and sorcery_object_wizard_destructor().
int(* create) (const struct ast_sorcery *sorcery, void *data, void *object) |
Callback for creating an object.
Definition at line 293 of file sorcery.h.
Referenced by __ast_bucket_scheme_register(), bucket_wizard_create(), handle_aor(), handle_auth(), handle_endpoint(), handle_identify(), handle_phoneprov(), handle_registrations(), sorcery_cache_create(), and sorcery_wizard_create().
int(* delete) (const struct ast_sorcery *sorcery, void *data, void *object) |
Callback for deleting an object.
Definition at line 319 of file sorcery.h.
Referenced by __ast_bucket_scheme_register(), bucket_wizard_delete(), delete_existing_cb(), handle_auth(), handle_identify(), handle_phoneprov(), and sorcery_wizard_delete().
void(* force_reload) (void *data, const struct ast_sorcery *sorcery, const char *type) |
Optional callback for forcing a reload to occur, even if wizard has determined no changes.
Definition at line 328 of file sorcery.h.
Referenced by sorcery_wizard_load().
int(* is_stale) (const struct ast_sorcery *sorcery, void *data, void *object) |
Callback for whether or not the wizard believes the object is stale.
Definition at line 325 of file sorcery.h.
Referenced by ast_sorcery_is_stale(), and bucket_wizard_is_stale().
void(* load) (void *data, const struct ast_sorcery *sorcery, const char *type) |
Optional callback for loading persistent objects.
Definition at line 287 of file sorcery.h.
Referenced by ApiDeclaration::load_file(), ResourceListing::load_file(), and sorcery_wizard_load().
struct ast_module* module |
Pointer to the Asterisk module this wizard is implemented by.
Definition at line 281 of file sorcery.h.
Referenced by __ast_bucket_scheme_register(), __ast_sorcery_wizard_register(), and sorcery_object_wizard_destructor().
const char* name |
Name of the wizard.
Definition at line 278 of file sorcery.h.
Referenced by __ast_sorcery_object_type_remove_wizard(), __ast_sorcery_wizard_register(), ast_sorcery_is_stale(), ast_sorcery_wizard_observer_add(), ast_sorcery_wizard_observer_remove(), ast_sorcery_wizard_unregister(), AST_TEST_DEFINE(), PathSegment::get_child(), Parameter::load(), Property::load(), SwaggerType::load(), sorcery_wizard_create(), sorcery_wizard_delete(), sorcery_wizard_load(), sorcery_wizard_update(), wizard_mapped_observer(), and wizard_observer().
void *(* open) (const char *data) |
void(* reload) (void *data, const struct ast_sorcery *sorcery, const char *type) |
Optional callback for reloading persistent objects.
Definition at line 290 of file sorcery.h.
Referenced by sorcery_wizard_load().
void *(* retrieve_fields) (const struct ast_sorcery *sorcery, void *data, const char *type, const struct ast_variable *fields) |
Optional callback for retrieving an object using fields.
Definition at line 310 of file sorcery.h.
Referenced by ast_sorcery_retrieve_by_fields().
void *(* retrieve_id) (const struct ast_sorcery *sorcery, void *data, const char *type, const char *id) |
Callback for retrieving an object using an id.
Definition at line 296 of file sorcery.h.
Referenced by __ast_bucket_scheme_register(), ast_sorcery_retrieve_by_id(), handle_auth(), handle_identify(), and handle_phoneprov().
void(* retrieve_multiple) (const struct ast_sorcery *sorcery, void *data, const char *type, struct ao2_container *objects, const struct ast_variable *fields) |
Optional callback for retrieving multiple objects using some optional field criteria.
Definition at line 313 of file sorcery.h.
Referenced by ast_sorcery_retrieve_by_fields(), handle_registrations(), and object_type_loaded_observer().
void(* retrieve_prefix) (const struct ast_sorcery *sorcery, void *data, const char *type, struct ao2_container *objects, const char *prefix, const size_t prefix_len) |
Optional callback for retrieving multiple objects by matching their id with a prefix.
Definition at line 302 of file sorcery.h.
Referenced by ast_sorcery_retrieve_by_prefix().
void(* retrieve_regex) (const struct ast_sorcery *sorcery, void *data, const char *type, struct ao2_container *objects, const char *regex) |
Callback for retrieving multiple objects using a regex on their id.
Definition at line 299 of file sorcery.h.
Referenced by ast_sorcery_retrieve_by_regex().
int(* update) (const struct ast_sorcery *sorcery, void *data, void *object) |
Callback for updating an object.
Definition at line 316 of file sorcery.h.
Referenced by handle_aor(), handle_auth(), handle_endpoint(), handle_identify(), handle_phoneprov(), handle_registrations(), and sorcery_wizard_update().