aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-03-02 22:02:03 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-03-02 22:02:03 +0000
commita0190c87cf5bf795e0718351abeb10acbde88026 (patch)
treef442c3c8c02ba21b9be02952389718260f5aec44
parent7b438cda34f0e96ef927d86c2abdc1c47f691aaf (diff)
downloadperl-URPM-a0190c87cf5bf795e0718351abeb10acbde88026.tar
perl-URPM-a0190c87cf5bf795e0718351abeb10acbde88026.tar.gz
perl-URPM-a0190c87cf5bf795e0718351abeb10acbde88026.tar.bz2
perl-URPM-a0190c87cf5bf795e0718351abeb10acbde88026.tar.xz
perl-URPM-a0190c87cf5bf795e0718351abeb10acbde88026.zip
some more functions for apt-get..
-rw-r--r--rpm5compat.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/rpm5compat.h b/rpm5compat.h
index a32eff9..47253fc 100644
--- a/rpm5compat.h
+++ b/rpm5compat.h
@@ -12,6 +12,7 @@
#define RPM_INT8_TYPE RPM_UINT8_TYPE
#define RPM_INT16_TYPE RPM_UINT16_TYPE
#define RPM_INT32_TYPE RPM_UINT32_TYPE
+#define RPMTRANS_FLAG_NOMD5 RPMTRANS_FLAG_NOFDIGESTS
#include <fcntl.h>
#include <unistd.h>
@@ -161,5 +162,24 @@ int rpmMachineScore(int type, const char * name) {
_free(platform);
return score;
}
+
+#ifdef __cplusplus
+inline rpmds rpmdsSingle(rpmTag tagN, const char * N, const char * EVR, int_32 Flags){
+ return rpmdsSingle(tagN, N, EVR, (evrFlags)Flags);
+}
+
+typedef void * (*rpmCallbackFunction_old)
+ (const void * h,
+ const rpmCallbackType what,
+ const unsigned long long amount,
+ const unsigned long long total,
+ fnpyKey key,
+ rpmCallbackData data);
+
+inline int rpmtsSetNotifyCallback(rpmts ts, rpmCallbackFunction_old notify, rpmCallbackData notifyData){
+ return rpmtsSetNotifyCallback(ts, (rpmCallbackFunction)notify, notifyData);
+}
+#endif
+
#endif /* rpm4compat.h */