-
- gras_dynar_foreach(elm->sub, i, child) {
- if (child)
- _cursor_push_keys(cursor, child);
- }
-
- CDEBUG1(dict_cursor, "Count = %d", count);
-}
-
-/**
- * gras_dict_cursor_rewind:
- * @cursor: the cursor
- * @Returns: gras_error_t
- *
- * back to the first element
- */
-void
-gras_dict_cursor_rewind(gras_dict_cursor_t cursor) {
- gras_error_t errcode = no_error;
-
- CDEBUG0(dict_cursor, "gras_dict_cursor_rewind");
- gras_assert(cursor);
-
- gras_dynar_reset(cursor->keys);
- gras_dynar_reset(cursor->key_lens);
-
- if (!cursor->head)
- return ;
-
- _cursor_push_keys(cursor, cursor->head);
-
- gras_dynar_cursor_first(cursor->keys, &cursor->pos );
- gras_dynar_cursor_first(cursor->key_lens, &cursor->pos_len);
-