summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/hook.h
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2018-06-09 19:45:59 +0200
committerAllan McRae <allan@archlinux.org>2018-08-10 04:37:19 +0200
commit7f1f1355bbb3941a30798a295721e7f35077e116 (patch)
tree6fd83d694d78aecc656d6e061dac1c671a963865 /lib/libalpm/hook.h
parent0937d322ba67400cb2c5fd1a548ef6e843801ec6 (diff)
downloadpacman-7f1f1355bbb3941a30798a295721e7f35077e116.tar.gz
pacman-7f1f1355bbb3941a30798a295721e7f35077e116.tar.xz
libalpm: ignore .hook suffix when sorting hooks
It is desirable to have 'a-post.hook' ordered after 'a.hook'. For this, it is needed to ignore the suffix when sorting. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/hook.h')
-rw-r--r--lib/libalpm/hook.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/hook.h b/lib/libalpm/hook.h
index 364d22d7..30d565df 100644
--- a/lib/libalpm/hook.h
+++ b/lib/libalpm/hook.h
@@ -22,6 +22,8 @@
#include "alpm.h"
+#define ALPM_HOOK_SUFFIX ".hook"
+
int _alpm_hook_run(alpm_handle_t *handle, alpm_hook_when_t when);
#endif /* ALPM_HOOK_H */