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>
125 G_SEARCHPATH_SEPARATOR
126 G_SEARCHPATH_SEPARATOR_S
157 <TITLE>Type Conversion Macros</TITLE>
158 <FILE>type_conversion</FILE>
170 <TITLE>Byte Order Macros</TITLE>
171 <FILE>byte_order</FILE>
257 GUINT16_SWAP_LE_BE_CONSTANT
258 GUINT32_SWAP_LE_BE_CONSTANT
259 GUINT64_SWAP_LE_BE_CONSTANT
260 GUINT16_SWAP_LE_BE_IA32
261 GUINT32_SWAP_LE_BE_IA32
262 GUINT64_SWAP_LE_BE_IA32
263 GUINT16_SWAP_LE_BE_IA64
264 GUINT32_SWAP_LE_BE_IA64
265 GUINT64_SWAP_LE_BE_IA64
266 GUINT32_SWAP_LE_BE_X86_64
267 GUINT64_SWAP_LE_BE_X86_64
272 <TITLE>Numerical Definitions</TITLE>
273 <FILE>numerical</FILE>
275 G_IEEE754_DOUBLE_BIAS
292 <TITLE>Miscellaneous Macros</TITLE>
293 <FILE>macros_misc</FILE>
324 G_GNUC_PRETTY_FUNCTION
364 <TITLE>Error Reporting</TITLE>
365 <FILE>error_reporting</FILE>
378 <TITLE>The Main Event Loop</TITLE>
386 g_main_loop_is_running
387 g_main_loop_get_context
398 G_PRIORITY_DEFAULT_IDLE
406 g_main_context_default
407 g_main_context_iteration
409 g_main_context_pending
411 g_main_context_find_source_by_id
412 g_main_context_find_source_by_user_data
413 g_main_context_find_source_by_funcs_user_data
414 g_main_context_wakeup
415 g_main_context_acquire
416 g_main_context_release
418 g_main_context_prepare
421 g_main_context_dispatch
422 g_main_context_set_poll_func
423 g_main_context_get_poll_func
425 g_main_context_add_poll
426 g_main_context_remove_poll
439 g_idle_remove_by_data
444 g_child_watch_source_new
446 g_child_watch_add_full
460 g_source_set_priority
461 g_source_get_priority
462 g_source_set_can_recurse
463 g_source_get_can_recurse
466 g_source_set_callback
468 g_source_set_callback_indirect
471 g_source_get_current_time
473 g_source_remove_by_funcs_user_data
474 g_source_remove_by_user_data
493 <TITLE>Threads</TITLE>
498 G_THREADS_IMPL_SOLARIS
518 g_thread_set_priority
535 g_static_mutex_trylock
536 g_static_mutex_unlock
537 g_static_mutex_get_mutex
550 G_STATIC_REC_MUTEX_INIT
551 g_static_rec_mutex_init
552 g_static_rec_mutex_lock
553 g_static_rec_mutex_trylock
554 g_static_rec_mutex_unlock
555 g_static_rec_mutex_lock_full
556 g_static_rec_mutex_unlock_full
557 g_static_rec_mutex_free
561 G_STATIC_RW_LOCK_INIT
562 g_static_rw_lock_init
563 g_static_rw_lock_reader_lock
564 g_static_rw_lock_reader_trylock
565 g_static_rw_lock_reader_unlock
566 g_static_rw_lock_writer_lock
567 g_static_rw_lock_writer_trylock
568 g_static_rw_lock_writer_unlock
569 g_static_rw_lock_free
588 G_STATIC_PRIVATE_INIT
589 g_static_private_init
592 g_static_private_free
604 g_static_mutex_get_mutex_impl
605 g_static_mutex_get_mutex_impl_shortcut
607 g_thread_init_with_errorcheck_mutexes
611 g_thread_use_default_impl
612 g_threads_got_initialized
613 g_thread_functions_for_glib_use
620 <TITLE>Thread Pools</TITLE>
621 <FILE>thread_pools</FILE>
625 g_thread_pool_set_max_threads
626 g_thread_pool_get_max_threads
627 g_thread_pool_get_num_threads
628 g_thread_pool_unprocessed
630 g_thread_pool_set_max_unused_threads
631 g_thread_pool_get_max_unused_threads
632 g_thread_pool_get_num_unused_threads
633 g_thread_pool_stop_unused_threads
637 <TITLE>Asynchronous Queues</TITLE>
638 <FILE>async_queues</FILE>
645 g_async_queue_try_pop
646 g_async_queue_timed_pop
652 g_async_queue_ref_unlocked
653 g_async_queue_unref_and_unlock
654 g_async_queue_push_unlocked
655 g_async_queue_pop_unlocked
656 g_async_queue_try_pop_unlocked
657 g_async_queue_timed_pop_unlocked
658 g_async_queue_length_unlocked
662 <TITLE>Atomic Operations</TITLE>
663 <FILE>atomic_operations</FILE>
666 g_atomic_int_exchange_and_add
667 g_atomic_int_compare_and_exchange
669 g_atomic_pointer_compare_and_exchange
671 g_atomic_int_dec_and_test
675 <TITLE>IO Channels</TITLE>
676 <FILE>iochannels</FILE>
680 g_io_channel_unix_new
681 g_io_channel_unix_get_fd
687 g_io_channel_new_file
688 g_io_channel_read_chars
689 g_io_channel_read_unichar
690 g_io_channel_read_line
691 g_io_channel_read_line_string
692 g_io_channel_read_to_end
693 g_io_channel_write_chars
694 g_io_channel_write_unichar
696 g_io_channel_seek_position
698 g_io_channel_shutdown
704 g_io_channel_error_from_errno
721 g_io_channel_get_buffer_size
722 g_io_channel_set_buffer_size
723 g_io_channel_get_buffer_condition
724 g_io_channel_get_flags
725 g_io_channel_set_flags
727 g_io_channel_get_line_term
728 g_io_channel_set_line_term
729 g_io_channel_get_buffered
730 g_io_channel_set_buffered
731 g_io_channel_get_encoding
732 g_io_channel_set_encoding
733 g_io_channel_get_close_on_unref
734 g_io_channel_set_close_on_unref
737 g_io_channel_win32_new_fd
738 g_io_channel_win32_new_messages
739 g_io_channel_win32_new_socket
740 g_io_channel_win32_poll
741 g_io_channel_win32_make_pollfd
742 g_io_channel_win32_get_fd
752 g_io_channel_error_quark
757 <TITLE>Memory Allocation</TITLE>
784 g_mem_is_system_malloc
787 glib_mem_profiler_table
792 <TITLE>Warnings and Assertions</TITLE>
793 <FILE>warnings</FILE>
800 g_set_printerr_handler
806 g_return_val_if_reached
814 g_on_error_stack_trace
821 <TITLE>Glob-style pattern matching</TITLE>
822 <FILE>patterns</FILE>
828 g_pattern_match_string
829 g_pattern_match_simple
833 <TITLE>Message Logging</TITLE>
834 <FILE>messages</FILE>
837 G_LOG_LEVEL_USER_SHIFT
853 g_log_set_always_fatal
855 g_log_default_handler
859 <TITLE>Timers</TITLE>
872 <TITLE>Spawning Processes</TITLE>
878 g_spawn_async_with_pipes
881 g_spawn_command_line_async
882 g_spawn_command_line_sync
889 <TITLE>Simple XML Subset Parser</TITLE>
897 g_markup_printf_escaped
898 g_markup_vprintf_escaped
899 g_markup_parse_context_end_parse
900 g_markup_parse_context_free
901 g_markup_parse_context_get_position
902 g_markup_parse_context_get_element
903 g_markup_parse_context_new
904 g_markup_parse_context_parse
911 <TITLE>Shell-related Utilities</TITLE>
924 <TITLE>Commandline option parser</TITLE>
933 g_option_context_free
934 g_option_context_parse
935 g_option_context_set_help_enabled
936 g_option_context_get_help_enabled
937 g_option_context_set_ignore_unknown_options
938 g_option_context_get_ignore_unknown_options
940 g_option_context_add_main_entries
942 g_option_context_add_group
943 g_option_context_set_main_group
944 g_option_context_get_main_group
947 g_option_group_add_entries
949 g_option_group_set_parse_hooks
951 g_option_group_set_error_hook
953 g_option_group_set_translate_func
954 g_option_group_set_translation_domain
956 g_option_context_error_quark
961 <TITLE>File Utilities</TITLE>
962 <FILE>fileutils</FILE>
966 g_file_error_from_errno
986 <TITLE>String Utility Functions</TITLE>
987 <FILE>string_utils</FILE>
988 <INCLUDE>glib.h,glib/gprintf.h</INCLUDE>
1016 g_printf_string_upper_bound
1033 g_ascii_xdigit_value
1064 G_ASCII_DTOSTR_BUF_SIZE
1092 <SUBSECTION Private>
1097 <TITLE>Date and Time Functions</TITLE>
1137 g_date_subtract_days
1139 g_date_subtract_months
1141 g_date_subtract_years
1153 g_date_get_day_of_year
1156 g_date_get_days_in_month
1157 g_date_is_first_of_month
1158 g_date_is_last_of_month
1160 g_date_get_monday_week_of_year
1161 g_date_get_monday_weeks_in_year
1162 g_date_get_sunday_week_of_year
1163 g_date_get_sunday_weeks_in_year
1176 g_date_valid_weekday
1178 <SUBSECTION Private>
1185 g_date_monday_week_of_year
1186 g_date_sunday_week_of_year
1187 g_date_days_in_month
1188 g_date_monday_weeks_in_year
1189 g_date_sunday_weeks_in_year
1193 <TITLE>Hook Functions</TITLE>
1204 g_hook_list_invoke_check
1207 g_hook_list_marshal_check
1208 GHookCheckMarshaller
1215 g_hook_insert_before
1216 g_hook_insert_sorted
1226 g_hook_find_func_data
1234 G_HOOK_FLAG_USER_SHIFT
1253 <TITLE>Miscellaneous Utility Functions</TITLE>
1254 <FILE>misc_utils</FILE>
1255 g_get_application_name
1256 g_set_application_name
1264 g_get_user_cache_dir
1266 g_get_user_config_dir
1267 g_get_system_data_dirs
1268 g_get_system_config_dirs
1284 g_find_program_in_path
1292 g_spaced_primes_closest
1298 g_parse_debug_string
1311 <SUBSECTION Private>
1319 <TITLE>Lexical Scanner</TITLE>
1320 <FILE>scanner</FILE>
1326 g_scanner_input_file
1327 g_scanner_sync_file_offset
1328 g_scanner_input_text
1329 g_scanner_peek_next_token
1330 g_scanner_get_next_token
1334 g_scanner_cur_position
1341 g_scanner_scope_add_symbol
1342 g_scanner_scope_foreach_symbol
1343 g_scanner_scope_lookup_symbol
1344 g_scanner_scope_remove_symbol
1347 g_scanner_freeze_symbol_table
1348 g_scanner_thaw_symbol_table
1349 g_scanner_lookup_symbol
1354 g_scanner_unexp_token
1371 g_scanner_add_symbol
1372 g_scanner_remove_symbol
1373 g_scanner_foreach_symbol
1377 <TITLE>Dynamic Loading of Modules</TITLE>
1378 <FILE>modules</FILE>
1379 <INCLUDE>gmodule.h</INCLUDE>
1387 g_module_make_resident
1399 <TITLE>Automatic String Completion</TITLE>
1400 <FILE>completion</FILE>
1404 g_completion_add_items
1405 g_completion_remove_items
1406 g_completion_clear_items
1407 g_completion_complete
1408 g_completion_complete_utf8
1409 g_completion_set_compare
1410 GCompletionStrncmpFunc
1415 <TITLE>Windows Compatability Functions</TITLE>
1416 <FILE>windows</FILE>
1422 g_win32_error_message
1424 g_win32_get_package_installation_directory
1425 g_win32_get_package_installation_subdirectory
1427 G_WIN32_DLLMAIN_FOR_DLL_NAME
1429 <SUBSECTION Private>
1437 <TITLE>Memory Chunks</TITLE>
1438 <FILE>memory_chunks</FILE>
1468 <TITLE>Doubly-Linked Lists</TITLE>
1469 <FILE>linked_lists_double</FILE>
1476 g_list_insert_before
1477 g_list_insert_sorted
1494 g_list_sort_with_data
1516 g_list_push_allocator
1517 g_list_pop_allocator
1521 <TITLE>Singly-Linked Lists</TITLE>
1522 <FILE>linked_lists_single</FILE>
1530 g_slist_insert_before
1531 g_slist_insert_sorted
1544 g_slist_sort_with_data
1561 g_slist_push_allocator
1562 g_slist_pop_allocator
1566 <TITLE>Double-ended Queues</TITLE>
1592 g_queue_insert_before
1593 g_queue_insert_after
1594 g_queue_insert_sorted
1595 g_queue_push_head_link
1596 g_queue_push_tail_link
1597 g_queue_push_nth_link
1598 g_queue_pop_head_link
1599 g_queue_pop_tail_link
1600 g_queue_pop_nth_link
1601 g_queue_peek_head_link
1602 g_queue_peek_tail_link
1603 g_queue_peek_nth_link
1610 <TITLE>Trash Stacks</TITLE>
1611 <FILE>trash_stack</FILE>
1617 g_trash_stack_height
1621 <TITLE>Hash Tables</TITLE>
1622 <FILE>hash_tables</FILE>
1625 g_hash_table_new_full
1629 g_hash_table_replace
1632 g_hash_table_lookup_extended
1633 g_hash_table_foreach
1638 g_hash_table_foreach_remove
1639 g_hash_table_foreach_steal
1643 g_hash_table_destroy
1656 <TITLE>Strings</TITLE>
1657 <FILE>strings</FILE>
1666 g_string_append_printf
1669 g_string_append_unichar
1673 g_string_prepend_unichar
1674 g_string_prepend_len
1677 g_string_insert_unichar
1695 <TITLE>String Chunks</TITLE>
1696 <FILE>string_chunks</FILE>
1699 g_string_chunk_insert
1700 g_string_chunk_insert_const
1701 g_string_chunk_insert_len
1707 <TITLE>Arrays</TITLE>
1715 g_array_prepend_vals
1718 g_array_remove_index
1719 g_array_remove_index_fast
1720 g_array_remove_range
1722 g_array_sort_with_data
1729 <TITLE>Pointer Arrays</TITLE>
1730 <FILE>arrays_pointer</FILE>
1733 g_ptr_array_sized_new
1736 g_ptr_array_remove_index
1737 g_ptr_array_remove_fast
1738 g_ptr_array_remove_index_fast
1739 g_ptr_array_remove_range
1741 g_ptr_array_sort_with_data
1742 g_ptr_array_set_size
1750 <TITLE>Byte Arrays</TITLE>
1751 <FILE>arrays_byte</FILE>
1754 g_byte_array_sized_new
1756 g_byte_array_prepend
1757 g_byte_array_remove_index
1758 g_byte_array_remove_index_fast
1759 g_byte_array_remove_range
1761 g_byte_array_sort_with_data
1762 g_byte_array_set_size
1768 <TITLE>Balanced Binary Trees</TITLE>
1769 <FILE>trees-binary</FILE>
1772 g_tree_new_with_data
1779 g_tree_lookup_extended
1791 <TITLE>N-ary Trees</TITLE>
1792 <FILE>trees-nary</FILE>
1801 g_node_insert_before
1808 g_node_insert_data_before
1813 g_node_reverse_children
1817 g_node_children_foreach
1825 g_node_child_position
1829 g_node_first_sibling
1848 g_node_push_allocator
1849 g_node_pop_allocator
1854 <TITLE>Quarks</TITLE>
1858 g_quark_from_static_string
1865 <TITLE>Keyed Data Lists</TITLE>
1866 <FILE>datalist</FILE>
1871 g_datalist_id_set_data
1872 g_datalist_id_set_data_full
1873 g_datalist_id_get_data
1874 g_datalist_id_remove_data
1875 g_datalist_id_remove_no_notify
1879 g_datalist_set_data_full
1881 g_datalist_remove_data
1882 g_datalist_remove_no_notify
1891 <TITLE>Datasets</TITLE>
1892 <FILE>datasets</FILE>
1893 g_dataset_id_set_data
1894 g_dataset_id_set_data_full
1896 g_dataset_id_get_data
1897 g_dataset_id_remove_data
1898 g_dataset_id_remove_no_notify
1902 g_dataset_set_data_full
1904 g_dataset_remove_data
1905 g_dataset_remove_no_notify
1915 <TITLE>Relations and Tuples</TITLE>
1916 <FILE>relations</FILE>
1937 <TITLE>Caches</TITLE>
1947 g_cache_value_foreach
1956 <TITLE>Memory Allocators</TITLE>
1957 <FILE>allocators</FILE>
1962 <SUBSECTION Private>
1969 <TITLE>Random Numbers</TITLE>
1970 <FILE>random_numbers</FILE>
1972 g_rand_new_with_seed
1973 g_rand_new_with_seed_array
1978 g_rand_set_seed_array
1989 g_random_double_range
1993 <TITLE>Character Set Conversion</TITLE>
1994 <FILE>conversions</FILE>
1996 g_convert_with_fallback
1998 g_convert_with_iconv
2005 g_filename_from_utf8
2014 <SUBSECTION Private>
2015 g_convert_error_quark
2019 <TITLE>Unicode Manipulation</TITLE>
2020 <FILE>unicode</FILE>
2043 g_unichar_digit_value
2044 g_unichar_xdigit_value
2048 g_unichar_break_type
2049 g_unicode_canonical_ordering
2050 g_unicode_canonical_decomposition
2051 g_unichar_get_mirror_char
2056 g_utf8_get_char_validated
2057 g_utf8_offset_to_pointer
2058 g_utf8_pointer_to_offset
2060 g_utf8_find_next_char
2061 g_utf8_find_prev_char
2092 <INCLUDE>glib.h,glib/gi18n.h</INCLUDE>