JULEA
Loading...
Searching...
No Matches
jdir-iterator.h
Go to the documentation of this file.
1/*
2 * JULEA - Flexible storage framework
3 * Copyright (C) 2021-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_DIR_ITERATOR_H
24#define JULEA_DIR_ITERATOR_H
25
26#if !defined(JULEA_H) && !defined(JULEA_COMPILATION)
27#error "Only <julea.h> can be included directly."
28#endif
29
30#include <glib.h>
31
32G_BEGIN_DECLS
33
40struct JDirIterator;
41
43
44G_END_DECLS
45
46#include <core/jlist.h>
47
48G_BEGIN_DECLS
49
60JDirIterator* j_dir_iterator_new(gchar const* path);
61
70void j_dir_iterator_free(JDirIterator* iterator);
71
72G_DEFINE_AUTOPTR_CLEANUP_FUNC(JDirIterator, j_dir_iterator_free)
73
74
84gboolean j_dir_iterator_next(JDirIterator* iterator);
85
96gchar const* j_dir_iterator_get(JDirIterator* iterator);
97
102G_END_DECLS
103
104#endif
G_END_DECLS G_BEGIN_DECLS JDirIterator * j_dir_iterator_new(gchar const *path)
Definition jdir-iterator.c:69
void j_dir_iterator_free(JDirIterator *iterator)
Definition jdir-iterator.c:103
gchar const * j_dir_iterator_get(JDirIterator *iterator)
Definition jdir-iterator.c:207
gboolean j_dir_iterator_next(JDirIterator *iterator)
Definition jdir-iterator.c:134
Definition jdir-iterator.c:41