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 <!-- ##### VARIABLE g_log_domain_glib ##### -->
205 The log domain used for messages logged by GLib itself.
209 <!-- ##### FUNCTION g_main_add_poll ##### -->
211 Adds a file descriptor to be polled.
212 This is usually combined with g_source_add() to add an event source.
213 The event source's check function will typically test the revents
214 field in the #GPollFD struct and return TRUE if events need to be processed.
217 @fd: a #GPollFD, which is a file descriptor together with a bitwise
218 combination of #GIOCondition flags determining which events to poll for.
219 @priority: the priority of the poll, which should be the same as the priority
220 used for g_source_add() to ensure that the file descriptor is polled whenever
221 the results may be needed.
222 See #G_PRIORITY_DEFAULT, #G_PRIORITY_DEFAULT_IDLE, #G_PRIORITY_HIGH,
223 #G_PRIORITY_HIGH_IDLE, and #G_PRIORITY_LOW.
225 <!-- ##### FUNCTION g_main_context_get ##### -->
233 <!-- ##### FUNCTION g_main_loop_destroy ##### -->
240 <!-- ##### FUNCTION g_main_remove_poll ##### -->
242 Removes a file descriptor from the list being polled.
245 @fd: the #GPollFD to remove.
247 <!-- ##### FUNCTION g_main_win32_get_poll_func ##### -->
254 <!-- ##### FUNCTION g_mem_check ##### -->
256 Checks if the given memory has already been freed. If it has it outputs
258 To use this function you must configure glib with the flag
259 '--enable-mem-check=yes' before compiling.
262 @mem: the memory to check.
264 <!-- ##### FUNCTION g_scanner_stat_mode ##### -->
266 Gets the file attributes.
267 This is the <structfield>st_mode</structfield> field from the
268 <structname>stat</structname> structure. See the <function>stat()</function>
272 @filename: the file name.
273 @Returns: the file attributes.
275 <!-- ##### FUNCTION g_set_error_handler ##### -->
277 Sets the function to be called to handle error messages.
278 This function is deprecated in favour of the new logging facilities.
281 @func: the function to be called to handle error messages.
282 @Returns: the old error handler.
284 <!-- ##### FUNCTION g_set_message_handler ##### -->
286 Sets the function to be called to handle messages.
287 This function is deprecated in favour of the new logging facilities.
290 @func: the function to be called to handle normal messages.
291 @Returns: the old message handler.
293 <!-- ##### FUNCTION g_set_warning_handler ##### -->
295 Sets the function to be called to handle warning messages.
296 This function is deprecated in favour of the new logging facilities.
299 @func: the function to be called to handle warning messages.
300 @Returns: the old warning handler.
302 <!-- ##### FUNCTION g_source_add ##### -->
316 <!-- ##### FUNCTION g_source_connect ##### -->
326 <!-- ##### FUNCTION g_source_connect_indirect ##### -->
335 <!-- ##### FUNCTION g_source_remove_by_source_data ##### -->
337 Removes the first event source found with the given source data.
340 Event sources are sorted with the highest priority first. Sources with equal
341 priority are stored in the order in which they were added.
344 @source_data: the source data, which contains information specific to the
346 @Returns: TRUE if an event source was found and removed.
348 <!-- ##### FUNCTION g_static_private_get_for_thread ##### -->
357 <!-- ##### FUNCTION g_static_private_set_for_thread ##### -->
367 <!-- ##### MACRO g_string ##### -->
369 Turns the argument into a string literal by using the '#' stringizing operator.
372 @x: text to convert to a literal string.
374 <!-- ##### MACRO getcwd ##### -->
380 <!-- ##### MACRO getpid ##### -->
386 <!-- ##### MACRO lseek ##### -->
392 <!-- ##### MACRO open ##### -->
398 <!-- ##### MACRO pclose ##### -->
404 <!-- ##### MACRO popen ##### -->
410 <!-- ##### MACRO read ##### -->
416 <!-- ##### MACRO readdir ##### -->
418 Provided for UNIX emulation on Windows; see documentation for <function>readdir()</function>
423 <!-- ##### MACRO write ##### -->