void qga_vss_fsfreeze(int *nr_volume, Error **errp, bool freeze)

{

    const char *func_name = freeze ? "requester_freeze" : "requester_thaw";

    QGAVSSRequesterFunc func;

    ErrorSet errset = {

        .error_setg_win32 = error_setg_win32,

        .errp = errp,

    };



    g_assert(errp);             /* requester.cpp requires it */

    func = (QGAVSSRequesterFunc)GetProcAddress(provider_lib, func_name);

    if (!func) {

        error_setg_win32(errp, GetLastError(), "failed to load %s from %s",

                         func_name, QGA_VSS_DLL);

        return;

    }



    func(nr_volume, &errset);

}

void qga_vss_fsfreeze(int *nr_volume, Error **errp, bool freeze)

{

    const char *func_name = freeze ? "requester_freeze" : "requester_thaw";

    QGAVSSRequesterFunc func;

    ErrorSet errset = {

        .error_setg_win32 = error_setg_win32,

        .errp = errp,

    };



    g_assert(errp);             

    func = (QGAVSSRequesterFunc)GetProcAddress(provider_lib, func_name);

    if (!func) {

        error_setg_win32(errp, GetLastError(), "failed to load %s from %s",

                         func_name, QGA_VSS_DLL);

        return;

    }



    func(nr_volume, &errset);

}

        .error_setg_win32 = error_setg_win32,
void FUNC_0(int *VAR_0, Error **VAR_1, bool VAR_2)

{

    const char *VAR_3 = VAR_2 ? "requester_freeze" : "requester_thaw";

    QGAVSSRequesterFunc func;

    ErrorSet errset = {

        .error_setg_win32 = error_setg_win32,

        .VAR_1 = VAR_1,

    };



    g_assert(VAR_1);             

    func = (QGAVSSRequesterFunc)GetProcAddress(provider_lib, VAR_3);

    if (!func) {

        error_setg_win32(VAR_1, GetLastError(), "failed to load %s from %s",

                         VAR_3, QGA_VSS_DLL);

        return;

    }



    func(VAR_0, &errset);

}

void FUNC_0(int *VAR_0, Error **VAR_1, bool VAR_2)
{ const char *VAR_3 = VAR_2 ? "requester_freeze" : "requester_thaw"; QGAVSSRequesterFunc func; ErrorSet errset = { .error_setg_win32 = error_setg_win32,
.VAR_1 = VAR_1,
}; g_assert(VAR_1); func = (QGAVSSRequesterFunc)GetProcAddress(provider_lib, VAR_3); if (!func) { error_setg_win32(VAR_1, GetLastError(), "failed to load %s from %s",
VAR_3, QGA_VSS_DLL); return; } func(VAR_0, &errset); }