ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/gnome-vfs2-2.3.8-1.src.rpm
[gnome-vfs-httpcaptive.git] / libgnomevfs / gnome-vfs-module-callback.h
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 G_BEGIN_DECLS
34
35 typedef void (* GnomeVFSModuleCallback) (gconstpointer in,
36                                          gsize         in_size,
37                                          gpointer      out,
38                                          gsize         out_size,
39                                          gpointer      callback_data);
40
41 typedef void (* GnomeVFSModuleCallbackResponse) (gpointer response_data);
42
43 typedef void (* GnomeVFSAsyncModuleCallback) (gconstpointer                  in,
44                                               gsize                          in_size,
45                                               gpointer                       out,
46                                               gsize                          out_size,
47                                               gpointer                       callback_data,
48                                               GnomeVFSModuleCallbackResponse response,
49                                               gpointer                       response_data);
50
51
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);
61
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);
71
72 G_END_DECLS
73
74 #endif
75