1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
2 /* gnome-vfs-module-callback.h - registering for callbacks from modules
4 Copyright (C) 2001 Eazel, Inc
5 Copyright (C) 2001 Free Software Foundation
6 Copyright (C) 2001 Maciej Stachowiak
8 The Gnome Library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
13 The Gnome Library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
18 You should have received a copy of the GNU Library General Public
19 License along with the Gnome Library; see the file COPYING.LIB. If not,
20 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.
23 Authors: Maciej Stachowiak <mjs@noisehavoc.org>
24 Seth Nickell <snickell@stanford.edu>
25 Michael Fleming <mfleming@eazel.com>
28 #ifndef GNOME_VFS_MODULE_CALLBACK_H
29 #define GNOME_VFS_MODULE_CALLBACK_H
35 typedef void (* GnomeVFSModuleCallback) (gconstpointer in,
39 gpointer callback_data);
41 typedef void (* GnomeVFSModuleCallbackResponse) (gpointer response_data);
43 typedef void (* GnomeVFSAsyncModuleCallback) (gconstpointer in,
47 gpointer callback_data,
48 GnomeVFSModuleCallbackResponse response,
49 gpointer response_data);
52 void gnome_vfs_module_callback_set_default (const char *callback_name,
53 GnomeVFSModuleCallback callback,
54 gpointer callback_data,
55 GDestroyNotify destroy_notify);
56 void gnome_vfs_module_callback_push (const char *callback_name,
57 GnomeVFSModuleCallback callback,
58 gpointer callback_data,
59 GDestroyNotify destroy_notify);
60 void gnome_vfs_module_callback_pop (const char *callback_name);
62 void gnome_vfs_async_module_callback_set_default (const char *callback_name,
63 GnomeVFSAsyncModuleCallback callback,
64 gpointer callback_data,
65 GDestroyNotify destroy_notify);
66 void gnome_vfs_async_module_callback_push (const char *callback_name,
67 GnomeVFSAsyncModuleCallback callback,
68 gpointer callback_data,
69 GDestroyNotify destroy_notify);
70 void gnome_vfs_async_module_callback_pop (const char *callback_name);