static void do_stop_capture(Monitor *mon, const QDict *qdict)

{

    int i;

    int n = qdict_get_int(qdict, "n");

    CaptureState *s;



    for (s = capture_head.lh_first, i = 0; s; s = s->entries.le_next, ++i) {

        if (i == n) {

            s->ops.destroy (s->opaque);

            LIST_REMOVE (s, entries);

            qemu_free (s);

            return;

        }

    }

}

static void do_stop_capture(Monitor *mon, const QDict *qdict)

{

    int i;

    int n = qdict_get_int(qdict, "n");

    CaptureState *s;



    for (s = capture_head.lh_first, i = 0; s; s = s->entries.le_next, ++i) {

        if (i == n) {

            s->ops.destroy (s->opaque);

            LIST_REMOVE (s, entries);

            qemu_free (s);

            return;

        }

    }

}

static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)

{

    int VAR_2;

    int VAR_3 = qdict_get_int(VAR_1, "VAR_3");

    CaptureState *s;



    for (s = capture_head.lh_first, VAR_2 = 0; s; s = s->entries.le_next, ++VAR_2) {

        if (VAR_2 == VAR_3) {

            s->ops.destroy (s->opaque);

            LIST_REMOVE (s, entries);

            qemu_free (s);

            return;

        }

    }

}

static void FUNC_0(Monitor *VAR_0, const QDict *VAR_1)
{ int VAR_2; int VAR_3 = qdict_get_int(VAR_1, "VAR_3"); CaptureState *s; for (s = capture_head.lh_first, VAR_2 = 0; s; s = s->entries.le_next, ++VAR_2) { if (VAR_2 == VAR_3) { s->ops.destroy (s->opaque); LIST_REMOVE (s, entries); qemu_free (s); return; } } }