Use proper callback types in psm notify wrapper
This commit is contained in:
parent
1e97f44988
commit
850b30171e
|
@ -7,6 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <rpm/rpmfi.h>
|
#include <rpm/rpmfi.h>
|
||||||
|
#include <rpm/rpmcallback.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -34,7 +35,7 @@ RPM_GNUC_INTERNAL
|
||||||
int rpmfiArchiveReadToFilePsm(rpmfi fi, FD_t fd, int nodigest, rpmpsm psm);
|
int rpmfiArchiveReadToFilePsm(rpmfi fi, FD_t fd, int nodigest, rpmpsm psm);
|
||||||
|
|
||||||
RPM_GNUC_INTERNAL
|
RPM_GNUC_INTERNAL
|
||||||
void rpmpsmNotify(rpmpsm psm, int what, rpm_loff_t amount);
|
void rpmpsmNotify(rpmpsm psm, rpmCallbackType what, rpm_loff_t amount);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -683,7 +683,7 @@ static rpmpsm rpmpsmNew(rpmts ts, rpmte te, pkgGoal goal)
|
||||||
return psm;
|
return psm;
|
||||||
}
|
}
|
||||||
|
|
||||||
void rpmpsmNotify(rpmpsm psm, int what, rpm_loff_t amount)
|
void rpmpsmNotify(rpmpsm psm, rpmCallbackType what, rpm_loff_t amount)
|
||||||
{
|
{
|
||||||
if (psm) {
|
if (psm) {
|
||||||
int changed = 0;
|
int changed = 0;
|
||||||
|
|
Loading…
Reference in New Issue