forked from ElektraInitiative/libelektra
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiterator.h
More file actions
27 lines (21 loc) · 735 Bytes
/
iterator.h
File metadata and controls
27 lines (21 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#ifndef ELEKTRA_PLUGIN_YAJL_ITERATOR_H
#define ELEKTRA_PLUGIN_YAJL_ITERATOR_H
#include "kdb.h"
typedef struct _keyNameReverseIterator
{
const char * rbegin; ///< begin of name (constant during iteration)
const char * rend; ///< end of name (constant during iteration)
const char * current; ///< current position
size_t size; ///< size of current substring (beginning from position)
} keyNameReverseIterator;
keyNameReverseIterator elektraKeyNameGetReverseIterator (const Key * k);
int elektraKeyNameReverseNext (keyNameReverseIterator * it);
Key * elektraNextNotBelow (KeySet * ks, elektraCursor pos);
#endif