1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* gnome-vfs-async-job-map.h:
4 The async job map, maps GnomeVFSAsyncHandles to GnomeVFSJobs. Many
5 async operations, keep the same 'GnomeVFSJob' over the course of several
8 Copyright (C) 2001 Eazel Inc.
10 The Gnome Library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Library General Public License as
12 published by the Free Software Foundation; either version 2 of the
13 License, or (at your option) any later version.
15 The Gnome Library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Library General Public License for more details.
20 You should have received a copy of the GNU Library General Public
21 License along with the Gnome Library; see the file COPYING.LIB. If not,
22 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 Boston, MA 02111-1307, USA.
25 Author: Pavel Cisler <pavel@eazel.com> */
27 #ifndef GNOME_VFS_ASYNC_JOB_MAP_H
28 #define GNOME_VFS_ASYNC_JOB_MAP_H
30 #include "gnome-vfs-job.h"
32 /* async job map calls */
33 void _gnome_vfs_async_job_map_init (void);
34 void _gnome_vfs_async_job_map_shutdown (void);
35 gboolean _gnome_vfs_async_job_completed (GnomeVFSAsyncHandle *handle);
36 void _gnome_vfs_async_job_map_add_job (GnomeVFSJob *job);
37 void _gnome_vfs_async_job_map_remove_job (GnomeVFSJob *job);
38 GnomeVFSJob *_gnome_vfs_async_job_map_get_job (const GnomeVFSAsyncHandle *handle);
40 void _gnome_vfs_async_job_map_assert_locked (void);
41 void _gnome_vfs_async_job_map_lock (void);
42 void _gnome_vfs_async_job_map_unlock (void);
44 /* async job callback map calls */
45 void _gnome_vfs_async_job_callback_valid (guint callback_id,
48 gboolean _gnome_vfs_async_job_add_callback (GnomeVFSJob *job,
49 GnomeVFSNotifyResult *notify_result);
50 void _gnome_vfs_async_job_remove_callback (guint callback_id);
51 void _gnome_vfs_async_job_cancel_job_and_callbacks (GnomeVFSAsyncHandle *job_handle,