static void set_mem_path(Object *o, const char *str, Error **errp)

{

    HostMemoryBackend *backend = MEMORY_BACKEND(o);

    HostMemoryBackendFile *fb = MEMORY_BACKEND_FILE(o);



    if (memory_region_size(&backend->mr)) {

        error_setg(errp, "cannot change property value");

        return;

    }

    if (fb->mem_path) {

        g_free(fb->mem_path);

    }

    fb->mem_path = g_strdup(str);

}

static void set_mem_path(Object *o, const char *str, Error **errp)

{

    HostMemoryBackend *backend = MEMORY_BACKEND(o);

    HostMemoryBackendFile *fb = MEMORY_BACKEND_FILE(o);



    if (memory_region_size(&backend->mr)) {

        error_setg(errp, "cannot change property value");

        return;

    }

    if (fb->mem_path) {

        g_free(fb->mem_path);

    }

    fb->mem_path = g_strdup(str);

}

static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)

{

    HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0);

    HostMemoryBackendFile *fb = MEMORY_BACKEND_FILE(VAR_0);



    if (memory_region_size(&backend->mr)) {

        error_setg(VAR_2, "cannot change property value");

        return;

    }

    if (fb->mem_path) {

        g_free(fb->mem_path);

    }

    fb->mem_path = g_strdup(VAR_1);

}

static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)
{ HostMemoryBackend *backend = MEMORY_BACKEND(VAR_0); HostMemoryBackendFile *fb = MEMORY_BACKEND_FILE(VAR_0); if (memory_region_size(&backend->mr)) { error_setg(VAR_2, "cannot change property value"); return; } if (fb->mem_path) { g_free(fb->mem_path); } fb->mem_path = g_strdup(VAR_1); }