summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-03 01:20:00 +0200
committerAurelien Foret <aurelien@archlinux.org>2005-04-03 01:20:00 +0200
commit80bae750cd8ec44aa879b22fb1fdcc41036cbff6 (patch)
tree7d56a90647b760d90f8bd5976c049dd47648c495 /lib/libalpm/alpm.h
parenta94c24c4067945e02f0afdd7f91cf74218b0142a (diff)
downloadpacman-80bae750cd8ec44aa879b22fb1fdcc41036cbff6.tar.gz
pacman-80bae750cd8ec44aa879b22fb1fdcc41036cbff6.tar.xz
- added 'lastupdate' field to pmdb_t
- added a new public function alpm_db_getinfo - added a public parameter PM_PKG_DB for PM_PKG struct
Diffstat (limited to 'lib/libalpm/alpm.h')
-rw-r--r--lib/libalpm/alpm.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h
index 30e07578..6962d380 100644
--- a/lib/libalpm/alpm.h
+++ b/lib/libalpm/alpm.h
@@ -93,11 +93,17 @@ int alpm_get_option(unsigned char parm, long *data);
* Databases
*/
+/* Info parameters */
+enum {
+ PM_DB_TREENAME = 1,
+ PM_DB_LASTUPDATE
+};
+
PM_DB *alpm_db_register(char *treename);
int alpm_db_unregister(PM_DB *db);
-/* Sync databases */
-int alpm_db_getlastupdate(PM_DB *db, char *ts);
+void *alpm_db_getinfo(PM_DB *db, unsigned char parm);
+
int alpm_db_update(PM_DB *db, char *archive, char *ts);
PM_PKG *alpm_db_readpkg(PM_DB *db, char *name);
@@ -136,7 +142,9 @@ enum {
PM_PKG_FILES,
PM_PKG_BACKUP,
/* Sciplet */
- PM_PKG_SCRIPLET
+ PM_PKG_SCRIPLET,
+ /* Misc */
+ PM_PKG_DB
};
/* reasons -- ie, why the package was installed */