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 |
---|
3 | |
---|
4 | Copyright (C) 2001 Eazel, Inc |
---|
5 | Copyright (C) 2001 Free Software Foundation |
---|
6 | Copyright (C) 2001 Maciej Stachowiak |
---|
7 | |
---|
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. |
---|
12 | |
---|
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. |
---|
17 | |
---|
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. |
---|
22 | |
---|
23 | Authors: Maciej Stachowiak <mjs@noisehavoc.org> |
---|
24 | Seth Nickell <snickell@stanford.edu> |
---|
25 | Michael Fleming <mfleming@eazel.com> |
---|
26 | */ |
---|
27 | |
---|
28 | #ifndef GNOME_VFS_MODULE_CALLBACK_H |
---|
29 | #define GNOME_VFS_MODULE_CALLBACK_H |
---|
30 | |
---|
31 | #include <glib.h> |
---|
32 | |
---|
33 | |
---|
34 | typedef void (* GnomeVFSModuleCallback) (gconstpointer in, |
---|
35 | gsize in_size, |
---|
36 | gpointer out, |
---|
37 | gsize out_size, |
---|
38 | gpointer callback_data); |
---|
39 | |
---|
40 | typedef void (* GnomeVFSModuleCallbackResponse) (gpointer response_data); |
---|
41 | |
---|
42 | typedef void (* GnomeVFSAsyncModuleCallback) (gconstpointer in, |
---|
43 | gsize in_size, |
---|
44 | gpointer out, |
---|
45 | gsize out_size, |
---|
46 | gpointer callback_data, |
---|
47 | GnomeVFSModuleCallbackResponse response, |
---|
48 | gpointer response_data); |
---|
49 | |
---|
50 | |
---|
51 | void gnome_vfs_module_callback_set_default (const char *callback_name, |
---|
52 | GnomeVFSModuleCallback callback, |
---|
53 | gpointer callback_data, |
---|
54 | GDestroyNotify destroy_notify); |
---|
55 | void gnome_vfs_module_callback_push (const char *callback_name, |
---|
56 | GnomeVFSModuleCallback callback, |
---|
57 | gpointer callback_data, |
---|
58 | GDestroyNotify destroy_notify); |
---|
59 | void gnome_vfs_module_callback_pop (const char *callback_name); |
---|
60 | |
---|
61 | void gnome_vfs_async_module_callback_set_default (const char *callback_name, |
---|
62 | GnomeVFSAsyncModuleCallback callback, |
---|
63 | gpointer callback_data, |
---|
64 | GDestroyNotify destroy_notify); |
---|
65 | void gnome_vfs_async_module_callback_push (const char *callback_name, |
---|
66 | GnomeVFSAsyncModuleCallback callback, |
---|
67 | gpointer callback_data, |
---|
68 | GDestroyNotify destroy_notify); |
---|
69 | void gnome_vfs_async_module_callback_pop (const char *callback_name); |
---|
70 | |
---|
71 | #endif |
---|
72 | |
---|