#include "config.h"#include <unistd.h>#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <stdint.h>#include <sys/stat.h>#include <dirent.h>#include <regex.h>#include <time.h>#include "db.h"#include "alpm_list.h"#include "log.h"#include "util.h"#include "error.h"#include "server.h"#include "handle.h"#include "cache.h"#include "alpm.h"

Go to the source code of this file.
| int _alpm_db_cmp | ( | const void * | db1, | |
| const void * | db2 | |||
| ) |
Definition at line 473 of file db.c.
References ALPM_LOG_FUNC.
Referenced by alpm_db_unregister().

| void _alpm_db_free | ( | pmdb_t * | db | ) |
Definition at line 454 of file db.c.
References _alpm_db_free_pkgcache(), _alpm_server_free(), alpm_list_free(), alpm_list_next(), ALPM_LOG_FUNC, __alpm_list_t::data, FREE, __pmdb_t::path, and __pmdb_t::servers.
Referenced by _alpm_db_register_local(), and _alpm_db_register_sync().


| pmdb_t* _alpm_db_new | ( | const char * | dbpath, | |
| const char * | treename | |||
| ) |
Definition at line 437 of file db.c.
References ALPM_LOG_FUNC, CALLOC, __pmdb_t::path, PM_ERR_MEMORY, RET_ERR, and __pmdb_t::treename.
Referenced by _alpm_db_register_local(), and _alpm_db_register_sync().

| pmdb_t* _alpm_db_register_local | ( | void | ) |
Definition at line 539 of file db.c.
References _, _alpm_db_free(), _alpm_db_new(), _alpm_db_open(), _alpm_log(), _alpm_makepath(), ALPM_LOG_FUNC, alpm_option_get_dbpath(), _pmhandle_t::db_local, handle, PM_ERR_DB_CREATE, PM_ERR_DB_NOT_NULL, PM_ERR_DB_OPEN, PM_ERR_SYSTEM, PM_LOG_DEBUG, PM_LOG_ERROR, PM_LOG_WARNING, and RET_ERR.
Referenced by alpm_db_register_local().


| pmdb_t* _alpm_db_register_sync | ( | const char * | treename | ) |
Definition at line 586 of file db.c.
References _, _alpm_db_free(), _alpm_db_new(), _alpm_db_open(), _alpm_log(), _alpm_makepath(), alpm_list_add(), ALPM_LOG_FUNC, alpm_option_get_dbpath(), __alpm_list_t::data, _pmhandle_t::dbs_sync, handle, __alpm_list_t::next, PM_ERR_DB_CREATE, PM_ERR_DB_OPEN, PM_ERR_SYSTEM, PM_LOG_DEBUG, PM_LOG_ERROR, RET_ERR, and __pmdb_t::treename.
Referenced by alpm_db_register_sync().


| alpm_list_t* _alpm_db_search | ( | pmdb_t * | db, | |
| const alpm_list_t * | needles | |||
| ) |
Definition at line 479 of file db.c.
References _alpm_db_get_pkgcache(), _alpm_log(), alpm_list_add(), ALPM_LOG_FUNC, alpm_pkg_get_desc(), alpm_pkg_get_name(), alpm_pkg_get_provides(), __alpm_list_t::data, __alpm_list_t::next, PM_ERR_INVALID_REGEX, PM_LOG_DEBUG, and RET_ERR.
Referenced by alpm_db_search().


| alpm_list_t* _alpm_db_whatprovides | ( | pmdb_t * | db, | |
| const char * | package | |||
| ) |
Definition at line 663 of file db.c.
References _alpm_db_get_pkgcache(), _alpm_prov_cmp(), alpm_list_add(), alpm_list_find(), ALPM_LOG_FUNC, alpm_pkg_get_provides(), __alpm_list_t::data, and __alpm_list_t::next.
Referenced by alpm_db_whatprovides().


| int _alpm_prov_cmp | ( | const void * | provision, | |
| const void * | needle | |||
| ) |
Definition at line 646 of file db.c.
Referenced by _alpm_db_whatprovides(), and _alpm_sync_prepare().

1.5.4