pazpar2
1.14.1
|
Go to the source code of this file.
Functions | |
struct database * | create_database_for_service (const char *id, struct conf_service *service) |
int | session_grep_databases (struct session *se, const char *filter, void(*fun)(struct session *se, struct session_database *db)) |
int | predef_grep_databases (void *context, struct conf_service *service, void(*fun)(void *context, struct database *db)) |
int | match_zurl (const char *zurl, const char *pattern) |
struct database * | new_database (const char *id, NMEM nmem) |
struct database * | new_database_inherit_settings (const char *id, NMEM nmem, struct settings_array *settings) |
struct database* create_database_for_service | ( | const char * | id, |
struct conf_service * | service | ||
) |
Definition at line 91 of file database.c.
References conf_service::databases, conf_service::id, database::id, new_database_inherit_settings(), database::next, conf_service::nmem, and conf_service::settings.
Referenced by prepare_target_dictionary().
int match_zurl | ( | const char * | zurl, |
const char * | pattern | ||
) |
Definition at line 110 of file database.c.
Referenced by match_criterion(), and update_database_fun().
struct database* new_database | ( | const char * | id, |
NMEM | nmem | ||
) |
struct database* new_database_inherit_settings | ( | const char * | id, |
NMEM | nmem, | ||
struct settings_array * | settings | ||
) |
Definition at line 57 of file database.c.
References database::id, setting::name, setting::next, database::next, database::num_settings, settings_array::num_settings, setting::precedence, PZ_ID, PZ_MAX_EOF, database::settings, settings_array::settings, setting::target, and setting::value.
Referenced by create_database_for_service(), and load_session_database().
int predef_grep_databases | ( | void * | context, |
struct conf_service * | service, | ||
void(*)(void *context, struct database *db) | fun | ||
) |
Definition at line 291 of file database.c.
References database_match_criteria(), conf_service::databases, database::next, database::num_settings, and database::settings.
Referenced by session_init_databases(), and update_databases().
int session_grep_databases | ( | struct session * | se, |
const char * | filter, | ||
void(*)(struct session *se, struct session_database *db) | fun | ||
) |
Definition at line 266 of file database.c.
References create_database_criterion(), database_match_criteria(), session::databases, session_database::next, session_database::num_settings, PZ_ALLOW, PZ_NAME, session::service, session_database::settings, and setting::value.
Referenced by select_targets().