summaryrefslogtreecommitdiffstats
path: root/src/pacman/conf.h
diff options
context:
space:
mode:
authorLaszlo Papp <djszapi@archlinux.us>2009-10-13 05:14:56 +0200
committerDan McGee <dan@archlinux.org>2009-10-13 06:42:36 +0200
commitf9582c7df223e1eb4078e6db4e2d35dc0f2bf9be (patch)
tree6daef6ca6e1249ebcf5d3d9cea1f63da55dac4f2 /src/pacman/conf.h
parent2cabe336eb33e443819a1d9d46b0c5bcceaa7e87 (diff)
downloadpacman-f9582c7df223e1eb4078e6db4e2d35dc0f2bf9be.tar.gz
pacman-f9582c7df223e1eb4078e6db4e2d35dc0f2bf9be.tar.xz
Replace hardcoded option numbers with enumeration
Pacman's long option parsing used hardcoded numbers to identify them. This is not good practice, so replace them with enumeration constants. Signed-off-by: Laszlo Papp <djszapi@archlinux.us> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.h')
-rw-r--r--src/pacman/conf.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pacman/conf.h b/src/pacman/conf.h
index 3c588a7e..c97e5d78 100644
--- a/src/pacman/conf.h
+++ b/src/pacman/conf.h
@@ -88,6 +88,24 @@ enum {
PM_OP_DEPTEST
};
+/* Long Operations */
+enum {
+ OP_NOCONFIRM = 1000,
+ OP_CONFIG,
+ OP_IGNORE,
+ OP_DEBUG,
+ OP_NOPROGRESSBAR,
+ OP_NOSCRIPTLET,
+ OP_ASK,
+ OP_CACHEDIR,
+ OP_ASDEPS,
+ OP_LOGFILE,
+ OP_IGNOREGROUP,
+ OP_NEEDED,
+ OP_ASEXPLICIT,
+ OP_ARCH
+};
+
/* clean method */
enum {
PM_CLEAN_KEEPINST = 0, /* default */