25
25
/* For information look into the C source or the html documentation */
28
typedef struct _WireMessage WireMessage;
30
typedef void (* WireReadFunc) (GIOChannel *channel,
33
typedef void (* WireWriteFunc) (GIOChannel *channel,
36
typedef void (* WireDestroyFunc) (WireMessage *msg);
37
typedef gboolean (* WireIOFunc) (GIOChannel *channel,
41
typedef gboolean (* WireFlushFunc) (GIOChannel *channel,
28
typedef struct _GimpWireMessage GimpWireMessage;
30
typedef void (* GimpWireReadFunc) (GIOChannel *channel,
33
typedef void (* GimpWireWriteFunc) (GIOChannel *channel,
36
typedef void (* GimpWireDestroyFunc) (GimpWireMessage *msg);
37
typedef gboolean (* GimpWireIOFunc) (GIOChannel *channel,
41
typedef gboolean (* GimpWireFlushFunc) (GIOChannel *channel,
45
struct _GimpWireMessage
52
void wire_register (guint32 type,
53
WireReadFunc read_func,
54
WireWriteFunc write_func,
55
WireDestroyFunc destroy_func);
57
void wire_set_reader (WireIOFunc read_func);
58
void wire_set_writer (WireIOFunc write_func);
59
void wire_set_flusher (WireFlushFunc flush_func);
61
gboolean wire_read (GIOChannel *channel,
65
gboolean wire_write (GIOChannel *channel,
69
gboolean wire_flush (GIOChannel *channel,
72
gboolean wire_error (void);
73
void wire_clear_error (void);
75
gboolean wire_read_msg (GIOChannel *channel,
78
gboolean wire_write_msg (GIOChannel *channel,
82
void wire_destroy (WireMessage *msg);
84
gboolean wire_read_int32 (GIOChannel *channel,
88
gboolean wire_read_int16 (GIOChannel *channel,
92
gboolean wire_read_int8 (GIOChannel *channel,
96
gboolean wire_read_double (GIOChannel *channel,
100
gboolean wire_read_string (GIOChannel *channel,
104
gboolean wire_write_int32 (GIOChannel *channel,
108
gboolean wire_write_int16 (GIOChannel *channel,
112
gboolean wire_write_int8 (GIOChannel *channel,
116
gboolean wire_write_double (GIOChannel *channel,
120
gboolean wire_write_string (GIOChannel *channel,
52
void gimp_wire_register (guint32 type,
53
GimpWireReadFunc read_func,
54
GimpWireWriteFunc write_func,
55
GimpWireDestroyFunc destroy_func);
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);
61
gboolean gimp_wire_read (GIOChannel *channel,
65
gboolean gimp_wire_write (GIOChannel *channel,
69
gboolean gimp_wire_flush (GIOChannel *channel,
72
gboolean gimp_wire_error (void);
73
void gimp_wire_clear_error (void);
75
gboolean gimp_wire_read_msg (GIOChannel *channel,
78
gboolean gimp_wire_write_msg (GIOChannel *channel,
82
void gimp_wire_destroy (GimpWireMessage *msg);
85
/* for internal use in libgimpbase */
87
G_GNUC_INTERNAL gboolean _gimp_wire_read_int32 (GIOChannel *channel,
91
G_GNUC_INTERNAL gboolean _gimp_wire_read_int16 (GIOChannel *channel,
95
G_GNUC_INTERNAL gboolean _gimp_wire_read_int8 (GIOChannel *channel,
99
G_GNUC_INTERNAL gboolean _gimp_wire_read_double (GIOChannel *channel,
103
G_GNUC_INTERNAL gboolean _gimp_wire_read_string (GIOChannel *channel,
107
G_GNUC_INTERNAL gboolean _gimp_wire_read_color (GIOChannel *channel,
111
G_GNUC_INTERNAL gboolean _gimp_wire_write_int32 (GIOChannel *channel,
115
G_GNUC_INTERNAL gboolean _gimp_wire_write_int16 (GIOChannel *channel,
119
G_GNUC_INTERNAL gboolean _gimp_wire_write_int8 (GIOChannel *channel,
123
G_GNUC_INTERNAL gboolean _gimp_wire_write_double (GIOChannel *channel,
127
G_GNUC_INTERNAL gboolean _gimp_wire_write_string (GIOChannel *channel,
131
G_GNUC_INTERNAL gboolean _gimp_wire_write_color (GIOChannel *channel,