JULEA
Loading...
Searching...
No Matches
jcollection.h
Go to the documentation of this file.
1/*
2 * JULEA - Flexible storage framework
3 * Copyright (C) 2010-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_ITEM_COLLECTION_H
24#define JULEA_ITEM_COLLECTION_H
25
26#if !defined(JULEA_ITEM_H) && !defined(JULEA_ITEM_COMPILATION)
27#error "Only <julea-item.h> can be included directly."
28#endif
29
30#include <glib.h>
31
32#include <julea.h>
33
34G_BEGIN_DECLS
35
36struct JCollection;
37
38typedef struct JCollection JCollection;
39
40G_END_DECLS
41
42#include <item/jitem.h>
43
44G_BEGIN_DECLS
45
68
78void j_collection_unref(JCollection* collection);
79
80G_DEFINE_AUTOPTR_CLEANUP_FUNC(JCollection, j_collection_unref)
81
82
92gchar const* j_collection_get_name(JCollection* collection);
93
103JCollection* j_collection_create(gchar const* name, JBatch* batch);
104
115void j_collection_get(JCollection** collection, gchar const* name, JBatch* batch);
116
126void j_collection_delete(JCollection* collection, JBatch* batch);
127
132G_END_DECLS
133
134#endif
JCollection * j_collection_create(gchar const *name, JBatch *batch)
Definition jcollection.c:110
JCollection * j_collection_ref(JCollection *collection)
Definition jcollection.c:70
gchar const * j_collection_get_name(JCollection *collection)
Definition jcollection.c:100
void j_collection_unref(JCollection *collection)
Definition jcollection.c:82
void j_collection_get(JCollection **collection, gchar const *name, JBatch *batch)
Definition jcollection.c:151
void j_collection_delete(JCollection *collection, JBatch *batch)
Definition jcollection.c:163
Definition jbatch.c:49
Definition jcollection.c:48
gchar * name
Definition jcollection.c:57