~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to libgimpbase/gimpwire.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
/* For information look into the C source or the html documentation */
26
26
 
27
27
 
28
 
typedef struct _WireMessage  WireMessage;
29
 
 
30
 
typedef void     (* WireReadFunc)    (GIOChannel  *channel,
31
 
                                      WireMessage *msg,
32
 
                                      gpointer     user_data);
33
 
typedef void     (* WireWriteFunc)   (GIOChannel  *channel,
34
 
                                      WireMessage *msg,
35
 
                                      gpointer     user_data);
36
 
typedef void     (* WireDestroyFunc) (WireMessage *msg);
37
 
typedef gboolean (* WireIOFunc)      (GIOChannel  *channel,
38
 
                                      guint8      *buf,
39
 
                                      gulong       count,
40
 
                                      gpointer     user_data);
41
 
typedef gboolean (* WireFlushFunc)   (GIOChannel  *channel,
42
 
                                      gpointer     user_data);
43
 
 
44
 
 
45
 
struct _WireMessage
 
28
typedef struct _GimpWireMessage  GimpWireMessage;
 
29
 
 
30
typedef void     (* GimpWireReadFunc)    (GIOChannel      *channel,
 
31
                                          GimpWireMessage *msg,
 
32
                                          gpointer         user_data);
 
33
typedef void     (* GimpWireWriteFunc)   (GIOChannel      *channel,
 
34
                                          GimpWireMessage *msg,
 
35
                                          gpointer         user_data);
 
36
typedef void     (* GimpWireDestroyFunc) (GimpWireMessage *msg);
 
37
typedef gboolean (* GimpWireIOFunc)      (GIOChannel      *channel,
 
38
                                          const guint8    *buf,
 
39
                                          gulong           count,
 
40
                                          gpointer         user_data);
 
41
typedef gboolean (* GimpWireFlushFunc)   (GIOChannel      *channel,
 
42
                                          gpointer         user_data);
 
43
 
 
44
 
 
45
struct _GimpWireMessage
46
46
{
47
47
  guint32  type;
48
48
  gpointer data;
49
49
};
50
50
 
51
51
 
52
 
void      wire_register     (guint32          type,
53
 
                             WireReadFunc     read_func,
54
 
                             WireWriteFunc    write_func,
55
 
                             WireDestroyFunc  destroy_func);
56
 
 
57
 
void      wire_set_reader   (WireIOFunc       read_func);
58
 
void      wire_set_writer   (WireIOFunc       write_func);
59
 
void      wire_set_flusher  (WireFlushFunc    flush_func);
60
 
 
61
 
gboolean  wire_read         (GIOChannel      *channel,
62
 
                             guint8          *buf,
63
 
                             gsize            count,
64
 
                             gpointer         user_data);
65
 
gboolean  wire_write        (GIOChannel      *channel,
66
 
                             guint8          *buf,
67
 
                             gsize            count,
68
 
                             gpointer         user_data);
69
 
gboolean  wire_flush        (GIOChannel      *channel,
70
 
                             gpointer         user_data);
71
 
 
72
 
gboolean  wire_error        (void);
73
 
void      wire_clear_error  (void);
74
 
 
75
 
gboolean  wire_read_msg     (GIOChannel      *channel,
76
 
                             WireMessage     *msg,
77
 
                             gpointer         user_data);
78
 
gboolean  wire_write_msg    (GIOChannel      *channel,
79
 
                             WireMessage     *msg,
80
 
                             gpointer         user_data);
81
 
 
82
 
void      wire_destroy      (WireMessage     *msg);
83
 
 
84
 
gboolean  wire_read_int32   (GIOChannel      *channel,
85
 
                             guint32         *data,
86
 
                             gint             count,
87
 
                             gpointer         user_data);
88
 
gboolean  wire_read_int16   (GIOChannel      *channel,
89
 
                             guint16         *data,
90
 
                             gint             count,
91
 
                             gpointer         user_data);
92
 
gboolean  wire_read_int8    (GIOChannel      *channel,
93
 
                             guint8          *data,
94
 
                             gint             count,
95
 
                             gpointer         user_data);
96
 
gboolean  wire_read_double  (GIOChannel      *channel,
97
 
                             gdouble         *data,
98
 
                             gint             count,
99
 
                             gpointer         user_data);
100
 
gboolean  wire_read_string  (GIOChannel      *channel,
101
 
                             gchar          **data,
102
 
                             gint             count,
103
 
                             gpointer         user_data);
104
 
gboolean  wire_write_int32  (GIOChannel      *channel,
105
 
                             guint32         *data,
106
 
                             gint             count,
107
 
                             gpointer         user_data);
108
 
gboolean  wire_write_int16  (GIOChannel      *channel,
109
 
                             guint16         *data,
110
 
                             gint             count,
111
 
                             gpointer         user_data);
112
 
gboolean  wire_write_int8   (GIOChannel      *channel,
113
 
                             guint8          *data,
114
 
                             gint             count,
115
 
                             gpointer         user_data);
116
 
gboolean  wire_write_double (GIOChannel      *channel,
117
 
                             gdouble         *data,
118
 
                             gint             count,
119
 
                             gpointer         user_data);
120
 
gboolean  wire_write_string (GIOChannel      *channel,
121
 
                             gchar          **data,
122
 
                             gint             count,
123
 
                             gpointer         user_data);
 
52
void      gimp_wire_register      (guint32              type,
 
53
                                   GimpWireReadFunc     read_func,
 
54
                                   GimpWireWriteFunc    write_func,
 
55
                                   GimpWireDestroyFunc  destroy_func);
 
56
 
 
57
void      gimp_wire_set_reader    (GimpWireIOFunc       read_func);
 
58
void      gimp_wire_set_writer    (GimpWireIOFunc       write_func);
 
59
void      gimp_wire_set_flusher   (GimpWireFlushFunc    flush_func);
 
60
 
 
61
gboolean  gimp_wire_read          (GIOChannel           *channel,
 
62
                                   guint8          *buf,
 
63
                                   gsize            count,
 
64
                                   gpointer         user_data);
 
65
gboolean  gimp_wire_write         (GIOChannel      *channel,
 
66
                                   const guint8    *buf,
 
67
                                   gsize            count,
 
68
                                   gpointer         user_data);
 
69
gboolean  gimp_wire_flush         (GIOChannel      *channel,
 
70
                                   gpointer         user_data);
 
71
 
 
72
gboolean  gimp_wire_error         (void);
 
73
void      gimp_wire_clear_error   (void);
 
74
 
 
75
gboolean  gimp_wire_read_msg      (GIOChannel          *channel,
 
76
                                   GimpWireMessage *msg,
 
77
                                   gpointer         user_data);
 
78
gboolean  gimp_wire_write_msg     (GIOChannel          *channel,
 
79
                                   GimpWireMessage *msg,
 
80
                                   gpointer         user_data);
 
81
 
 
82
void      gimp_wire_destroy       (GimpWireMessage *msg);
 
83
 
 
84
 
 
85
/*  for internal use in libgimpbase  */
 
86
 
 
87
G_GNUC_INTERNAL gboolean  _gimp_wire_read_int32   (GIOChannel     *channel,
 
88
                                                   guint32        *data,
 
89
                                                   gint            count,
 
90
                                                   gpointer        user_data);
 
91
G_GNUC_INTERNAL gboolean  _gimp_wire_read_int16   (GIOChannel     *channel,
 
92
                                                   guint16        *data,
 
93
                                                   gint            count,
 
94
                                                   gpointer        user_data);
 
95
G_GNUC_INTERNAL gboolean  _gimp_wire_read_int8    (GIOChannel     *channel,
 
96
                                                   guint8         *data,
 
97
                                                   gint            count,
 
98
                                                   gpointer        user_data);
 
99
G_GNUC_INTERNAL gboolean  _gimp_wire_read_double  (GIOChannel     *channel,
 
100
                                                   gdouble        *data,
 
101
                                                   gint            count,
 
102
                                                   gpointer        user_data);
 
103
G_GNUC_INTERNAL gboolean  _gimp_wire_read_string  (GIOChannel     *channel,
 
104
                                                   gchar         **data,
 
105
                                                   gint            count,
 
106
                                                   gpointer        user_data);
 
107
G_GNUC_INTERNAL gboolean  _gimp_wire_read_color   (GIOChannel     *channel,
 
108
                                                   GimpRGB        *data,
 
109
                                                   gint            count,
 
110
                                                   gpointer        user_data);
 
111
G_GNUC_INTERNAL gboolean  _gimp_wire_write_int32  (GIOChannel     *channel,
 
112
                                                   const guint32  *data,
 
113
                                                   gint            count,
 
114
                                                   gpointer        user_data);
 
115
G_GNUC_INTERNAL gboolean  _gimp_wire_write_int16  (GIOChannel     *channel,
 
116
                                                   const guint16  *data,
 
117
                                                   gint            count,
 
118
                                                   gpointer        user_data);
 
119
G_GNUC_INTERNAL gboolean  _gimp_wire_write_int8   (GIOChannel     *channel,
 
120
                                                   const guint8   *data,
 
121
                                                   gint            count,
 
122
                                                   gpointer        user_data);
 
123
G_GNUC_INTERNAL gboolean  _gimp_wire_write_double (GIOChannel     *channel,
 
124
                                                   const gdouble  *data,
 
125
                                                   gint            count,
 
126
                                                   gpointer        user_data);
 
127
G_GNUC_INTERNAL gboolean  _gimp_wire_write_string (GIOChannel     *channel,
 
128
                                                   gchar         **data,
 
129
                                                   gint            count,
 
130
                                                   gpointer        user_data);
 
131
G_GNUC_INTERNAL gboolean  _gimp_wire_write_color  (GIOChannel     *channel,
 
132
                                                   const GimpRGB  *data,
 
133
                                                   gint            count,
 
134
                                                   gpointer        user_data);
124
135
 
125
136
 
126
137
G_END_DECLS