init


Description:

public void init (Params @params)

Initialize a parameter iterator over params.

Modifying params after calling this function invalidates the returned iterator.

RestParamsIter iter;
const char *name;
RestParam *param;

rest_params_iter_init (&iter, params);
while (rest_params_iter_next (&iter, &name, &param)) {
/* do something with name and param */
}

Parameters:

this

an uninitialized ParamsIter

params

a valid Params