]> git.proxmox.com Git - qemu.git/blobdiff - balloon.h
ppc: Move exception helpers from helper.c to excp_helper.c
[qemu.git] / balloon.h
index 8c019eb78b4b52b75e8ae93180b86c556442c7f9..b803a00741fcbed730c7efcc5473c83885234c3d 100644 (file)
--- a/balloon.h
+++ b/balloon.h
 #ifndef _QEMU_BALLOON_H
 #define _QEMU_BALLOON_H
 
-typedef void (QEMUBalloonEvent)(void *opaque, ram_addr_t target,
-                                MonitorCompletion cb, void *cb_data);
+#include "monitor.h"
+#include "qapi-types.h"
 
-void qemu_add_balloon_handler(QEMUBalloonEvent *func, void *opaque);
+typedef void (QEMUBalloonEvent)(void *opaque, ram_addr_t target);
+typedef void (QEMUBalloonStatus)(void *opaque, BalloonInfo *info);
 
-int qemu_balloon(ram_addr_t target, MonitorCompletion cb, void *opaque);
+int qemu_add_balloon_handler(QEMUBalloonEvent *event_func,
+                            QEMUBalloonStatus *stat_func, void *opaque);
+void qemu_remove_balloon_handler(void *opaque);
 
-int qemu_balloon_status(MonitorCompletion cb, void *opaque);
+void qemu_balloon_changed(int64_t actual);
 
 #endif