static void rng_random_set_filename(Object *obj, const char *filename,

                                 Error **errp)

{

    RngBackend *b = RNG_BACKEND(obj);

    RndRandom *s = RNG_RANDOM(obj);



    if (b->opened) {

        error_set(errp, QERR_PERMISSION_DENIED);

        return;

    }



    if (s->filename) {

        g_free(s->filename);

    }



    s->filename = g_strdup(filename);

}

static void rng_random_set_filename(Object *obj, const char *filename,

                                 Error **errp)

{

    RngBackend *b = RNG_BACKEND(obj);

    RndRandom *s = RNG_RANDOM(obj);



    if (b->opened) {

        error_set(errp, QERR_PERMISSION_DENIED);

        return;

    }



    if (s->filename) {

        g_free(s->filename);

    }



    s->filename = g_strdup(filename);

}

static void FUNC_0(Object *VAR_0, const char *VAR_1,

                                 Error **VAR_2)

{

    RngBackend *b = RNG_BACKEND(VAR_0);

    RndRandom *s = RNG_RANDOM(VAR_0);



    if (b->opened) {

        error_set(VAR_2, QERR_PERMISSION_DENIED);

        return;

    }



    if (s->VAR_1) {

        g_free(s->VAR_1);

    }



    s->VAR_1 = g_strdup(VAR_1);

}

static void FUNC_0(Object *VAR_0, const char *VAR_1,
Error **VAR_2)
{ RngBackend *b = RNG_BACKEND(VAR_0); RndRandom *s = RNG_RANDOM(VAR_0); if (b->opened) { error_set(VAR_2, QERR_PERMISSION_DENIED); return; } if (s->VAR_1) { g_free(s->VAR_1); } s->VAR_1 = g_strdup(VAR_1); }