int select_watchdog_action(const char *p)

{

    int action;

    char *qapi_value;



    qapi_value = g_ascii_strdown(p, -1);

    action = qapi_enum_parse(&WatchdogAction_lookup, qapi_value, -1, NULL);

    g_free(qapi_value);

    if (action < 0)

        return -1;

    watchdog_action = action;

    return 0;

}

int select_watchdog_action(const char *p)

{

    int action;

    char *qapi_value;



    qapi_value = g_ascii_strdown(p, -1);

    action = qapi_enum_parse(&WatchdogAction_lookup, qapi_value, -1, NULL);

    g_free(qapi_value);

    if (action < 0)

        return -1;

    watchdog_action = action;

    return 0;

}

int FUNC_0(const char *VAR_0)

{

    int VAR_1;

    char *VAR_2;



    VAR_2 = g_ascii_strdown(VAR_0, -1);

    VAR_1 = qapi_enum_parse(&WatchdogAction_lookup, VAR_2, -1, NULL);

    g_free(VAR_2);

    if (VAR_1 < 0)

        return -1;

    watchdog_action = VAR_1;

    return 0;

}

int FUNC_0(const char *VAR_0)
{ int VAR_1; char *VAR_2; VAR_2 = g_ascii_strdown(VAR_0, -1); VAR_1 = qapi_enum_parse(&WatchdogAction_lookup, VAR_2, -1, NULL); g_free(VAR_2); if (VAR_1 < 0)
return -1; watchdog_action = VAR_1; return 0; }