1 <!-- ##### ENUM GChannelError ##### -->
6 @G_CHANNEL_ERROR_ACCES:
8 @G_CHANNEL_ERROR_DEADLK:
9 @G_CHANNEL_ERROR_FAULT:
10 @G_CHANNEL_ERROR_INVAL:
12 @G_CHANNEL_ERROR_ISDIR:
13 @G_CHANNEL_ERROR_MFILE:
14 @G_CHANNEL_ERROR_NOLCK:
15 @G_CHANNEL_ERROR_NOSPC:
16 @G_CHANNEL_ERROR_PERM:
17 @G_CHANNEL_ERROR_PIPE:
18 @G_CHANNEL_ERROR_SPIPE:
19 @G_CHANNEL_ERROR_ENCODE_RW:
20 @G_CHANNEL_ERROR_FAILED:
22 <!-- ##### ENUM GChannelStatus ##### -->
27 @G_CHANNEL_STATUS_NORMAL:
28 @G_CHANNEL_STATUS_EOF:
29 @G_CHANNEL_STATUS_PARTIAL_CHARS:
30 @G_CHANNEL_STATUS_AGAIN:
31 @G_CHANNEL_STATUS_INTR:
32 @G_CHANNEL_STATUS_ERROR:
33 @G_CHANNEL_STATUS_BAD_INPUT:
35 <!-- ##### USER_FUNCTION GCompareFuncData ##### -->
45 <!-- ##### USER_FUNCTION GCompletionStrcmpFunc ##### -->
54 <!-- ##### USER_FUNCTION GErrorFunc ##### -->
56 Specifies the type of function passed to g_set_error_handler().
59 @str: the error message.
61 <!-- ##### USER_FUNCTION GHookFreeFunc ##### -->
69 <!-- ##### ENUM GIOFileMode ##### -->
75 @G_IO_FILE_MODE_WRITE:
76 @G_IO_FILE_MODE_APPEND:
77 @G_IO_FILE_MODE_READ_WRITE:
78 @G_IO_FILE_MODE_READ_WRITE_TRUNCATE:
79 @G_IO_FILE_MODE_READ_WRITE_APPEND:
81 <!-- ##### ENUM GMatchType ##### -->
83 Enumeration representing different kinds of patterns. This is only used
84 internally for optimizing the match algorithm.
87 @G_MATCH_ALL: a general pattern.
88 @G_MATCH_ALL_TAIL: a general pattern which contains a fixed part matching
89 the end of the string.
90 @G_MATCH_HEAD: a pattern matching every string with a certain prefix.
91 @G_MATCH_TAIL: a pattern matching every string with a certain suffix.
92 @G_MATCH_EXACT: a pattern matching exactly one string.
95 <!-- ##### USER_FUNCTION GWarningFunc ##### -->
97 Specifies the type of function passed to g_set_warning_handler().
100 @str: the warning message.
102 <!-- ##### MACRO G_CHANNEL_ERROR ##### -->
108 <!-- ##### MACRO G_HOOK_DEFERRED_DESTROY ##### -->
114 <!-- ##### MACRO G_IO_CHANNEL_DEFAULT_LINE_TERM ##### -->
116 One of %G_IO_CHANNEL_UNIX_LINE_TERM, %G_IO_CHANNEL_DOS_LINE_TERM,
117 or %G_IO_CHANNEL_MACINTOSH_LINE_TERM (unimplemented)
118 depending on the system type.
122 <!-- ##### MACRO G_IO_CHANNEL_DOS_LINE_TERM ##### -->
128 <!-- ##### MACRO G_IO_CHANNEL_ENCODE_RAW ##### -->
130 Encoding for nonbuffered IO. With this encoding, data must be
131 read using g_io_channel_read_chars(); the other functions will
136 <!-- ##### MACRO G_IO_CHANNEL_MACINTOSH_LINE_TERM ##### -->
142 <!-- ##### MACRO G_IO_CHANNEL_UNIX_LINE_TERM ##### -->
148 <!-- ##### MACRO NAME_MAX ##### -->
150 Provided for UNIX emulation on Windows; equivalent to UNIX macro
151 %NAME_MAX, which is the maximum length of a single path component.
152 i.e. just the <filename>foo</filename> in <filename>/usr/bin/foo</filename>.
156 <!-- ##### MACRO access ##### -->
162 <!-- ##### MACRO close ##### -->
168 <!-- ##### MACRO fdopen ##### -->
174 <!-- ##### FUNCTION g_channel_error_from_errno ##### -->
182 <!-- ##### FUNCTION g_channel_error_quark ##### -->
189 <!-- ##### FUNCTION g_convert_error_quark ##### -->
196 <!-- ##### FUNCTION g_io_channel_error_quark ##### -->
203 <!-- ##### FUNCTION g_main_add_poll ##### -->
205 Adds a file descriptor to be polled.
206 This is usually combined with g_source_add() to add an event source.
207 The event source's check function will typically test the revents
208 field in the #GPollFD struct and return TRUE if events need to be processed.
211 @fd: a #GPollFD, which is a file descriptor together with a bitwise
212 combination of #GIOCondition flags determining which events to poll for.
213 @priority: the priority of the poll, which should be the same as the priority
214 used for g_source_add() to ensure that the file descriptor is polled whenever
215 the results may be needed.
216 See #G_PRIORITY_DEFAULT, #G_PRIORITY_DEFAULT_IDLE, #G_PRIORITY_HIGH,
217 #G_PRIORITY_HIGH_IDLE, and #G_PRIORITY_LOW.
219 <!-- ##### FUNCTION g_main_context_get ##### -->
227 <!-- ##### FUNCTION g_main_loop_destroy ##### -->
234 <!-- ##### FUNCTION g_main_remove_poll ##### -->
236 Removes a file descriptor from the list being polled.
239 @fd: the #GPollFD to remove.
241 <!-- ##### FUNCTION g_main_win32_get_poll_func ##### -->
248 <!-- ##### FUNCTION g_mem_check ##### -->
250 Checks if the given memory has already been freed. If it has it outputs
252 To use this function you must configure glib with the flag
253 '--enable-mem-check=yes' before compiling.
256 @mem: the memory to check.
258 <!-- ##### FUNCTION g_scanner_stat_mode ##### -->
260 Gets the file attributes.
261 This is the <structfield>st_mode</structfield> field from the
262 <structname>stat</structname> structure. See the <function>stat()</function>
266 @filename: the file name.
267 @Returns: the file attributes.
269 <!-- ##### FUNCTION g_set_error_handler ##### -->
271 Sets the function to be called to handle error messages.
272 This function is deprecated in favour of the new logging facilities.
275 @func: the function to be called to handle error messages.
276 @Returns: the old error handler.
278 <!-- ##### FUNCTION g_set_message_handler ##### -->
280 Sets the function to be called to handle messages.
281 This function is deprecated in favour of the new logging facilities.
284 @func: the function to be called to handle normal messages.
285 @Returns: the old message handler.
287 <!-- ##### FUNCTION g_set_warning_handler ##### -->
289 Sets the function to be called to handle warning messages.
290 This function is deprecated in favour of the new logging facilities.
293 @func: the function to be called to handle warning messages.
294 @Returns: the old warning handler.
296 <!-- ##### FUNCTION g_source_add ##### -->
310 <!-- ##### FUNCTION g_source_connect ##### -->
320 <!-- ##### FUNCTION g_source_connect_indirect ##### -->
329 <!-- ##### FUNCTION g_source_remove_by_source_data ##### -->
331 Removes the first event source found with the given source data.
334 Event sources are sorted with the highest priority first. Sources with equal
335 priority are stored in the order in which they were added.
338 @source_data: the source data, which contains information specific to the
340 @Returns: TRUE if an event source was found and removed.
342 <!-- ##### FUNCTION g_static_private_get_for_thread ##### -->
351 <!-- ##### FUNCTION g_static_private_set_for_thread ##### -->
361 <!-- ##### MACRO g_string ##### -->
363 Turns the argument into a string literal by using the '#' stringizing operator.
366 @x: text to convert to a literal string.
368 <!-- ##### MACRO getcwd ##### -->
374 <!-- ##### MACRO getpid ##### -->
380 <!-- ##### MACRO lseek ##### -->
386 <!-- ##### MACRO open ##### -->
392 <!-- ##### MACRO pclose ##### -->
398 <!-- ##### MACRO popen ##### -->
404 <!-- ##### MACRO read ##### -->
410 <!-- ##### MACRO readdir ##### -->
412 Provided for UNIX emulation on Windows; see documentation for <function>readdir()</function>
417 <!-- ##### MACRO write ##### -->