JULEA
jcollection-internal.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_INTERNAL_H
24 #define JULEA_ITEM_COLLECTION_INTERNAL_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 <bson.h>
33 
34 #include <julea.h>
35 
36 #include <item/jcollection.h>
37 
38 G_BEGIN_DECLS
39 
59 G_GNUC_INTERNAL JCollection* j_collection_new(gchar const* name);
60 
73 G_GNUC_INTERNAL JCollection* j_collection_new_from_bson(bson_t const* b);
74 
87 G_GNUC_INTERNAL bson_t* j_collection_serialize(JCollection* collection);
88 
100 G_GNUC_INTERNAL void j_collection_deserialize(JCollection* collection, bson_t const* b);
101 
114 G_GNUC_INTERNAL bson_oid_t const* j_collection_get_id(JCollection* collection);
115 
120 G_END_DECLS
121 
122 #endif
G_GNUC_INTERNAL JCollection * j_collection_new(gchar const *name)
Definition: jcollection.c:174
Definition: jcollection.c:48