1 <INCLUDE>glib.h</INCLUDE>
4 <TITLE>Basic Types</TITLE>
49 <TITLE>Limits of Basic Types</TITLE>
98 <TITLE>Version Information</TITLE>
115 <TITLE>Standard Macros</TITLE>
126 G_SEARCHPATH_SEPARATOR
127 G_SEARCHPATH_SEPARATOR_S
158 <TITLE>Type Conversion Macros</TITLE>
159 <FILE>type_conversion</FILE>
171 <TITLE>Byte Order Macros</TITLE>
172 <FILE>byte_order</FILE>
258 GUINT16_SWAP_LE_BE_CONSTANT
259 GUINT32_SWAP_LE_BE_CONSTANT
260 GUINT64_SWAP_LE_BE_CONSTANT
261 GUINT16_SWAP_LE_BE_IA32
262 GUINT32_SWAP_LE_BE_IA32
263 GUINT64_SWAP_LE_BE_IA32
264 GUINT16_SWAP_LE_BE_IA64
265 GUINT32_SWAP_LE_BE_IA64
266 GUINT64_SWAP_LE_BE_IA64
267 GUINT32_SWAP_LE_BE_X86_64
268 GUINT64_SWAP_LE_BE_X86_64
273 <TITLE>Numerical Definitions</TITLE>
274 <FILE>numerical</FILE>
276 G_IEEE754_DOUBLE_BIAS
293 <TITLE>Miscellaneous Macros</TITLE>
294 <FILE>macros_misc</FILE>
326 G_GNUC_PRETTY_FUNCTION
328 G_HAVE_GNUC_VISIBILITY
367 <TITLE>Error Reporting</TITLE>
368 <FILE>error_reporting</FILE>
381 <TITLE>The Main Event Loop</TITLE>
389 g_main_loop_is_running
390 g_main_loop_get_context
401 G_PRIORITY_DEFAULT_IDLE
409 g_main_context_default
410 g_main_context_iteration
412 g_main_context_pending
414 g_main_context_find_source_by_id
415 g_main_context_find_source_by_user_data
416 g_main_context_find_source_by_funcs_user_data
417 g_main_context_wakeup
418 g_main_context_acquire
419 g_main_context_release
421 g_main_context_prepare
424 g_main_context_dispatch
425 g_main_context_set_poll_func
426 g_main_context_get_poll_func
428 g_main_context_add_poll
429 g_main_context_remove_poll
442 g_idle_remove_by_data
447 g_child_watch_source_new
449 g_child_watch_add_full
463 g_source_set_priority
464 g_source_get_priority
465 g_source_set_can_recurse
466 g_source_get_can_recurse
469 g_source_set_callback
471 g_source_set_callback_indirect
474 g_source_get_current_time
476 g_source_remove_by_funcs_user_data
477 g_source_remove_by_user_data
496 <TITLE>Threads</TITLE>
501 G_THREADS_IMPL_SOLARIS
521 g_thread_set_priority
538 g_static_mutex_trylock
539 g_static_mutex_unlock
540 g_static_mutex_get_mutex
553 G_STATIC_REC_MUTEX_INIT
554 g_static_rec_mutex_init
555 g_static_rec_mutex_lock
556 g_static_rec_mutex_trylock
557 g_static_rec_mutex_unlock
558 g_static_rec_mutex_lock_full
559 g_static_rec_mutex_unlock_full
560 g_static_rec_mutex_free
564 G_STATIC_RW_LOCK_INIT
565 g_static_rw_lock_init
566 g_static_rw_lock_reader_lock
567 g_static_rw_lock_reader_trylock
568 g_static_rw_lock_reader_unlock
569 g_static_rw_lock_writer_lock
570 g_static_rw_lock_writer_trylock
571 g_static_rw_lock_writer_unlock
572 g_static_rw_lock_free
591 G_STATIC_PRIVATE_INIT
592 g_static_private_init
595 g_static_private_free
607 g_static_mutex_get_mutex_impl
608 g_static_mutex_get_mutex_impl_shortcut
610 g_thread_init_with_errorcheck_mutexes
614 g_thread_use_default_impl
615 g_threads_got_initialized
616 g_thread_functions_for_glib_use
623 <TITLE>Thread Pools</TITLE>
624 <FILE>thread_pools</FILE>
628 g_thread_pool_set_max_threads
629 g_thread_pool_get_max_threads
630 g_thread_pool_get_num_threads
631 g_thread_pool_unprocessed
633 g_thread_pool_set_max_unused_threads
634 g_thread_pool_get_max_unused_threads
635 g_thread_pool_get_num_unused_threads
636 g_thread_pool_stop_unused_threads
640 <TITLE>Asynchronous Queues</TITLE>
641 <FILE>async_queues</FILE>
648 g_async_queue_try_pop
649 g_async_queue_timed_pop
655 g_async_queue_ref_unlocked
656 g_async_queue_unref_and_unlock
657 g_async_queue_push_unlocked
658 g_async_queue_pop_unlocked
659 g_async_queue_try_pop_unlocked
660 g_async_queue_timed_pop_unlocked
661 g_async_queue_length_unlocked
665 <TITLE>Atomic Operations</TITLE>
666 <FILE>atomic_operations</FILE>
669 g_atomic_int_exchange_and_add
670 g_atomic_int_compare_and_exchange
672 g_atomic_pointer_compare_and_exchange
674 g_atomic_int_dec_and_test
678 <TITLE>IO Channels</TITLE>
679 <FILE>iochannels</FILE>
683 g_io_channel_unix_new
684 g_io_channel_unix_get_fd
690 g_io_channel_new_file
691 g_io_channel_read_chars
692 g_io_channel_read_unichar
693 g_io_channel_read_line
694 g_io_channel_read_line_string
695 g_io_channel_read_to_end
696 g_io_channel_write_chars
697 g_io_channel_write_unichar
699 g_io_channel_seek_position
701 g_io_channel_shutdown
707 g_io_channel_error_from_errno
724 g_io_channel_get_buffer_size
725 g_io_channel_set_buffer_size
726 g_io_channel_get_buffer_condition
727 g_io_channel_get_flags
728 g_io_channel_set_flags
730 g_io_channel_get_line_term
731 g_io_channel_set_line_term
732 g_io_channel_get_buffered
733 g_io_channel_set_buffered
734 g_io_channel_get_encoding
735 g_io_channel_set_encoding
736 g_io_channel_get_close_on_unref
737 g_io_channel_set_close_on_unref
740 g_io_channel_win32_new_fd
741 g_io_channel_win32_new_messages
742 g_io_channel_win32_new_socket
743 g_io_channel_win32_poll
744 g_io_channel_win32_make_pollfd
745 g_io_channel_win32_get_fd
755 g_io_channel_error_quark
760 <TITLE>Memory Allocation</TITLE>
787 g_mem_is_system_malloc
790 glib_mem_profiler_table
795 <TITLE>Warnings and Assertions</TITLE>
796 <FILE>warnings</FILE>
803 g_set_printerr_handler
809 g_return_val_if_reached
817 g_on_error_stack_trace
823 g_return_if_fail_warning
828 <TITLE>Glob-style pattern matching</TITLE>
829 <FILE>patterns</FILE>
835 g_pattern_match_string
836 g_pattern_match_simple
840 <TITLE>Message Logging</TITLE>
841 <FILE>messages</FILE>
844 G_LOG_LEVEL_USER_SHIFT
860 g_log_set_always_fatal
862 g_log_default_handler
863 g_log_set_default_handler
867 <TITLE>Timers</TITLE>
880 <TITLE>Spawning Processes</TITLE>
886 g_spawn_async_with_pipes
889 g_spawn_command_line_async
890 g_spawn_command_line_sync
897 <TITLE>Simple XML Subset Parser</TITLE>
905 g_markup_printf_escaped
906 g_markup_vprintf_escaped
907 g_markup_parse_context_end_parse
908 g_markup_parse_context_free
909 g_markup_parse_context_get_position
910 g_markup_parse_context_get_element
911 g_markup_parse_context_new
912 g_markup_parse_context_parse
919 <TITLE>Shell-related Utilities</TITLE>
932 <TITLE>Commandline option parser</TITLE>
939 g_option_context_free
940 g_option_context_parse
941 g_option_context_set_help_enabled
942 g_option_context_get_help_enabled
943 g_option_context_set_ignore_unknown_options
944 g_option_context_get_ignore_unknown_options
949 g_option_context_add_main_entries
951 g_option_context_add_group
952 g_option_context_set_main_group
953 g_option_context_get_main_group
956 g_option_group_add_entries
958 g_option_group_set_parse_hooks
960 g_option_group_set_error_hook
962 g_option_group_set_translate_func
963 g_option_group_set_translation_domain
970 <TITLE>File Utilities</TITLE>
971 <FILE>fileutils</FILE>
972 <INCLUDE>glib.h,glib/gstdio.h</INCLUDE>
976 g_file_error_from_errno
1001 <SUBSECTION Private>
1007 <TITLE>String Utility Functions</TITLE>
1008 <FILE>string_utils</FILE>
1009 <INCLUDE>glib.h,glib/gprintf.h</INCLUDE>
1037 g_printf_string_upper_bound
1054 g_ascii_xdigit_value
1085 G_ASCII_DTOSTR_BUF_SIZE
1114 <SUBSECTION Private>
1119 <TITLE>Date and Time Functions</TITLE>
1159 g_date_subtract_days
1161 g_date_subtract_months
1163 g_date_subtract_years
1175 g_date_get_day_of_year
1178 g_date_get_days_in_month
1179 g_date_is_first_of_month
1180 g_date_is_last_of_month
1182 g_date_get_monday_week_of_year
1183 g_date_get_monday_weeks_in_year
1184 g_date_get_sunday_week_of_year
1185 g_date_get_sunday_weeks_in_year
1186 g_date_get_iso8601_week_of_year
1199 g_date_valid_weekday
1201 <SUBSECTION Private>
1208 g_date_monday_week_of_year
1209 g_date_sunday_week_of_year
1210 g_date_days_in_month
1211 g_date_monday_weeks_in_year
1212 g_date_sunday_weeks_in_year
1216 <TITLE>Hook Functions</TITLE>
1227 g_hook_list_invoke_check
1230 g_hook_list_marshal_check
1231 GHookCheckMarshaller
1238 g_hook_insert_before
1239 g_hook_insert_sorted
1249 g_hook_find_func_data
1257 G_HOOK_FLAG_USER_SHIFT
1276 <TITLE>Miscellaneous Utility Functions</TITLE>
1277 <FILE>misc_utils</FILE>
1278 g_get_application_name
1279 g_set_application_name
1287 g_get_user_cache_dir
1289 g_get_user_config_dir
1290 g_get_system_data_dirs
1291 g_get_system_config_dirs
1307 g_find_program_in_path
1315 g_spaced_primes_closest
1321 g_parse_debug_string
1334 <SUBSECTION Private>
1342 <TITLE>Lexical Scanner</TITLE>
1343 <FILE>scanner</FILE>
1349 g_scanner_input_file
1350 g_scanner_sync_file_offset
1351 g_scanner_input_text
1352 g_scanner_peek_next_token
1353 g_scanner_get_next_token
1357 g_scanner_cur_position
1364 g_scanner_scope_add_symbol
1365 g_scanner_scope_foreach_symbol
1366 g_scanner_scope_lookup_symbol
1367 g_scanner_scope_remove_symbol
1370 g_scanner_freeze_symbol_table
1371 g_scanner_thaw_symbol_table
1372 g_scanner_lookup_symbol
1377 g_scanner_unexp_token
1394 g_scanner_add_symbol
1395 g_scanner_remove_symbol
1396 g_scanner_foreach_symbol
1400 <TITLE>Key-value file parser</TITLE>
1401 <FILE>keyfile</FILE>
1408 g_key_file_set_list_separator
1409 g_key_file_load_from_file
1410 g_key_file_load_from_data
1411 g_key_file_load_from_data_dirs
1413 g_key_file_get_start_group
1414 g_key_file_get_groups
1416 g_key_file_has_group
1420 g_key_file_get_value
1421 g_key_file_get_string
1422 g_key_file_get_locale_string
1423 g_key_file_get_boolean
1424 g_key_file_get_integer
1425 g_key_file_get_string_list
1426 g_key_file_get_locale_string_list
1427 g_key_file_get_boolean_list
1428 g_key_file_get_integer_list
1429 g_key_file_get_comment
1432 g_key_file_set_value
1433 g_key_file_set_string
1434 g_key_file_set_locale_string
1435 g_key_file_set_boolean
1436 g_key_file_set_integer
1437 g_key_file_set_string_list
1438 g_key_file_set_locale_string_list
1439 g_key_file_set_boolean_list
1440 g_key_file_set_integer_list
1441 g_key_file_set_comment
1442 g_key_file_remove_group
1443 g_key_file_remove_key
1444 g_key_file_remove_comment
1446 <SUBSECTION Private>
1447 g_key_file_error_quark
1451 <TITLE>Dynamic Loading of Modules</TITLE>
1452 <FILE>modules</FILE>
1453 <INCLUDE>gmodule.h</INCLUDE>
1461 g_module_make_resident
1473 <TITLE>Automatic String Completion</TITLE>
1474 <FILE>completion</FILE>
1478 g_completion_add_items
1479 g_completion_remove_items
1480 g_completion_clear_items
1481 g_completion_complete
1482 g_completion_complete_utf8
1483 g_completion_set_compare
1484 GCompletionStrncmpFunc
1489 <TITLE>Windows Compatability Functions</TITLE>
1490 <FILE>windows</FILE>
1495 g_win32_error_message
1497 g_win32_get_package_installation_directory
1498 g_win32_get_package_installation_subdirectory
1499 g_win32_get_windows_version
1500 G_WIN32_DLLMAIN_FOR_DLL_NAME
1501 G_WIN32_HAVE_WIDECHAR_API
1504 <SUBSECTION Private>
1512 <TITLE>Memory Chunks</TITLE>
1513 <FILE>memory_chunks</FILE>
1543 <TITLE>Doubly-Linked Lists</TITLE>
1544 <FILE>linked_lists_double</FILE>
1551 g_list_insert_before
1552 g_list_insert_sorted
1569 g_list_sort_with_data
1591 g_list_push_allocator
1592 g_list_pop_allocator
1596 <TITLE>Singly-Linked Lists</TITLE>
1597 <FILE>linked_lists_single</FILE>
1605 g_slist_insert_before
1606 g_slist_insert_sorted
1619 g_slist_sort_with_data
1636 g_slist_push_allocator
1637 g_slist_pop_allocator
1641 <TITLE>Double-ended Queues</TITLE>
1667 g_queue_insert_before
1668 g_queue_insert_after
1669 g_queue_insert_sorted
1670 g_queue_push_head_link
1671 g_queue_push_tail_link
1672 g_queue_push_nth_link
1673 g_queue_pop_head_link
1674 g_queue_pop_tail_link
1675 g_queue_pop_nth_link
1676 g_queue_peek_head_link
1677 g_queue_peek_tail_link
1678 g_queue_peek_nth_link
1685 <TITLE>Trash Stacks</TITLE>
1686 <FILE>trash_stack</FILE>
1692 g_trash_stack_height
1696 <TITLE>Hash Tables</TITLE>
1697 <FILE>hash_tables</FILE>
1700 g_hash_table_new_full
1704 g_hash_table_replace
1707 g_hash_table_lookup_extended
1708 g_hash_table_foreach
1713 g_hash_table_foreach_remove
1714 g_hash_table_foreach_steal
1718 g_hash_table_destroy
1731 <TITLE>Strings</TITLE>
1732 <FILE>strings</FILE>
1741 g_string_append_printf
1744 g_string_append_unichar
1748 g_string_prepend_unichar
1749 g_string_prepend_len
1752 g_string_insert_unichar
1770 <TITLE>String Chunks</TITLE>
1771 <FILE>string_chunks</FILE>
1774 g_string_chunk_insert
1775 g_string_chunk_insert_const
1776 g_string_chunk_insert_len
1782 <TITLE>Arrays</TITLE>
1790 g_array_prepend_vals
1793 g_array_remove_index
1794 g_array_remove_index_fast
1795 g_array_remove_range
1797 g_array_sort_with_data
1804 <TITLE>Pointer Arrays</TITLE>
1805 <FILE>arrays_pointer</FILE>
1808 g_ptr_array_sized_new
1811 g_ptr_array_remove_index
1812 g_ptr_array_remove_fast
1813 g_ptr_array_remove_index_fast
1814 g_ptr_array_remove_range
1816 g_ptr_array_sort_with_data
1817 g_ptr_array_set_size
1825 <TITLE>Byte Arrays</TITLE>
1826 <FILE>arrays_byte</FILE>
1829 g_byte_array_sized_new
1831 g_byte_array_prepend
1832 g_byte_array_remove_index
1833 g_byte_array_remove_index_fast
1834 g_byte_array_remove_range
1836 g_byte_array_sort_with_data
1837 g_byte_array_set_size
1843 <TITLE>Balanced Binary Trees</TITLE>
1844 <FILE>trees-binary</FILE>
1847 g_tree_new_with_data
1854 g_tree_lookup_extended
1866 <TITLE>N-ary Trees</TITLE>
1867 <FILE>trees-nary</FILE>
1876 g_node_insert_before
1883 g_node_insert_data_before
1888 g_node_reverse_children
1892 g_node_children_foreach
1900 g_node_child_position
1904 g_node_first_sibling
1923 g_node_push_allocator
1924 g_node_pop_allocator
1929 <TITLE>Quarks</TITLE>
1933 g_quark_from_static_string
1940 <TITLE>Keyed Data Lists</TITLE>
1941 <FILE>datalist</FILE>
1946 g_datalist_id_set_data
1947 g_datalist_id_set_data_full
1948 g_datalist_id_get_data
1949 g_datalist_id_remove_data
1950 g_datalist_id_remove_no_notify
1954 g_datalist_set_data_full
1956 g_datalist_remove_data
1957 g_datalist_remove_no_notify
1966 <TITLE>Datasets</TITLE>
1967 <FILE>datasets</FILE>
1968 g_dataset_id_set_data
1969 g_dataset_id_set_data_full
1971 g_dataset_id_get_data
1972 g_dataset_id_remove_data
1973 g_dataset_id_remove_no_notify
1977 g_dataset_set_data_full
1979 g_dataset_remove_data
1980 g_dataset_remove_no_notify
1990 <TITLE>Relations and Tuples</TITLE>
1991 <FILE>relations</FILE>
2012 <TITLE>Caches</TITLE>
2022 g_cache_value_foreach
2031 <TITLE>Memory Allocators</TITLE>
2032 <FILE>allocators</FILE>
2037 <SUBSECTION Private>
2044 <TITLE>Random Numbers</TITLE>
2045 <FILE>random_numbers</FILE>
2047 g_rand_new_with_seed
2048 g_rand_new_with_seed_array
2053 g_rand_set_seed_array
2064 g_random_double_range
2068 <TITLE>Character Set Conversion</TITLE>
2069 <FILE>conversions</FILE>
2071 g_convert_with_fallback
2073 g_convert_with_iconv
2080 g_filename_from_utf8
2083 g_get_filename_charsets
2084 g_filename_display_name
2085 g_uri_list_extract_uris
2092 <SUBSECTION Private>
2093 g_convert_error_quark
2097 <TITLE>Unicode Manipulation</TITLE>
2098 <FILE>unicode</FILE>
2121 g_unichar_digit_value
2122 g_unichar_xdigit_value
2126 g_unichar_break_type
2127 g_unicode_canonical_ordering
2128 g_unicode_canonical_decomposition
2129 g_unichar_get_mirror_char
2134 g_utf8_get_char_validated
2135 g_utf8_offset_to_pointer
2136 g_utf8_pointer_to_offset
2138 g_utf8_find_next_char
2139 g_utf8_find_prev_char
2170 <INCLUDE>glib.h,glib/gi18n.h</INCLUDE>
2176 g_get_language_names