Blame gio/gioscheduler.h

Packit 84794d
/* GIO - GLib Input, Output and Streaming Library
Packit 84794d
 *
Packit 84794d
 * Copyright (C) 2006-2007 Red Hat, Inc.
Packit 84794d
 *
Packit 84794d
 * This library is free software; you can redistribute it and/or
Packit 84794d
 * modify it under the terms of the GNU Lesser General Public
Packit 84794d
 * License as published by the Free Software Foundation; either
Packit 84794d
 * version 2.1 of the License, or (at your option) any later version.
Packit 84794d
 *
Packit 84794d
 * This library is distributed in the hope that it will be useful,
Packit 84794d
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 84794d
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 84794d
 * Lesser General Public License for more details.
Packit 84794d
 *
Packit 84794d
 * You should have received a copy of the GNU Lesser General
Packit 84794d
 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit 84794d
 *
Packit 84794d
 * Author: Alexander Larsson <alexl@redhat.com>
Packit 84794d
 */
Packit 84794d
Packit 84794d
#ifndef __G_IO_SCHEDULER_H__
Packit 84794d
#define __G_IO_SCHEDULER_H__
Packit 84794d
Packit 84794d
#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
Packit 84794d
#error "Only <gio/gio.h> can be included directly."
Packit 84794d
#endif
Packit 84794d
Packit 84794d
#include <gio/giotypes.h>
Packit 84794d
Packit 84794d
G_BEGIN_DECLS
Packit 84794d
Packit 84794d
Packit 84794d
GLIB_DEPRECATED_IN_2_36_FOR ("GThreadPool or g_task_run_in_thread")
Packit 84794d
void     g_io_scheduler_push_job                   (GIOSchedulerJobFunc  job_func,
Packit 84794d
						    gpointer             user_data,
Packit 84794d
						    GDestroyNotify       notify,
Packit 84794d
						    gint                 io_priority,
Packit 84794d
						    GCancellable        *cancellable);
Packit 84794d
GLIB_DEPRECATED_IN_2_36
Packit 84794d
void     g_io_scheduler_cancel_all_jobs            (void);
Packit 84794d
GLIB_DEPRECATED_IN_2_36_FOR (g_main_context_invoke)
Packit 84794d
gboolean g_io_scheduler_job_send_to_mainloop       (GIOSchedulerJob     *job,
Packit 84794d
						    GSourceFunc          func,
Packit 84794d
						    gpointer             user_data,
Packit 84794d
						    GDestroyNotify       notify);
Packit 84794d
GLIB_DEPRECATED_IN_2_36_FOR (g_main_context_invoke)
Packit 84794d
void     g_io_scheduler_job_send_to_mainloop_async (GIOSchedulerJob     *job,
Packit 84794d
						    GSourceFunc          func,
Packit 84794d
						    gpointer             user_data,
Packit 84794d
						    GDestroyNotify       notify);
Packit 84794d
Packit 84794d
G_END_DECLS
Packit 84794d
Packit 84794d
#endif /* __G_IO_SCHEDULER_H__ */