1 <!-- ##### FUNCTION g_markup_parse_context_parse ##### -->
12 <!-- ##### STRUCT GSource ##### -->
18 <!-- ##### FUNCTION g_source_connect_indirect ##### -->
27 <!-- ##### FUNCTION g_locale_to_utf8 ##### -->
36 <!-- ##### FUNCTION g_iconv_close ##### -->
44 <!-- ##### MACRO popen ##### -->
50 <!-- ##### FUNCTION g_source_set_can_recurse ##### -->
58 <!-- ##### MACRO pclose ##### -->
64 <!-- ##### FUNCTION g_main_add_poll ##### -->
66 Adds a file descriptor to be polled.
67 This is usually combined with g_source_add() to add an event source.
68 The event source's check function will typically test the revents
69 field in the #GPollFD struct and return TRUE if events need to be processed.
72 @fd: a #GPollFD, which is a file descriptor together with a bitwise
73 combination of #GIOCondition flags determining which events to poll for.
74 @priority: the priority of the poll, which should be the same as the priority
75 used for g_source_add() to ensure that the file descriptor is polled whenever
76 the results may be needed.
77 See #G_PRIORITY_DEFAULT, #G_PRIORITY_DEFAULT_IDLE, #G_PRIORITY_HIGH,
78 #G_PRIORITY_HIGH_IDLE, and #G_PRIORITY_LOW.
80 <!-- ##### ENUM GMarkupError ##### -->
85 @G_MARKUP_ERROR_BAD_UTF8: text being parsed was not valid UTF-8
86 @G_MARKUP_ERROR_EMPTY: document contained nothing, or only whitespace
87 @G_MARKUP_ERROR_PARSE: document was ill-formed
88 @G_MARKUP_ERROR_UNKNOWN_ELEMENT: error should be set by #GMarkupParser functions; element wasn't known
89 @G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE: error should be set by #GMarkupParser functions; attribute wasn't known
90 @G_MARKUP_ERROR_INVALID_CONTENT: error should be set by #GMarkupParser functions; something was wrong with contents of the document, e.g. invalid attribute value
92 <!-- ##### FUNCTION g_main_context_add_poll ##### -->
101 <!-- ##### MACRO lseek ##### -->
107 <!-- ##### FUNCTION g_string_new_len ##### -->
116 <!-- ##### STRUCT GSourceCallbackFuncs ##### -->
125 <!-- ##### FUNCTION g_array_sort ##### -->
133 <!-- ##### FUNCTION g_main_context_find_source_by_funcs_user_data ##### -->
144 <!-- ##### FUNCTION g_markup_parse_context_free ##### -->
151 <!-- ##### STRUCT GMarkupParseContext ##### -->
157 <!-- ##### FUNCTION g_ptr_array_sort ##### -->
165 <!-- ##### FUNCTION g_main_context_query ##### -->
177 <!-- ##### FUNCTION g_iconv_open ##### -->
186 <!-- ##### FUNCTION g_source_new ##### -->
195 <!-- ##### MACRO getpid ##### -->
201 <!-- ##### FUNCTION g_source_remove_by_source_data ##### -->
203 Removes the first event source found with the given source data.
206 Event sources are sorted with the highest priority first. Sources with equal
207 priority are stored in the order in which they were added.
210 @source_data: the source data, which contains information specific to the
212 @Returns: TRUE if an event source was found and removed.
214 <!-- ##### MACRO close ##### -->
220 <!-- ##### FUNCTION g_source_get_id ##### -->
228 <!-- ##### FUNCTION g_mkstemp ##### -->
236 <!-- ##### FUNCTION g_main_context_get_poll_func ##### -->
244 <!-- ##### FUNCTION g_source_add_poll ##### -->
252 <!-- ##### MACRO fdopen ##### -->
258 <!-- ##### FUNCTION g_source_get_current_time ##### -->
266 <!-- ##### USER_FUNCTION GCompletionStrcmpFunc ##### -->
275 <!-- ##### FUNCTION g_main_loop_new ##### -->
284 <!-- ##### FUNCTION g_iconv ##### -->
296 <!-- ##### FUNCTION g_source_ref ##### -->
304 <!-- ##### FUNCTION g_byte_array_sort ##### -->
312 <!-- ##### FUNCTION g_markup_parse_context_get_position ##### -->
321 <!-- ##### FUNCTION g_locale_from_utf8 ##### -->
330 <!-- ##### FUNCTION g_main_loop_is_running ##### -->
338 <!-- ##### FUNCTION g_main_context_remove_poll ##### -->
346 <!-- ##### FUNCTION g_byte_array_sort_with_data ##### -->
355 <!-- ##### FUNCTION g_markup_parse_context_new ##### -->
366 <!-- ##### FUNCTION g_source_get_can_recurse ##### -->
374 <!-- ##### FUNCTION g_main_context_get ##### -->
382 <!-- ##### FUNCTION g_source_remove_poll ##### -->
390 <!-- ##### FUNCTION g_tree_new_with_data ##### -->
399 <!-- ##### FUNCTION g_source_get_priority ##### -->
407 <!-- ##### FUNCTION g_source_connect ##### -->
417 <!-- ##### FUNCTION g_main_context_iteration ##### -->
426 <!-- ##### FUNCTION g_main_context_dispatch ##### -->
433 <!-- ##### FUNCTION g_main_loop_quit ##### -->
440 <!-- ##### FUNCTION g_main_context_prepare ##### -->
449 <!-- ##### FUNCTION g_source_set_priority ##### -->
457 <!-- ##### FUNCTION g_ptr_array_sort_with_data ##### -->
466 <!-- ##### FUNCTION g_list_sort_with_data ##### -->
476 <!-- ##### FUNCTION g_main_context_find_source_by_user_data ##### -->
485 <!-- ##### FUNCTION g_main_context_set_poll_func ##### -->
493 <!-- ##### MACRO getcwd ##### -->
499 <!-- ##### FUNCTION g_io_create_watch ##### -->
508 <!-- ##### FUNCTION g_source_unref ##### -->
515 <!-- ##### MACRO write ##### -->
521 <!-- ##### FUNCTION g_main_context_find_source_by_id ##### -->
530 <!-- ##### FUNCTION g_main_remove_poll ##### -->
532 Removes a file descriptor from the list being polled.
535 @fd: the #GPollFD to remove.
537 <!-- ##### MACRO access ##### -->
543 <!-- ##### MACRO g_string ##### -->
545 Turns the argument into a string literal by using the '#' stringizing operator.
548 @x: text to convert to a literal string.
550 <!-- ##### FUNCTION g_idle_source_new ##### -->
557 <!-- ##### FUNCTION g_main_context_pending ##### -->
565 <!-- ##### FUNCTION g_main_win32_get_poll_func ##### -->
572 <!-- ##### FUNCTION g_main_loop_run ##### -->
579 <!-- ##### MACRO read ##### -->
585 <!-- ##### FUNCTION g_array_sort_with_data ##### -->
594 <!-- ##### MACRO G_MARKUP_ERROR ##### -->
600 <!-- ##### FUNCTION g_main_context_default ##### -->
607 <!-- ##### ENUM GMarkupParseFlags ##### -->
609 There are no flags right now
612 @G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG:
614 <!-- ##### FUNCTION g_slist_sort_with_data ##### -->
624 <!-- ##### FUNCTION g_markup_parse_context_end_parse ##### -->
633 <!-- ##### FUNCTION g_source_get_context ##### -->
641 <!-- ##### FUNCTION g_timeout_source_new ##### -->
649 <!-- ##### STRUCT GMarkupParser ##### -->
651 Any of the fields in #GMarkupParser can be %NULL, in which case they
652 will be ignored. Except for the @error function, any of these
653 callbacks can set an error; in particular the
654 %G_MARKUP_ERROR_UNKNOWN_ELEMENT, %G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE,
655 and %G_MARKUP_ERROR_INVALID_CONTENT errors are intended to be set
656 from these callbacks. If you set an error from a callback,
657 g_markup_parse_context_parse() will report that error back to its caller.
660 @start_element: Callback to invoke when the opening tag of an element
662 @end_element: Callback to invoke when the closing tag of an element is seen
663 @text: Callback to invoke when some text is seen (text is always
665 @passthrough: Callback to invoke for comments and processing
666 instructions; if you're re-writing the parsed document, write the
667 passthrough text back out in the same position
668 @error: Callback to invoke when an error occurs
670 <!-- ##### USER_FUNCTION GEqualFunc ##### -->
672 Specifies the type of a function used to test two values for
673 equality. The function should return TRUE if both values are equal and
678 @b: a value to compare with.
679 @Returns: TRUE if @a = @b; FALSE otherwise.
681 <!-- ##### FUNCTION g_main_loop_destroy ##### -->
688 <!-- ##### FUNCTION g_file_open_tmp ##### -->
698 <!-- ##### STRUCT GMainContext ##### -->
704 <!-- ##### FUNCTION g_main_context_check ##### -->
715 <!-- ##### FUNCTION g_convert_error_quark ##### -->
722 <!-- ##### FUNCTION g_source_destroy ##### -->
729 <!-- ##### FUNCTION g_markup_escape_text ##### -->
738 <!-- ##### MACRO open ##### -->