1
<!-- ##### SECTION Title ##### -->
4
<!-- ##### SECTION Short_Description ##### -->
5
Callbacks on file descriptors
7
<!-- ##### SECTION Long_Description ##### -->
9
The functions in this section are used to establish
10
callbacks when some condition becomes true for
11
a file descriptor. They are currently just wrappers around
12
the <link linkend="glib-IO-Channels">IO Channel</link>
16
<!-- ##### SECTION See_Also ##### -->
21
<term><link linkend="glib-The-Main-Event-Loop">GLib Main Loop</link></term>
22
<listitem><para>The main loop in which input callbacks run.</para></listitem>
26
<term><link linkend="glib-IO-Channels">IO Channels</link></term>
27
<listitem><para>A newer and more flexible way of doing IO
28
callbacks.</para></listitem>
34
<!-- ##### SECTION Stability_Level ##### -->
37
<!-- ##### SECTION Image ##### -->
40
<!-- ##### FUNCTION gdk_input_add_full ##### -->
51
<!-- ##### ENUM GdkInputCondition ##### -->
53
A set of bit flags used to specify conditions for which
54
an input callback will be triggered. The three members
55
of this enumeration correspond to the @readfds,
56
@writefds, and @exceptfds arguments to the
57
<function>select</function> system call.
60
@GDK_INPUT_READ: the file descriptor has become available for reading.
61
(Or, as is standard in Unix, a socket or pipe was closed
62
at the other end; this is the case if a subsequent read
63
on the file descriptor returns a count of zero.)
64
@GDK_INPUT_WRITE: the file descriptor has become available for writing.
65
@GDK_INPUT_EXCEPTION: an exception was raised on the file descriptor.
67
<!-- ##### USER_FUNCTION GdkInputFunction ##### -->
69
A callback function that will be called when some condition
73
@data: the user data passed to gdk_input_add() or gdk_input_add_full().
74
@source: the source where the condition occurred.
75
@condition: the triggering condition.
78
<!-- ##### USER_FUNCTION GdkDestroyNotify ##### -->
80
A callback function called when a piece of user data is
81
no longer being stored by GDK. Will typically free the
82
structure or object that @data points to.
88
<!-- ##### FUNCTION gdk_input_add ##### -->
98
<!-- ##### FUNCTION gdk_input_remove ##### -->
100
Remove a callback added with gdk_input_add() or
101
gdk_input_add_full().
104
@tag: the tag returned when the callback was set up.