gimp/libgimpbase/gimpprotocol.h

206 lines
4.7 KiB
C
Raw Normal View History

1998-01-25 18:26:47 +08:00
/* LIBGIMP - The GIMP Library
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
*
* This library is free software; you can redistribute it and/or
1999-11-18 05:13:50 +08:00
* modify it under the terms of the GNU Lesser General Public
1998-01-25 18:26:47 +08:00
* 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.
1998-01-25 18:26:47 +08:00
*
1999-11-18 05:13:50 +08:00
* 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.
1998-01-25 18:26:47 +08:00
*/
1997-11-25 06:05:25 +08:00
#ifndef __GIMP_PROTOCOL_H__
#define __GIMP_PROTOCOL_H__
#include <glib.h>
/* Increment every time the protocol changes
*/
#define GP_VERSION 0x0003
1997-11-25 06:05:25 +08:00
enum {
GP_QUIT,
GP_CONFIG,
GP_TILE_REQ,
GP_TILE_ACK,
GP_TILE_DATA,
GP_PROC_RUN,
GP_PROC_RETURN,
GP_TEMP_PROC_RUN,
GP_TEMP_PROC_RETURN,
GP_PROC_INSTALL,
GP_PROC_UNINSTALL,
1999-03-07 20:56:03 +08:00
GP_EXTENSION_ACK,
GP_REQUEST_WAKEUPS
1997-11-25 06:05:25 +08:00
};
typedef struct _GPConfig GPConfig;
typedef struct _GPTileReq GPTileReq;
typedef struct _GPTileAck GPTileAck;
typedef struct _GPTileData GPTileData;
typedef struct _GPParam GPParam;
typedef struct _GPParamDef GPParamDef;
typedef struct _GPProcRun GPProcRun;
typedef struct _GPProcReturn GPProcReturn;
typedef struct _GPProcInstall GPProcInstall;
typedef struct _GPProcUninstall GPProcUninstall;
struct _GPConfig
{
guint32 version;
guint32 tile_width;
guint32 tile_height;
gint32 shm_ID;
gdouble gamma;
gint8 install_cmap;
gint8 use_xshm;
guint8 color_cube[4];
gint32 gdisp_ID;
1997-11-25 06:05:25 +08:00
};
struct _GPTileReq
{
gint32 drawable_ID;
guint32 tile_num;
guint32 shadow;
};
struct _GPTileData
{
gint32 drawable_ID;
guint32 tile_num;
guint32 shadow;
guint32 bpp;
guint32 width;
guint32 height;
guint32 use_shm;
guchar *data;
};
struct _GPParam
{
guint32 type;
union {
gint32 d_int32;
gint16 d_int16;
gint8 d_int8;
gdouble d_float;
gchar *d_string;
gint32 *d_int32array;
gint16 *d_int16array;
gint8 *d_int8array;
gdouble *d_floatarray;
gchar **d_stringarray;
struct {
guint8 red;
guint8 green;
guint8 blue;
} d_color;
struct {
gint32 x;
gint32 y;
gint32 width;
gint32 height;
} d_region;
gint32 d_display;
gint32 d_image;
gint32 d_layer;
gint32 d_channel;
gint32 d_drawable;
gint32 d_selection;
gint32 d_boundary;
gint32 d_path;
struct
{
Modified Files: ChangeLog app/Makefile.am app/channel.c app/channel.h Modified Files: ChangeLog app/Makefile.am app/channel.c app/channel.h app/channel_cmds.c app/channel_cmds.h app/drawable_cmds.c app/gimage_cmds.c app/gimpdrawable.c app/gimpdrawable.h app/gimpdrawableP.h app/gimpimage.c app/gimpimage.h app/gimpimageP.h app/internal_procs.c app/layer.c app/layer.h app/layer_cmds.c app/layer_cmds.h app/parasite_cmds.c app/perspective_tool.c app/plug_in.c app/procedural_db.c app/rotate_tool.c app/scale_tool.c app/shear_tool.c app/transform_core.c app/transform_core.h docs/parasites.txt libgimp/Makefile.am libgimp/gimp.c libgimp/gimp.h libgimp/gimpdrawable.c libgimp/gimpimage.c libgimp/gimpprotocol.c libgimp/gimpprotocol.h plug-ins/gif/gif.c plug-ins/script-fu/script-fu.c plug-ins/tiff/tiff.c Added Files: libgimp/gimpmatrix.c libgimp/gimpmatrix.h libgimp/parasite.c libgimp/parasite.h libgimp/parasiteF.h libgimp/parasiteP.h Removed Files: app/parasite.c app/parasite.h app/parasiteF.h app/parasiteP.h libgimp/gimpparasite.c libgimp/gimpparasite.h Tue Oct 13 19:24:03 1998 Jay Cox (jaycox@earthlink.net) * app/parasite.c * app/parasite.h * app/parasiteF.h * app/parasiteP.h : use a single name field instead of seperate creator/type fields. moved to libgimp/parasite* * libgimp/Makefile.am * libgimp/gimp.c * libgimp/gimp.h * libgimp/gimpdrawable.c * libgimp/gimpimage.c * libgimp/gimpprotocol.c * libgimp/gimpprotocol.h * app/Makefile.am * app/channel.c * app/channel.h * app/channel_cmds.c * app/channel_cmds.h * app/drawable_cmds.c * app/gimage_cmds.c * app/gimpdrawable.c * app/gimpdrawable.h * app/gimpdrawableP.h * app/gimpimage.c * app/gimpimage.h * app/gimpimageP.h * app/internal_procs.c * app/layer.c * app/layer.h * app/layer_cmds.c * app/layer_cmds.h * app/parasite_cmds.c * app/plug_in.c * app/procedural_db.c: Add tattoos to layers and drawables. Use new style parasites. * libgimp/gimpmatrix.c * libgimp/gimpmatrix.h: new files for matrix math. * app/perspective_tool.c * app/rotate_tool.c * app/scale_tool.c * app/shear_tool.c * app/transform_core.c * app/transform_core.h: use GimpMatrix instead of the old matrix code from transform_core. * ligimp/gimpparasite*: removed. now useing the same source for plug-ins and the core. * plug-ins/script-fu/script-fu.c * plug-ins/tiff/tiff.c * plug-ins/gif/gif.c: updated to use new style parasites.
1998-10-14 10:54:02 +08:00
char *name;
guint32 flags;
guint32 size;
void *data;
} d_parasite;
1997-11-25 06:05:25 +08:00
gint32 d_status;
} data;
};
struct _GPParamDef
{
guint32 type;
char *name;
char *description;
};
struct _GPProcRun
{
char *name;
guint32 nparams;
GPParam *params;
};
struct _GPProcReturn
{
char *name;
guint32 nparams;
GPParam *params;
};
struct _GPProcInstall
{
char *name;
char *blurb;
char *help;
char *author;
char *copyright;
char *date;
char *menu_path;
char *image_types;
guint32 type;
guint32 nparams;
guint32 nreturn_vals;
GPParamDef *params;
GPParamDef *return_vals;
};
struct _GPProcUninstall
{
char *name;
};
void gp_init (void);
1999-03-07 20:56:03 +08:00
int gp_quit_write (GIOChannel *channel);
int gp_config_write (GIOChannel *channel,
1997-11-25 06:05:25 +08:00
GPConfig *config);
1999-03-07 20:56:03 +08:00
int gp_tile_req_write (GIOChannel *channel,
1997-11-25 06:05:25 +08:00
GPTileReq *tile_req);
1999-03-07 20:56:03 +08:00
int gp_tile_ack_write (GIOChannel *channel);
int gp_tile_data_write (GIOChannel *channel,
1997-11-25 06:05:25 +08:00
GPTileData *tile_data);
1999-03-07 20:56:03 +08:00
int gp_proc_run_write (GIOChannel *channel,
1997-11-25 06:05:25 +08:00
GPProcRun *proc_run);
1999-03-07 20:56:03 +08:00
int gp_proc_return_write (GIOChannel *channel,
1997-11-25 06:05:25 +08:00
GPProcReturn *proc_return);
1999-03-07 20:56:03 +08:00
int gp_temp_proc_run_write (GIOChannel *channel,
1997-11-25 06:05:25 +08:00
GPProcRun *proc_run);
1999-03-07 20:56:03 +08:00
int gp_temp_proc_return_write (GIOChannel *channel,
1997-11-25 06:05:25 +08:00
GPProcReturn *proc_return);
1999-03-07 20:56:03 +08:00
int gp_proc_install_write (GIOChannel *channel,
1997-11-25 06:05:25 +08:00
GPProcInstall *proc_install);
1999-03-07 20:56:03 +08:00
int gp_proc_uninstall_write (GIOChannel *channel,
1997-11-25 06:05:25 +08:00
GPProcUninstall *proc_uninstall);
1999-03-07 20:56:03 +08:00
int gp_extension_ack_write (GIOChannel *channel);
int gp_request_wakeups_write (GIOChannel *channel);
1997-11-25 06:05:25 +08:00
#endif /* __GIMP_PROTOCOL_H__ */