JULEA
jdistributed-object.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_DISTRIBUTED_OBJECT_H
24 #define JULEA_OBJECT_DISTRIBUTED_OBJECT_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 
32 #include <julea.h>
33 
34 G_BEGIN_DECLS
35 
44 struct JDistributedObject;
45 
47 
64 JDistributedObject* j_distributed_object_new(gchar const* namespace, gchar const* name, JDistribution* distribution);
65 
80 
91 
92 G_DEFINE_AUTOPTR_CLEANUP_FUNC(JDistributedObject, j_distributed_object_unref)
93 
94 
106 
117 
131 void j_distributed_object_read(JDistributedObject* object, gpointer data, guint64 length, guint64 offset, guint64* bytes_read, JBatch* batch);
132 
149 void j_distributed_object_write(JDistributedObject* object, gconstpointer data, guint64 length, guint64 offset, guint64* bytes_written, JBatch* batch);
150 
162 void j_distributed_object_status(JDistributedObject* object, gint64* modification_time, guint64* size, JBatch* batch);
163 
174 
179 G_END_DECLS
180 
181 #endif
void j_distributed_object_read(JDistributedObject *object, gpointer data, guint64 length, guint64 offset, guint64 *bytes_read, JBatch *batch)
Definition: jdistributed-object.c:1453
JDistributedObject * j_distributed_object_new(gchar const *namespace, gchar const *name, JDistribution *distribution)
Definition: jdistributed-object.c:1366
void j_distributed_object_unref(JDistributedObject *object)
Definition: jdistributed-object.c:1398
void j_distributed_object_status(JDistributedObject *object, gint64 *modification_time, guint64 *size, JBatch *batch)
Definition: jdistributed-object.c:1545
JDistributedObject * j_distributed_object_ref(JDistributedObject *object)
Definition: jdistributed-object.c:1386
void j_distributed_object_write(JDistributedObject *object, gconstpointer data, guint64 length, guint64 offset, guint64 *bytes_written, JBatch *batch)
Definition: jdistributed-object.c:1499
void j_distributed_object_create(JDistributedObject *object, JBatch *batch)
Definition: jdistributed-object.c:1416
void j_distributed_object_delete(JDistributedObject *object, JBatch *batch)
Definition: jdistributed-object.c:1435
void j_distributed_object_sync(JDistributedObject *object, JBatch *batch)
Definition: jdistributed-object.c:1569
Definition: jbatch.c:49
Definition: jdistributed-object.c:131
JDistribution * distribution
Definition: jdistributed-object.c:142
gchar * name
Definition: jdistributed-object.c:135
Definition: jdistribution.c:48