summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-02-06 20:32:04 -0500
committerDave Reisner <dreisner@archlinux.org>2012-12-13 22:34:34 -0500
commitbd8e738d361e49d86e50d774f85b385995dce0b8 (patch)
treecf48e89744c4c3c6dfcd5414c6cf95d76ac57ec9
parent76548902ce2397f007235681c02c3bb4ce358aec (diff)
downloadexpac-bd8e738d361e49d86e50d774f85b385995dce0b8.tar.xz
function naming adjustments
-rw-r--r--expac.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/expac.c b/expac.c
index 768683e..7d958f1 100644
--- a/expac.c
+++ b/expac.c
@@ -164,7 +164,7 @@ static alpm_handle_t *alpm_init(void) {
return NULL;
}
- db_local = alpm_option_get_localdb(handle);
+ db_local = alpm_get_localdb(handle);
fp = fopen("/etc/pacman.conf", "r");
if (!fp) {
@@ -192,7 +192,7 @@ static alpm_handle_t *alpm_init(void) {
section[strlen(section) - 1] = '\0';
if (strcmp(section, "options") != 0) {
- alpm_db_register_sync(handle, section,
+ alpm_register_syncdb(handle, section,
ALPM_SIG_DATABASE | ALPM_SIG_DATABASE_OPTIONAL);
}
}
@@ -254,7 +254,7 @@ static int parse_options(int argc, char *argv[], alpm_handle_t *handle) {
fprintf(stderr, "error: can only select one repo option (use -h for help)\n");
return 1;
}
- dblist = alpm_list_copy(alpm_option_get_syncdbs(handle));
+ dblist = alpm_list_copy(alpm_get_syncdbs(handle));
break;
case 'Q':
if (dblist) {
@@ -599,7 +599,7 @@ static alpm_list_t *resolve_pkg(alpm_list_t *targets) {
} else if (groups) {
for (t = targets; t; t = alpm_list_next(t)) {
for (r = dblist; r; r = alpm_list_next(r)) {
- alpm_group_t *grp = alpm_db_readgroup(r->data, t->data);
+ alpm_group_t *grp = alpm_db_get_group(r->data, t->data);
if (grp) {
ret = alpm_list_join(ret, alpm_list_copy(grp->packages));
}