/usr/include/gnome-vfs-2.0/libgnomevfs/gnome-vfs-module-callback.h is in libgnomevfs2-dev 1:2.24.4-6.1+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/* gnome-vfs-module-callback.h - registering for callbacks from modules
Copyright (C) 2001 Eazel, Inc
Copyright (C) 2001 Free Software Foundation
Copyright (C) 2001 Maciej Stachowiak
The Gnome Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The Gnome Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the Gnome Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
Authors: Maciej Stachowiak <mjs@noisehavoc.org>
Seth Nickell <snickell@stanford.edu>
Michael Fleming <mfleming@eazel.com>
*/
#ifndef GNOME_VFS_MODULE_CALLBACK_H
#define GNOME_VFS_MODULE_CALLBACK_H
#include <glib.h>
G_BEGIN_DECLS
/**
* GnomeVFSModuleCallback:
* @in: data passed from module to application.
* @in_size: size of @in bytes.
* @out: data passed from application to module.
* @out_size: size of @out in bytes.
* @callback_data: user data passed when connecting the callback.
*
* Modules use a #GnomeVFSModuleCallback to send data to
* client applications and request data from them synchronously.
*
* The format of @in and @out is determined by the callback name.
**/
typedef void (* GnomeVFSModuleCallback) (gconstpointer in,
gsize in_size,
gpointer out,
gsize out_size,
gpointer callback_data);
typedef void (* GnomeVFSModuleCallbackResponse) (gpointer response_data);
/**
* GnomeVFSAsyncModuleCallback:
* @in: data passed from module to application.
* @in_size: size of @in bytes.
* @out: data passed from application to module.
* @out_size: size of @out in bytes.
* @response: #GnomeVFSModuleCallbackResponse that must be invoked when the request is satisfied.
* @response_data: data that must be passed to @response when the request is satisfied.
* @callback_data: user data passed when connecting the callback.
*
* Modules use a #GnomeVFSModuleCallback to send data to
* client applications and request data from them asynchronously.
*
* The application is expected to invoke the @response with @response_data
* when it is able to satisfy the request.
*
* The format of @in and @out is determined by the callback name.
**/
typedef void (* GnomeVFSAsyncModuleCallback) (gconstpointer in,
gsize in_size,
gpointer out,
gsize out_size,
gpointer callback_data,
GnomeVFSModuleCallbackResponse response,
gpointer response_data);
void gnome_vfs_module_callback_set_default (const char *callback_name,
GnomeVFSModuleCallback callback,
gpointer callback_data,
GDestroyNotify destroy_notify);
void gnome_vfs_module_callback_push (const char *callback_name,
GnomeVFSModuleCallback callback,
gpointer callback_data,
GDestroyNotify destroy_notify);
void gnome_vfs_module_callback_pop (const char *callback_name);
void gnome_vfs_async_module_callback_set_default (const char *callback_name,
GnomeVFSAsyncModuleCallback callback,
gpointer callback_data,
GDestroyNotify destroy_notify);
void gnome_vfs_async_module_callback_push (const char *callback_name,
GnomeVFSAsyncModuleCallback callback,
gpointer callback_data,
GDestroyNotify destroy_notify);
void gnome_vfs_async_module_callback_pop (const char *callback_name);
G_END_DECLS
#endif
|