query_params_append (struct QueryParams *ps,

               const char *name, const char *value)

{

    if (ps->n >= ps->alloc) {

        ps->p = g_renew(QueryParam, ps->p, ps->alloc * 2);

        ps->alloc *= 2;

    }



    ps->p[ps->n].name = g_strdup(name);

    ps->p[ps->n].value = value ? g_strdup(value) : NULL;

    ps->p[ps->n].ignore = 0;

    ps->n++;



    return 0;

}

query_params_append (struct QueryParams *ps,

               const char *name, const char *value)

{

    if (ps->n >= ps->alloc) {

        ps->p = g_renew(QueryParam, ps->p, ps->alloc * 2);

        ps->alloc *= 2;

    }



    ps->p[ps->n].name = g_strdup(name);

    ps->p[ps->n].value = value ? g_strdup(value) : NULL;

    ps->p[ps->n].ignore = 0;

    ps->n++;



    return 0;

}

FUNC_0 (struct QueryParams *VAR_0,

               const char *VAR_1, const char *VAR_2)

{

    if (VAR_0->n >= VAR_0->alloc) {

        VAR_0->p = g_renew(QueryParam, VAR_0->p, VAR_0->alloc * 2);

        VAR_0->alloc *= 2;

    }



    VAR_0->p[VAR_0->n].VAR_1 = g_strdup(VAR_1);

    VAR_0->p[VAR_0->n].VAR_2 = VAR_2 ? g_strdup(VAR_2) : NULL;

    VAR_0->p[VAR_0->n].ignore = 0;

    VAR_0->n++;



    return 0;

}

FUNC_0 (struct QueryParams *VAR_0,
const char *VAR_1, const char *VAR_2)
{ if (VAR_0->n >= VAR_0->alloc) { VAR_0->p = g_renew(QueryParam, VAR_0->p, VAR_0->alloc * 2); VAR_0->alloc *= 2; } VAR_0->p[VAR_0->n].VAR_1 = g_strdup(VAR_1); VAR_0->p[VAR_0->n].VAR_2 = VAR_2 ? g_strdup(VAR_2) : NULL; VAR_0->p[VAR_0->n].ignore = 0; VAR_0->n++; return 0; }