Replace bunch of rpm version checks with feature checks to get this to
[apt.git] / apt-pkg / rpm / aptcallback.h
1 #ifndef _APTRPM_RPMCALLBACK_H
2 #define _APTRPM_RPMCALLBACK_H
3
4 #include <apt-pkg/progress.h>
5 #include <rpm/rpmcli.h>
6
7 #if HAVE_RPM_RPMCB_H
8 typedef unsigned long long rpmCallbackSize_t;
9 #else
10 typedef unsigned long rpmCallbackSize_t;
11 #endif
12
13 #if RPM_VERSION < 0x040000
14 void * rpmCallback(const Header h,
15 #else
16 void * rpmCallback(const void * arg, 
17 #endif
18                         const rpmCallbackType what,
19                         const rpmCallbackSize_t amount,
20                         const rpmCallbackSize_t total,
21                         const void * pkgKey, void * data);
22
23 #endif /* _APTRPM_RPMCALLBACK_H */
24 // vim:sts=3:sw=3
25