1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 16:28:50 -05:00
pacman/src/util
Dan McGee b488f229d2 ALPM API adjustments for sanity and consistency
This makes several small adjustments to our exposed method names, and in
one case, parameters. The justification here is to make methods less odd
in their naming convention. If a method takes an alpm_db_t argument, the
method should be named 'alpm_db_*', but perhaps more importantly, if it
doesn't take a database as the first parameter, it should not.

Summary of changes:

    alpm_db_register_sync   -> alpm_register_syncdb
    alpm_db_unregister_all  -> alpm_unregister_all_syncdbs
    alpm_option_get_localdb -> aplpm_get_localdb
    alpm_option_get_syncdbs -> aplpm_get_syncdbs
    alpm_db_readgroup       -> alpm_db_get_group
    alpm_db_set_pkgreason   -> alpm_pkg_set_reason

All methods keep the same argument list except for alpm_pkg_set_reason;
there we drop the 'handle' argument as it can be retrieved from the
passed in package object.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-06 05:49:52 -06:00
..
.gitignore pacsort: add new utility 2011-08-08 16:49:43 -05:00
cleanupdelta.c ALPM API adjustments for sanity and consistency 2012-02-06 05:49:52 -06:00
Makefile.am include config.h via Makefiles 2011-12-21 18:13:17 -06:00
pacsort.c include config.h via Makefiles 2011-12-21 18:13:17 -06:00
pactree.c ALPM API adjustments for sanity and consistency 2012-02-06 05:49:52 -06:00
testdb.c ALPM API adjustments for sanity and consistency 2012-02-06 05:49:52 -06:00
testpkg.c create a typedef for enum _alpm_errno_t 2011-11-14 08:54:03 -06:00
vercmp.c Remove most usages of strncmp() 2011-07-05 21:29:02 -05:00