JULEA
Loading...
Searching...
No Matches
jobject-iterator.h
Go to the documentation of this file.
1/*
2 * JULEA - Flexible storage framework
3 * Copyright (C) 2017-2024 Michael Kuhn
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
23#ifndef JULEA_OBJECT_OBJECT_ITERATOR_H
24#define JULEA_OBJECT_OBJECT_ITERATOR_H
25
26#if !defined(JULEA_OBJECT_H) && !defined(JULEA_OBJECT_COMPILATION)
27#error "Only <julea-object.h> can be included directly."
28#endif
29
30#include <glib.h>
31
32G_BEGIN_DECLS
33
42struct JObjectIterator;
43
45
54JObjectIterator* j_object_iterator_new(gchar const* namespace, gchar const* prefix);
55
65JObjectIterator* j_object_iterator_new_for_index(guint32 index, gchar const* namespace, gchar const* prefix);
66
73
74G_DEFINE_AUTOPTR_CLEANUP_FUNC(JObjectIterator, j_object_iterator_free)
75
76
86gboolean j_object_iterator_next(JObjectIterator* iterator);
87
98gchar const* j_object_iterator_get(JObjectIterator* iterator);
99
104G_END_DECLS
105
106#endif
JObjectIterator * j_object_iterator_new_for_index(guint32 index, gchar const *namespace, gchar const *prefix)
Definition jobject-iterator.c:147
gchar const * j_object_iterator_get(JObjectIterator *iterator)
Definition jobject-iterator.c:241
gboolean j_object_iterator_next(JObjectIterator *iterator)
Definition jobject-iterator.c:209
JObjectIterator * j_object_iterator_new(gchar const *namespace, gchar const *prefix)
Definition jobject-iterator.c:103
void j_object_iterator_free(JObjectIterator *iterator)
Definition jobject-iterator.c:189
Definition jobject-iterator.c:40