static void multiwrite_cb(void *opaque, int ret)

{

    MultiwriteCB *mcb = opaque;



    trace_multiwrite_cb(mcb, ret);



    if (ret < 0 && !mcb->error) {

        mcb->error = ret;

    }



    mcb->num_requests--;

    if (mcb->num_requests == 0) {

        multiwrite_user_cb(mcb);

        g_free(mcb);

    }

}

static void multiwrite_cb(void *opaque, int ret)

{

    MultiwriteCB *mcb = opaque;



    trace_multiwrite_cb(mcb, ret);



    if (ret < 0 && !mcb->error) {

        mcb->error = ret;

    }



    mcb->num_requests--;

    if (mcb->num_requests == 0) {

        multiwrite_user_cb(mcb);

        g_free(mcb);

    }

}

static void FUNC_0(void *VAR_0, int VAR_1)

{

    MultiwriteCB *mcb = VAR_0;



    trace_multiwrite_cb(mcb, VAR_1);



    if (VAR_1 < 0 && !mcb->error) {

        mcb->error = VAR_1;

    }



    mcb->num_requests--;

    if (mcb->num_requests == 0) {

        multiwrite_user_cb(mcb);

        g_free(mcb);

    }

}

static void FUNC_0(void *VAR_0, int VAR_1)
{ MultiwriteCB *mcb = VAR_0; trace_multiwrite_cb(mcb, VAR_1); if (VAR_1 < 0 && !mcb->error) { mcb->error = VAR_1; } mcb->num_requests--; if (mcb->num_requests == 0) { multiwrite_user_cb(mcb); g_free(mcb); } }