
2001-08-29 Michael Natterer <mitch@gimp.org> * configure.in: added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. * app/batch.c * app/file-utils.c * app/gdisplay.c * app/gdisplay_ops.c * app/gimprc.[ch] * app/module_db.c * app/nav_window.c * app/undo_history.c * app/core/gimpgradient.c * app/core/gimpimagefile.c * app/core/gimppalette.c * app/gui/color-notebook.c * app/gui/convert-dialog.c * app/gui/error-console-dialog.c * app/gui/file-commands.c * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c * app/gui/gradient-editor.c * app/gui/info-window.c * app/gui/menus.c * app/gui/palette-import-dialog.c * app/tools/gimpbycolorselecttool.c * app/widgets/gimpcontainerview-utils.c * app/widgets/gimpdatafactoryview.c * libgimp/gimpmenu.c * plug-ins/common/bz2.c * plug-ins/common/compose.c * plug-ins/common/csource.c * plug-ins/common/decompose.c * plug-ins/common/gz.c * plug-ins/common/uniteditor.c * plug-ins/common/wmf.c * plug-ins/common/xbm.c * plug-ins/rcm/rcm_dialog.c * plug-ins/script-fu/interp_slib.c * plug-ins/script-fu/script-fu-console.c * plug-ins/script-fu/script-fu-scripts.c * tools/pdbgen/pdb/fileops.pdb * tools/pdbgen/pdb/gimprc.pdb * app/pdb/fileops_cmds.c * app/pdb/gimprc_cmds.c: removed deprecated stuff like g_basename(), g_dirname(), g_strup() and friends. Added some "const gchar *" declarations while I was on it. Added some G_N_ELEMENTS() macros instead of declaring a useless variable for the number of items. * app/widgets/gtkhwrapbox.[ch] * app/widgets/gtkvwrapbox.[ch] * app/widgets/gtkwrapbox.[ch]: replaced with the latest versions from GLE, ported by the master himself. * app/gui/toolbox.c: changed accordingly. * app/plug_in.c * libgimp/gimp.c * libgimpbase/gimpwire.[ch]: use evil hacks to get binary mode from the new GIOChannel implementation (upstream bugreport already posted).
114 lines
3.7 KiB
C
114 lines
3.7 KiB
C
/* LIBGIMP - The GIMP Library
|
|
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GIMP_WIRE_H__
|
|
#define __GIMP_WIRE_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
/* For information look into the C source or the html documentation */
|
|
|
|
|
|
typedef struct _WireMessage WireMessage;
|
|
|
|
typedef void (* WireReadFunc) (GIOChannel *channel,
|
|
WireMessage *msg);
|
|
typedef void (* WireWriteFunc) (GIOChannel *channel,
|
|
WireMessage *msg);
|
|
typedef void (* WireDestroyFunc) (WireMessage *msg);
|
|
typedef gboolean (* WireIOFunc) (GIOChannel *channel,
|
|
guint8 *buf,
|
|
gulong count);
|
|
typedef gboolean (* WireFlushFunc) (GIOChannel *channel);
|
|
|
|
|
|
struct _WireMessage
|
|
{
|
|
guint32 type;
|
|
gpointer data;
|
|
};
|
|
|
|
|
|
void wire_register (guint32 type,
|
|
WireReadFunc read_func,
|
|
WireWriteFunc write_func,
|
|
WireDestroyFunc destroy_func);
|
|
|
|
void wire_set_reader (WireIOFunc read_func);
|
|
void wire_set_writer (WireIOFunc write_func);
|
|
void wire_set_flusher (WireFlushFunc flush_func);
|
|
|
|
gboolean wire_read (GIOChannel *channel,
|
|
guint8 *buf,
|
|
gsize count);
|
|
gboolean wire_write (GIOChannel *channel,
|
|
guint8 *buf,
|
|
gsize count);
|
|
gboolean wire_flush (GIOChannel *channel);
|
|
|
|
gboolean wire_error (void);
|
|
void wire_clear_error (void);
|
|
|
|
gboolean wire_read_msg (GIOChannel *channel,
|
|
WireMessage *msg);
|
|
gboolean wire_write_msg (GIOChannel *channel,
|
|
WireMessage *msg);
|
|
|
|
void wire_destroy (WireMessage *msg);
|
|
|
|
gboolean wire_read_int32 (GIOChannel *channel,
|
|
guint32 *data,
|
|
gint count);
|
|
gboolean wire_read_int16 (GIOChannel *channel,
|
|
guint16 *data,
|
|
gint count);
|
|
gboolean wire_read_int8 (GIOChannel *channel,
|
|
guint8 *data,
|
|
gint count);
|
|
gboolean wire_read_double (GIOChannel *channel,
|
|
gdouble *data,
|
|
gint count);
|
|
gboolean wire_read_string (GIOChannel *channel,
|
|
gchar **data,
|
|
gint count);
|
|
gboolean wire_write_int32 (GIOChannel *channel,
|
|
guint32 *data,
|
|
gint count);
|
|
gboolean wire_write_int16 (GIOChannel *channel,
|
|
guint16 *data,
|
|
gint count);
|
|
gboolean wire_write_int8 (GIOChannel *channel,
|
|
guint8 *data,
|
|
gint count);
|
|
gboolean wire_write_double (GIOChannel *channel,
|
|
gdouble *data,
|
|
gint count);
|
|
gboolean wire_write_string (GIOChannel *channel,
|
|
gchar **data,
|
|
gint count);
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
|
|
#endif /* __GIMP_WIRE_H__ */
|