int qemu_add_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque)

{

    WaitObjects *w = &wait_objects;



    if (w->num >= MAXIMUM_WAIT_OBJECTS)

        return -1;

    w->events[w->num] = handle;

    w->func[w->num] = func;

    w->opaque[w->num] = opaque;

    w->num++;

    return 0;

}

int qemu_add_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque)

{

    WaitObjects *w = &wait_objects;



    if (w->num >= MAXIMUM_WAIT_OBJECTS)

        return -1;

    w->events[w->num] = handle;

    w->func[w->num] = func;

    w->opaque[w->num] = opaque;

    w->num++;

    return 0;

}

int FUNC_0(HANDLE VAR_0, WaitObjectFunc *VAR_1, void *VAR_2)

{

    WaitObjects *w = &wait_objects;



    if (w->num >= MAXIMUM_WAIT_OBJECTS)

        return -1;

    w->events[w->num] = VAR_0;

    w->VAR_1[w->num] = VAR_1;

    w->VAR_2[w->num] = VAR_2;

    w->num++;

    return 0;

}

int FUNC_0(HANDLE VAR_0, WaitObjectFunc *VAR_1, void *VAR_2)
{ WaitObjects *w = &wait_objects; if (w->num >= MAXIMUM_WAIT_OBJECTS)
return -1; w->events[w->num] = VAR_0; w->VAR_1[w->num] = VAR_1; w->VAR_2[w->num] = VAR_2; w->num++; return 0; }