diff options
Diffstat (limited to 'src/gtask-helper.h')
-rw-r--r-- | src/gtask-helper.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/gtask-helper.h b/src/gtask-helper.h new file mode 100644 index 0000000..e38c1be --- /dev/null +++ b/src/gtask-helper.h @@ -0,0 +1,43 @@ +/* -*- Mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */ +/* + Copyright (C) 2016 Red Hat, Inc. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.0 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +*/ +#ifndef __G_TASK_HELPER_H__ +#define __G_TASK_HELPER_H__ + +#include <gio/gio.h> + +G_BEGIN_DECLS + +void g_task_helper_return_boolean(GTask *task, + gboolean boolean); +void g_task_helper_return_integer(GTask *task, + gint integer); +void g_task_helper_return_error(GTask *task, + GError *error); +void g_task_helper_return_new_error(GTask *task, + GQuark domain, + gint code, + const char *format, + ...); +void g_task_helper_return_pointer(GTask *task, + gpointer pointer, + GDestroyNotify destroy_notify_cb); + +G_END_DECLS + +#endif /* __G_TASK_HELPER_H__ */ |