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 <!-- ##### STRUCT GIConv ##### -->
71 The <structname>GIConv</structname> struct wraps an
72 <function>iconv()</function> conversion descriptor. It contains private data
73 and should only be accessed using the following functions.
77 <!-- ##### ENUM GIOFileMode ##### -->
83 @G_IO_FILE_MODE_WRITE:
84 @G_IO_FILE_MODE_APPEND:
85 @G_IO_FILE_MODE_READ_WRITE:
86 @G_IO_FILE_MODE_READ_WRITE_TRUNCATE:
87 @G_IO_FILE_MODE_READ_WRITE_APPEND:
89 <!-- ##### ENUM GMatchType ##### -->
91 Enumeration representing different kinds of patterns. This is only used
92 internally for optimizing the match algorithm.
95 @G_MATCH_ALL: a general pattern.
96 @G_MATCH_ALL_TAIL: a general pattern which contains a fixed part matching
97 the end of the string.
98 @G_MATCH_HEAD: a pattern matching every string with a certain prefix.
99 @G_MATCH_TAIL: a pattern matching every string with a certain suffix.
100 @G_MATCH_EXACT: a pattern matching exactly one string.
103 <!-- ##### USER_FUNCTION GWarningFunc ##### -->
105 Specifies the type of function passed to g_set_warning_handler().
108 @str: the warning message.
110 <!-- ##### MACRO G_CHANNEL_ERROR ##### -->
116 <!-- ##### MACRO G_HOOK_DEFERRED_DESTROY ##### -->
122 <!-- ##### MACRO G_IO_CHANNEL_DEFAULT_LINE_TERM ##### -->
124 One of %G_IO_CHANNEL_UNIX_LINE_TERM, %G_IO_CHANNEL_DOS_LINE_TERM,
125 or %G_IO_CHANNEL_MACINTOSH_LINE_TERM (unimplemented)
126 depending on the system type.
130 <!-- ##### MACRO G_IO_CHANNEL_DOS_LINE_TERM ##### -->
136 <!-- ##### MACRO G_IO_CHANNEL_ENCODE_RAW ##### -->
138 Encoding for nonbuffered IO. With this encoding, data must be
139 read using g_io_channel_read_chars(); the other functions will
144 <!-- ##### MACRO G_IO_CHANNEL_MACINTOSH_LINE_TERM ##### -->
150 <!-- ##### MACRO G_IO_CHANNEL_UNIX_LINE_TERM ##### -->
156 <!-- ##### MACRO NAME_MAX ##### -->
158 Provided for UNIX emulation on Windows; equivalent to UNIX macro
159 %NAME_MAX, which is the maximum length of a single path component.
160 i.e. just the <filename>foo</filename> in <filename>/usr/bin/foo</filename>.
164 <!-- ##### MACRO access ##### -->
170 <!-- ##### MACRO close ##### -->
176 <!-- ##### FUNCTION closedir ##### -->
178 Provided for UNIX emulation on Windows; see documentation for <function>closedir()</function>
185 <!-- ##### MACRO fdopen ##### -->
191 <!-- ##### FUNCTION g_channel_error_from_errno ##### -->
199 <!-- ##### FUNCTION g_channel_error_quark ##### -->
206 <!-- ##### FUNCTION g_convert_error_quark ##### -->
213 <!-- ##### FUNCTION g_io_channel_error_quark ##### -->
220 <!-- ##### VARIABLE g_log_domain_glib ##### -->
222 The log domain used for messages logged by GLib itself.
226 <!-- ##### FUNCTION g_main_add_poll ##### -->
228 Adds a file descriptor to be polled.
229 This is usually combined with g_source_add() to add an event source.
230 The event source's check function will typically test the revents
231 field in the #GPollFD struct and return TRUE if events need to be processed.
234 @fd: a #GPollFD, which is a file descriptor together with a bitwise
235 combination of #GIOCondition flags determining which events to poll for.
236 @priority: the priority of the poll, which should be the same as the priority
237 used for g_source_add() to ensure that the file descriptor is polled whenever
238 the results may be needed.
239 See #G_PRIORITY_DEFAULT, #G_PRIORITY_DEFAULT_IDLE, #G_PRIORITY_HIGH,
240 #G_PRIORITY_HIGH_IDLE, and #G_PRIORITY_LOW.
242 <!-- ##### FUNCTION g_main_context_get ##### -->
250 <!-- ##### FUNCTION g_main_loop_destroy ##### -->
257 <!-- ##### FUNCTION g_main_remove_poll ##### -->
259 Removes a file descriptor from the list being polled.
262 @fd: the #GPollFD to remove.
264 <!-- ##### FUNCTION g_main_win32_get_poll_func ##### -->
271 <!-- ##### FUNCTION g_mem_check ##### -->
273 Checks if the given memory has already been freed. If it has it outputs
275 To use this function you must configure glib with the flag
276 '--enable-mem-check=yes' before compiling.
279 @mem: the memory to check.
281 <!-- ##### FUNCTION g_scanner_stat_mode ##### -->
283 Gets the file attributes.
284 This is the <structfield>st_mode</structfield> field from the
285 <structname>stat</structname> structure. See the <function>stat()</function>
289 @filename: the file name.
290 @Returns: the file attributes.
292 <!-- ##### FUNCTION g_set_error_handler ##### -->
294 Sets the function to be called to handle error messages.
295 This function is deprecated in favour of the new logging facilities.
298 @func: the function to be called to handle error messages.
299 @Returns: the old error handler.
301 <!-- ##### FUNCTION g_set_message_handler ##### -->
303 Sets the function to be called to handle messages.
304 This function is deprecated in favour of the new logging facilities.
307 @func: the function to be called to handle normal messages.
308 @Returns: the old message handler.
310 <!-- ##### FUNCTION g_set_warning_handler ##### -->
312 Sets the function to be called to handle warning messages.
313 This function is deprecated in favour of the new logging facilities.
316 @func: the function to be called to handle warning messages.
317 @Returns: the old warning handler.
319 <!-- ##### FUNCTION g_source_add ##### -->
333 <!-- ##### FUNCTION g_source_connect ##### -->
343 <!-- ##### FUNCTION g_source_connect_indirect ##### -->
352 <!-- ##### FUNCTION g_source_remove_by_source_data ##### -->
354 Removes the first event source found with the given source data.
357 Event sources are sorted with the highest priority first. Sources with equal
358 priority are stored in the order in which they were added.
361 @source_data: the source data, which contains information specific to the
363 @Returns: TRUE if an event source was found and removed.
365 <!-- ##### FUNCTION g_static_private_get_for_thread ##### -->
374 <!-- ##### FUNCTION g_static_private_set_for_thread ##### -->
384 <!-- ##### MACRO g_string ##### -->
386 Turns the argument into a string literal by using the '#' stringizing operator.
389 @x: text to convert to a literal string.
391 <!-- ##### MACRO getcwd ##### -->
397 <!-- ##### MACRO getpid ##### -->
403 <!-- ##### MACRO lseek ##### -->
409 <!-- ##### MACRO open ##### -->
415 <!-- ##### FUNCTION opendir ##### -->
417 Provided for UNIX emulation on Windows; see documentation for <function>opendir()</function>
424 <!-- ##### MACRO pclose ##### -->
430 <!-- ##### MACRO popen ##### -->
436 <!-- ##### MACRO read ##### -->
442 <!-- ##### MACRO readdir ##### -->
444 Provided for UNIX emulation on Windows; see documentation for <function>readdir()</function>
449 <!-- ##### FUNCTION rewinddir ##### -->
451 Provided for UNIX emulation on Windows; see documentation for <function>rewinddir()</function>
457 <!-- ##### MACRO write ##### -->