JULEA
Loading...
Searching...
No Matches
jbackground-operation.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_BACKGROUND_OPERATION_H
24#define JULEA_BACKGROUND_OPERATION_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
41
43
44typedef gpointer (*JBackgroundOperationFunc)(gpointer);
45
68
83
96void j_background_operation_unref(JBackgroundOperation* background_operation);
97
98G_DEFINE_AUTOPTR_CLEANUP_FUNC(JBackgroundOperation, j_background_operation_unref)
99
100
113gpointer j_background_operation_wait(JBackgroundOperation* background_operation);
114
119G_END_DECLS
120
121#endif
void j_background_operation_unref(JBackgroundOperation *background_operation)
Definition jbackground-operation.c:192
gpointer(* JBackgroundOperationFunc)(gpointer)
Definition jbackground-operation.h:44
JBackgroundOperation * j_background_operation_new(JBackgroundOperationFunc func, gpointer data)
Definition jbackground-operation.c:156
gpointer j_background_operation_wait(JBackgroundOperation *background_operation)
Definition jbackground-operation.c:208
JBackgroundOperation * j_background_operation_ref(JBackgroundOperation *background_operation)
Definition jbackground-operation.c:180
Definition jbackground-operation.c:45
gpointer data
Definition jbackground-operation.c:54
JBackgroundOperationFunc func
Definition jbackground-operation.c:49