summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.h
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-26 08:38:48 +0000
committerAaron Griffin <aaron@archlinux.org>2007-02-26 08:38:48 +0000
commit8fbdd03cce3c04a8208df30f435bc3e91a84ade3 (patch)
treec7ca34f17eff52f9e85d8f1b1bd3be2ecb292753 /lib/libalpm/package.h
parent52376150fa267f4f69af75cb9ff4a720430a5083 (diff)
downloadpacman-8fbdd03cce3c04a8208df30f435bc3e91a84ade3.tar.xz
* Enforce const char* params when using strings
* Unified some functions names "package" -> "pkg" for consistency * Removed the goofy 'faketarget' stuff used for dep testing * Renamed alpm_pkg_isin -> alpm_pkg_find * Renamed alpm_db_readpkg -> alpm_db_get_pkg
Diffstat (limited to 'lib/libalpm/package.h')
-rw-r--r--lib/libalpm/package.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libalpm/package.h b/lib/libalpm/package.h
index 820a476f..f849ba85 100644
--- a/lib/libalpm/package.h
+++ b/lib/libalpm/package.h
@@ -103,9 +103,9 @@ pmpkg_t *_alpm_pkg_dup(pmpkg_t *pkg);
void _alpm_pkg_free(void *data);
int _alpm_pkg_cmp(const void *p1, const void *p2);
int alpm_pkg_compare_versions(pmpkg_t *local_pkg, pmpkg_t *pkg);
-pmpkg_t *_alpm_pkg_load(char *pkgfile);
-pmpkg_t *_alpm_pkg_isin(char *needle, alpm_list_t *haystack);
-int _alpm_pkg_splitname(char *target, char *name, char *version, int witharch);
+pmpkg_t *_alpm_pkg_load(const char *pkgfile);
+pmpkg_t *_alpm_pkg_find(const char *needle, alpm_list_t *haystack);
+int _alpm_pkg_splitname(const char *target, char *name, char *version, int witharch);
int _alpm_pkg_istoonew(pmpkg_t *pkg);
void _alpm_pkg_update_requiredby(pmpkg_t *pkg);