JULEA
jconfiguration.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_CONFIGURATION_H
24 #define JULEA_CONFIGURATION_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 
32 #include <core/jbackend.h>
33 
34 G_BEGIN_DECLS
35 
42 struct JConfiguration;
43 
44 typedef struct JConfiguration JConfiguration;
45 
52 
62 
73 JConfiguration* j_configuration_new_for_data(GKeyFile* key_file);
74 
89 
99 void j_configuration_unref(JConfiguration* configuration);
100 
101 G_DEFINE_AUTOPTR_CLEANUP_FUNC(JConfiguration, j_configuration_unref)
102 
105 
108 
112 
115 
117 
118 G_END_DECLS
119 
124 #endif
JConfiguration * j_configuration(void)
Definition: jconfiguration.c:170
guint64 j_configuration_get_max_inject_size(JConfiguration *)
Definition: jconfiguration.c:515
gchar const * j_configuration_get_backend(JConfiguration *, JBackendType)
Definition: jconfiguration.c:461
gchar const * j_configuration_get_backend_path(JConfiguration *, JBackendType)
Definition: jconfiguration.c:483
gchar const * j_configuration_get_checksum(JConfiguration *)
Definition: jconfiguration.c:555
void j_configuration_unref(JConfiguration *configuration)
Definition: jconfiguration.c:386
guint16 j_configuration_get_port(JConfiguration *)
Definition: jconfiguration.c:545
gchar const * j_configuration_get_server(JConfiguration *, JBackendType, guint32)
Definition: jconfiguration.c:414
guint64 j_configuration_get_stripe_size(JConfiguration *)
Definition: jconfiguration.c:535
guint32 j_configuration_get_max_connections(JConfiguration *)
Definition: jconfiguration.c:525
guint64 j_configuration_get_max_operation_size(JConfiguration *)
Definition: jconfiguration.c:505
JConfiguration * j_configuration_ref(JConfiguration *configuration)
Definition: jconfiguration.c:374
guint32 j_configuration_get_server_count(JConfiguration *, JBackendType)
Definition: jconfiguration.c:439
JConfiguration * j_configuration_new(void)
Definition: jconfiguration.c:176
JConfiguration * j_configuration_new_for_data(GKeyFile *key_file)
Definition: jconfiguration.c:255
JBackendType
Definition: jbackend.h:108
Definition: jconfiguration.c:46