/* Utility functions to help parse and assemble query strings.  */
struct QueryParams* query_params_new(int init_alloc)
/* Utility functions to help parse and assemble query strings.  */
struct QueryParams* query_params_new(int init_alloc)
{
    struct QueryParams *ps;
    if (init_alloc <= 0) init_alloc = 1;
    ps = g_new(QueryParams, 1);
    ps->n = 0;
    ps->alloc = init_alloc;
    ps->p = g_new(QueryParam, ps->alloc);
    return ps;
}