Class (GI Struct)

Rest-1.0RestParamsIter

Index

Constructors

Properties

Methods

Constructors

Properties

$gtype: GType<ParamsIter>

Methods

  • 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)) {
    /&ast; do something with name and param &ast;/
    }

    Parameters

    Returns void

  • Advances iter and retrieves the name and/or parameter that are now pointed at as a result of this advancement. If false is returned, name and param are set to null and the iterator becomes invalid.

    Returns [boolean, string, Param]

    false if the end of the Rest.Params has been reached, true otherwise.