int qemu_add_balloon_handler(QEMUBalloonEvent *event_func,

                             QEMUBalloonStatus *stat_func, void *opaque)

{

    if (balloon_event_fn || balloon_stat_fn || balloon_opaque) {

        /* We're already registered one balloon handler.  How many can

         * a guest really have?

         */

        error_report("Another balloon device already registered");

        return -1;

    }

    balloon_event_fn = event_func;

    balloon_stat_fn = stat_func;

    balloon_opaque = opaque;

    return 0;

}

int qemu_add_balloon_handler(QEMUBalloonEvent *event_func,

                             QEMUBalloonStatus *stat_func, void *opaque)

{

    if (balloon_event_fn || balloon_stat_fn || balloon_opaque) {

        





        error_report("Another balloon device already registered");

        return -1;

    }

    balloon_event_fn = event_func;

    balloon_stat_fn = stat_func;

    balloon_opaque = opaque;

    return 0;

}

        error_report("Another balloon device already registered");
int FUNC_0(QEMUBalloonEvent *VAR_0,

                             QEMUBalloonStatus *VAR_1, void *VAR_2)

{

    if (balloon_event_fn || balloon_stat_fn || balloon_opaque) {

        





        error_report("Another balloon device already registered");

        return -1;

    }

    balloon_event_fn = VAR_0;

    balloon_stat_fn = VAR_1;

    balloon_opaque = VAR_2;

    return 0;

}

int FUNC_0(QEMUBalloonEvent *VAR_0,
QEMUBalloonStatus *VAR_1, void *VAR_2)
{ if (balloon_event_fn || balloon_stat_fn || balloon_opaque) { error_report("Another balloon device already registered"); return -1; } balloon_event_fn = VAR_0; balloon_stat_fn = VAR_1; balloon_opaque = VAR_2; return 0; }