1 <!-- ##### FUNCTION g_date_get_day ##### -->
3 Return the day of the month; the #GDate must be valid.
\r
6 @date: Date to extract the day of the month from
7 @Returns: Day of the month
9 <!-- ##### FUNCTION g_markup_parse_context_parse ##### -->
20 <!-- ##### STRUCT GSource ##### -->
26 <!-- ##### FUNCTION g_source_connect_indirect ##### -->
35 <!-- ##### FUNCTION g_date_get_sunday_weeks_in_year ##### -->
37 Return the number of weeks in the year, where weeks are taken to start
\r
38 on Sunday. Will be 52 or 53. Date must be valid. (Years always have 52
\r
39 7-day periods, plus 1 or 2 extra days depending on whether it's a leap
\r
40 year. This function is basically telling you how many Sundays are in
\r
41 the year, i.e. there are 53 Sundays if one of the extra days happens
\r
45 @year: Year to count weeks in
46 @Returns: Number of weeks
48 <!-- ##### FUNCTION g_locale_to_utf8 ##### -->
57 <!-- ##### FUNCTION g_iconv_close ##### -->
65 <!-- ##### MACRO popen ##### -->
71 <!-- ##### FUNCTION g_source_set_can_recurse ##### -->
79 <!-- ##### FUNCTION g_date_get_days_in_month ##### -->
81 Return the number of days in a month, taking leap years into account.
\r
86 @Returns: Number of days in @month during the year @year.
88 <!-- ##### FUNCTION g_date_get_julian ##### -->
90 Accessor, returns the Julian day or "serial number" of the #GDate. The
\r
91 Julian day is simply the number of days since January 1, Year 1; i.e.,
\r
92 January 1, Year 1 is Julian day 1; January 2, Year 1 is Julian day 2,
\r
93 etc. Date must be valid.
\r
96 @date: Date to extract the Julian day from
99 <!-- ##### MACRO pclose ##### -->
105 <!-- ##### FUNCTION g_main_add_poll ##### -->
107 Adds a file descriptor to be polled.
108 This is usually combined with g_source_add() to add an event source.
109 The event source's check function will typically test the revents
110 field in the #GPollFD struct and return TRUE if events need to be processed.
113 @fd: a #GPollFD, which is a file descriptor together with a bitwise
114 combination of #GIOCondition flags determining which events to poll for.
115 @priority: the priority of the poll, which should be the same as the priority
116 used for g_source_add() to ensure that the file descriptor is polled whenever
117 the results may be needed.
118 See #G_PRIORITY_DEFAULT, #G_PRIORITY_DEFAULT_IDLE, #G_PRIORITY_HIGH,
119 #G_PRIORITY_HIGH_IDLE, and #G_PRIORITY_LOW.
121 <!-- ##### ENUM GMarkupError ##### -->
126 @G_MARKUP_ERROR_BAD_UTF8: text being parsed was not valid UTF-8
127 @G_MARKUP_ERROR_EMPTY: document contained nothing, or only whitespace
128 @G_MARKUP_ERROR_PARSE: document was ill-formed
129 @G_MARKUP_ERROR_UNKNOWN_ELEMENT: error should be set by #GMarkupParser functions; element wasn't known
130 @G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE: error should be set by #GMarkupParser functions; attribute wasn't known
131 @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
133 <!-- ##### FUNCTION g_main_context_add_poll ##### -->
142 <!-- ##### MACRO lseek ##### -->
148 <!-- ##### FUNCTION g_string_new_len ##### -->
157 <!-- ##### STRUCT GSourceCallbackFuncs ##### -->
166 <!-- ##### FUNCTION g_array_sort ##### -->
174 <!-- ##### FUNCTION g_main_context_find_source_by_funcs_user_data ##### -->
185 <!-- ##### FUNCTION g_markup_parse_context_free ##### -->
192 <!-- ##### STRUCT GMarkupParseContext ##### -->
198 <!-- ##### FUNCTION g_ptr_array_sort ##### -->
206 <!-- ##### FUNCTION g_main_context_query ##### -->
218 <!-- ##### FUNCTION g_iconv_open ##### -->
227 <!-- ##### FUNCTION g_source_new ##### -->
236 <!-- ##### FUNCTION g_date_get_monday_week_of_year ##### -->
238 Return the week of the year, where weeks are understood to start on
\r
239 Monday. If the date is before the first Monday of the year, return
\r
240 0. Date must be valid.
\r
244 @Returns: Week of the year
246 <!-- ##### MACRO getpid ##### -->
252 <!-- ##### FUNCTION g_source_remove_by_source_data ##### -->
254 Removes the first event source found with the given source data.
257 Event sources are sorted with the highest priority first. Sources with equal
258 priority are stored in the order in which they were added.
261 @source_data: the source data, which contains information specific to the
263 @Returns: TRUE if an event source was found and removed.
265 <!-- ##### MACRO close ##### -->
271 <!-- ##### FUNCTION g_source_get_id ##### -->
279 <!-- ##### FUNCTION g_date_get_year ##### -->
281 Accessor; returns the year of a #GDate. The date must be valid.
\r
285 @Returns: Year in which the date falls
287 <!-- ##### FUNCTION g_mkstemp ##### -->
295 <!-- ##### FUNCTION g_date_get_month ##### -->
297 Accessor for the month of the year. Date must be valid.
\r
300 @date: Date to get the month from
301 @Returns: A #GDateMonth
303 <!-- ##### FUNCTION g_main_context_get_poll_func ##### -->
311 <!-- ##### FUNCTION g_source_add_poll ##### -->
319 <!-- ##### MACRO fdopen ##### -->
325 <!-- ##### USER_FUNCTION GCompletionStrcmpFunc ##### -->
334 <!-- ##### FUNCTION g_source_get_current_time ##### -->
342 <!-- ##### FUNCTION g_main_loop_new ##### -->
351 <!-- ##### FUNCTION g_iconv ##### -->
363 <!-- ##### FUNCTION g_source_ref ##### -->
371 <!-- ##### FUNCTION g_byte_array_sort ##### -->
379 <!-- ##### MACRO G_MODULE_SUFFIX ##### -->
381 Expands to the proper shared library suffix for the current platform
382 without the leading dot. For the most Unices and Linux this is "so",
383 for some HPUX versions this is "sl" and for Windows this is "dll".
387 <!-- ##### FUNCTION g_markup_parse_context_get_position ##### -->
396 <!-- ##### FUNCTION g_locale_from_utf8 ##### -->
405 <!-- ##### FUNCTION g_main_loop_is_running ##### -->
413 <!-- ##### FUNCTION g_main_context_remove_poll ##### -->
421 <!-- ##### FUNCTION g_byte_array_sort_with_data ##### -->
430 <!-- ##### FUNCTION g_markup_parse_context_new ##### -->
441 <!-- ##### FUNCTION g_source_get_can_recurse ##### -->
449 <!-- ##### FUNCTION g_main_context_get ##### -->
457 <!-- ##### FUNCTION g_source_remove_poll ##### -->
465 <!-- ##### FUNCTION g_date_get_day_of_year ##### -->
467 Return the day of the year, where Jan 1 is the first day of the
\r
468 year. Date must be valid.
\r
471 @date: Date to extract day of year from
472 @Returns: Day of the year
474 <!-- ##### FUNCTION g_tree_new_with_data ##### -->
483 <!-- ##### FUNCTION g_source_get_priority ##### -->
491 <!-- ##### FUNCTION g_source_connect ##### -->
501 <!-- ##### FUNCTION g_main_context_iteration ##### -->
510 <!-- ##### FUNCTION g_main_context_dispatch ##### -->
517 <!-- ##### FUNCTION g_main_loop_quit ##### -->
524 <!-- ##### FUNCTION g_main_context_prepare ##### -->
533 <!-- ##### FUNCTION g_date_get_sunday_week_of_year ##### -->
535 Week of the year during which this date falls, if weeks are understood
\r
536 to being on Sunday. Date must be valid. Can return 0 if the day is
\r
537 before the first Sunday of the year.
\r
541 @Returns: Week number
543 <!-- ##### FUNCTION g_source_set_priority ##### -->
551 <!-- ##### FUNCTION g_ptr_array_sort_with_data ##### -->
560 <!-- ##### FUNCTION g_list_sort_with_data ##### -->
570 <!-- ##### FUNCTION g_date_get_monday_weeks_in_year ##### -->
572 Return the number of weeks in the year, where weeks are taken to start
\r
573 on Monday. Will be 52 or 53. Date must be valid. (Years always have 52
\r
574 7-day periods, plus 1 or 2 extra days depending on whether it's a leap
\r
575 year. This function is basically telling you how many Mondays are in
\r
576 the year, i.e. there are 53 Mondays if one of the extra days happens
\r
581 @Returns: Number of Mondays in the year
583 <!-- ##### FUNCTION g_main_context_find_source_by_user_data ##### -->
592 <!-- ##### FUNCTION g_main_context_set_poll_func ##### -->
600 <!-- ##### MACRO getcwd ##### -->
606 <!-- ##### MACRO g_rand_boolean ##### -->
608 Return a random #gboolean from @rand. This corresponds to a unbiased
613 @Returns: a random #gboolean.
615 <!-- ##### FUNCTION g_io_create_watch ##### -->
624 <!-- ##### FUNCTION g_source_unref ##### -->
631 <!-- ##### MACRO write ##### -->
637 <!-- ##### FUNCTION g_main_context_find_source_by_id ##### -->
646 <!-- ##### FUNCTION g_main_remove_poll ##### -->
648 Removes a file descriptor from the list being polled.
651 @fd: the #GPollFD to remove.
653 <!-- ##### MACRO access ##### -->
659 <!-- ##### FUNCTION g_idle_source_new ##### -->
666 <!-- ##### MACRO g_string ##### -->
668 Turns the argument into a string literal by using the '#' stringizing operator.
671 @x: text to convert to a literal string.
673 <!-- ##### FUNCTION g_main_context_pending ##### -->
681 <!-- ##### FUNCTION g_main_win32_get_poll_func ##### -->
688 <!-- ##### FUNCTION g_main_loop_run ##### -->
695 <!-- ##### FUNCTION g_date_get_weekday ##### -->
697 Returns the day of the week for a #GDate. The date must be valid.
\r
701 @Returns: Day of the week as a #GDateWeekday
703 <!-- ##### MACRO read ##### -->
709 <!-- ##### FUNCTION g_array_sort_with_data ##### -->
718 <!-- ##### MACRO G_MARKUP_ERROR ##### -->
724 <!-- ##### FUNCTION g_main_context_default ##### -->
731 <!-- ##### ENUM GMarkupParseFlags ##### -->
733 There are no flags right now
736 @G_MARKUP_DO_NOT_USE_THIS_UNSUPPORTED_FLAG:
738 <!-- ##### MACRO g_random_boolean ##### -->
740 Return a random #gboolean. This corresponds to a unbiased coin toss.
743 @Returns: a random #gboolean.
745 <!-- ##### FUNCTION g_slist_sort_with_data ##### -->
755 <!-- ##### FUNCTION g_markup_parse_context_end_parse ##### -->
764 <!-- ##### FUNCTION g_source_get_context ##### -->
772 <!-- ##### FUNCTION g_timeout_source_new ##### -->
780 <!-- ##### STRUCT GMarkupParser ##### -->
782 Any of the fields in #GMarkupParser can be %NULL, in which case they
783 will be ignored. Except for the @error function, any of these
784 callbacks can set an error; in particular the
785 %G_MARKUP_ERROR_UNKNOWN_ELEMENT, %G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE,
786 and %G_MARKUP_ERROR_INVALID_CONTENT errors are intended to be set
787 from these callbacks. If you set an error from a callback,
788 g_markup_parse_context_parse() will report that error back to its caller.
791 @start_element: Callback to invoke when the opening tag of an element
793 @end_element: Callback to invoke when the closing tag of an element is seen
794 @text: Callback to invoke when some text is seen (text is always
796 @passthrough: Callback to invoke for comments and processing
797 instructions; if you're re-writing the parsed document, write the
798 passthrough text back out in the same position
799 @error: Callback to invoke when an error occurs
801 <!-- ##### USER_FUNCTION GEqualFunc ##### -->
803 Specifies the type of a function used to test two values for
804 equality. The function should return TRUE if both values are equal and
809 @b: a value to compare with.
810 @Returns: TRUE if @a = @b; FALSE otherwise.
812 <!-- ##### FUNCTION g_main_loop_destroy ##### -->
819 <!-- ##### FUNCTION g_file_open_tmp ##### -->
829 <!-- ##### STRUCT GMainContext ##### -->
835 <!-- ##### FUNCTION g_main_context_check ##### -->
846 <!-- ##### FUNCTION g_convert_error_quark ##### -->
853 <!-- ##### FUNCTION g_source_destroy ##### -->
860 <!-- ##### FUNCTION g_markup_escape_text ##### -->
869 <!-- ##### MACRO open ##### -->