summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-06 20:29:17 +0200
committerAurelien Foret <aurelien@archlinux.org>2005-04-06 20:29:17 +0200
commit3b49720e397b1c8042cf262547f6e8a0590dc078 (patch)
tree1138eda94df1c169c95a2b3d3dbe2b706ba6fe3c /lib/libalpm/alpm.c
parent04e054f3cbc9ddda9d99e4891055ae2743b3b8ff (diff)
downloadpacman-3b49720e397b1c8042cf262547f6e8a0590dc078.tar.gz
pacman-3b49720e397b1c8042cf262547f6e8a0590dc078.tar.xz
updated structure names (PM_SYNCPKG), and added transaction queues (install & remove)
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index 16e103ea..e2646975 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -443,7 +443,7 @@ void *alpm_grp_getinfo(PM_GRP *grp, unsigned char parm)
* Sync operations
*/
-void *alpm_sync_getinfo(PM_SYNC *sync, unsigned char parm)
+void *alpm_sync_getinfo(PM_SYNCPKG *sync, unsigned char parm)
{
void *data;
@@ -454,6 +454,7 @@ void *alpm_sync_getinfo(PM_SYNC *sync, unsigned char parm)
case PM_SYNC_TYPE: data = (void *)(int)sync->type; break;
case PM_SYNC_LOCALPKG: data = sync->lpkg; break;
case PM_SYNC_SYNCPKG: data = sync->spkg; break;
+ case PM_SYNC_REPLACES: data = sync->replaces; break;
default:
data = NULL;
break;
@@ -488,7 +489,8 @@ void *alpm_trans_getinfo(unsigned char parm)
case PM_TRANS_TYPE: data = (void *)(int)trans->type; break;
case PM_TRANS_FLAGS: data = (void *)(int)trans->flags; break;
case PM_TRANS_TARGETS: data = trans->targets; break;
- case PM_TRANS_PACKAGES: data = trans->packages; break;
+ case PM_TRANS_INSTALLQ: data = trans->install_q; break;
+ case PM_TRANS_REMOVEQ: data = trans->remove_q; break;
default:
data = NULL;
break;