diff --git a/GI/src/giexport.jl b/GI/src/giexport.jl index da340eb0..4ddf3b7b 100644 --- a/GI/src/giexport.jl +++ b/GI/src/giexport.jl @@ -4,8 +4,8 @@ function _enums_and_flags(es, skiplist, incl_typeinit, const_mod, const_exports, loaded) for e in es name = Symbol(get_name(e)) - typeinit = in(name, skiplist) ? false : incl_typeinit - push!(const_mod.args, unblock(decl(e,typeinit))) + in(name, skiplist) && continue + push!(const_mod.args, unblock(decl(e,incl_typeinit))) push!(const_exports.args, name) push!(loaded,name) end diff --git a/gen/Project.toml b/gen/Project.toml index 20a05bc1..cdc083ec 100644 --- a/gen/Project.toml +++ b/gen/Project.toml @@ -1,5 +1,3 @@ [deps] EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615" GI = "1830b3f8-56ad-42bc-ae49-7513e085da97" -gdk_pixbuf_jll = "da03df04-f53b-5353-a52f-6a8b0620ced0" -gobject_introspection_jll = "6306888c-5478-5f78-9aeb-34cb5688c579" diff --git a/gen/README.md b/gen/README.md index f6227fad..7d550732 100644 --- a/gen/README.md +++ b/gen/README.md @@ -1,8 +1,6 @@ # Generation scripts for constants, structs, and `G_` modules The scripts in this directory are used to generate code using GObject introspection. -Introspection data for GLib (which includes GObject and Gio namespaces) and Cairo is packaged in `gobject_introspection_jll` for the x86_64-linux-gnu platform. The same is true for GdkPixbuf, which is packaged in `gdk_pixbuf_jll`. The script `gen_all.jl` uses JLL packaged data to generate code. The autogenerated code is created in `src/gen`. This should work for anyone on x86_64-linux-gnu. - -The long term plan is to do the same for the rest of the namespaces. So far this has proven to be a challenge. Currently, code for the other libraries (Graphene, Pango, and Gtk4) is generated using platform-installed libraries (outside JLL's) using the script `gen_rest.jl`. This has only been done so far on Fedora. - -For the platform-installed libraries, the version of the libraries used to generate code should ideally be the same as in the JLL's. +The autogenerated code is created in `src/gen`. +Currently, code is generated using platform-installed libraries (outside JLL's) using the script `gen_all.jl`. This has only been done so far on Fedora. +The version of the platform-installed libraries used to generate code should ideally be the same as in the JLL's. diff --git a/gen/gen_all.jl b/gen/gen_all.jl index 279d9655..46e75990 100644 --- a/gen/gen_all.jl +++ b/gen/gen_all.jl @@ -1,14 +1,19 @@ -using gobject_introspection_jll, gdk_pixbuf_jll -using GI +using GI, EzXML -# Generates code for libraries where introspection data is present in JLL's -# This should work on any Linux machine +# Generates code for libraries where we use introspection data outside JLL's +# This code is typically run on a recent version of Fedora where the library +# version is the same or close to what's present in Yggdrasil. -GI.prepend_search_path(gobject_introspection_jll) -GI.prepend_search_path(gdk_pixbuf_jll) +GI.prepend_search_path("/usr/lib64/girepository-1.0") include("gen_glib.jl") include("gen_gobject.jl") include("gen_gio.jl") include("gen_cairo.jl") include("gen_gdkpixbuf.jl") - +include("gen_pango.jl") +include("gen_pangocairo.jl") +include("gen_graphene.jl") +include("gen_gsk.jl") +include("gen_gdk4.jl") +include("gen_gtk4.jl") +include("gen_adwaita.jl") diff --git a/gen/gen_gdkpixbuf.jl b/gen/gen_gdkpixbuf.jl index 448eb9ff..3018b0de 100644 --- a/gen/gen_gdkpixbuf.jl +++ b/gen/gen_gdkpixbuf.jl @@ -3,10 +3,10 @@ using GI printstyled("Generating code for GdkPixbuf\n";bold=true) ns = GINamespace(:GdkPixbuf,"2.0") -d = GI.read_gir(gdk_pixbuf_jll, ns) +d = readxml("/usr/share/gir-1.0/$(GI.ns_id(ns)).gir") path="../src/gen" -GI.export_consts!(ns, path, "gdkpixbuf", [:PixbufFormatFlags]; doc_prefix = "gdk-pixbuf", doc_xml = d, export_constants = false) +GI.export_consts!(ns, path, "gdkpixbuf", []; doc_prefix = "gdk-pixbuf", doc_xml = d, export_constants = false) ## structs diff --git a/gen/gen_gio.jl b/gen/gen_gio.jl index bc31cad9..c0681e40 100644 --- a/gen/gen_gio.jl +++ b/gen/gen_gio.jl @@ -7,7 +7,7 @@ toplevel, exprs, exports = GI.output_exprs() path="../src/gen" ns = GINamespace(:Gio,"2.0") -d = GI.read_gir(gobject_introspection_jll, ns) +d = readxml("/usr/share/gir-1.0/$(GI.ns_id(ns)).gir") ## structs @@ -19,7 +19,7 @@ struct_skiplist=vcat(disguised, [:ActionEntry,:DBusAnnotationInfo,:DBusArgInfo,: :XdpDocumentsSkeletonClass,:XdpOpenURIProxy,:XdpOpenURIProxyClass,:XdpOpenURISkeletonClass, :XdpProxyResolverProxy,:XdpProxyResolverProxyClass,:XdpProxyResolverSkeleton,:XdpProxyResolverSkeletonClass,:XdpTrashProxy,:XdpTrashProxyClass,:XdpTrashSkeleton,:XdpTrashSkeletonClass,:_FreedesktopDBusProxyClass,:_FreedesktopDBusSkeletonClass]) -obj_skiplist=[:UnixMountMonitor,:UnixOutputStream,:UnixInputStream,:UnixFDList,:UnixFDMessage,:UnixSocketAddress,:DebugControllerDBus] +obj_skiplist=[:UnixMountMonitor,:UnixOutputStream,:UnixInputStream,:UnixFDList,:UnixFDMessage,:UnixSocketAddress,:DebugControllerDBus,:DBusInterfaceSkeleton,:DBusObjectSkeleton,:DBusObjectManagerServer] obj_constructor_skiplist = [:new_for_bus_sync,:new_sync,:new_with_fd_list,:new_for_address_finish,:new_for_bus_finish,:new_for_bus_finish,:new_from_filename,:new_loopback,:new_section,:new_with_default_fallbacks,:new_from_file_with_password] diff --git a/gen/gen_glib.jl b/gen/gen_glib.jl index b708efc7..e9688130 100644 --- a/gen/gen_glib.jl +++ b/gen/gen_glib.jl @@ -1,5 +1,3 @@ -using gobject_introspection_jll -ENV["GI_TYPELIB_PATH"]=gobject_introspection_jll.find_artifact_dir()*"/lib/girepository-1.0" using GI, EzXML printstyled("Generating constants for GLib, GObject, and Gio\n";bold=true) @@ -27,13 +25,13 @@ const_exports = Expr(:export) const_skip = [:E,:LN2,:LN10,:LOG_2_BASE_10,:PI,:PI_2,:PI_4,:SQRT2] c = GI.all_const_exprs!(const_mod, const_exports, ns, skiplist=const_skip; incl_typeinit=false) -dglib = GI.read_gir(gobject_introspection_jll, ns) +dglib = readxml("/usr/share/gir-1.0/$(GI.ns_id(ns)).gir") GI.append_const_docs!(const_mod.args, "glib", dglib, c) -c = GI.all_const_exprs!(const_mod, const_exports, ns2, skiplist=[:ConnectFlags,:ParamFlags,:SignalFlags,:SignalMatchType,:TypeFlags,:TypeFundamentalFlags]) -d = GI.read_gir(gobject_introspection_jll, ns2) +c = GI.all_const_exprs!(const_mod, const_exports, ns2, skiplist=[:IOCondition]) +d = readxml("/usr/share/gir-1.0/$(GI.ns_id(ns2)).gir") GI.append_const_docs!(const_mod.args, "gobject", d, c) c = GI.all_const_exprs!(const_mod, const_exports, ns3, skiplist=[:TlsProtocolVersion]) -d = GI.read_gir(gobject_introspection_jll, ns3) +d = readxml("/usr/share/gir-1.0/$(GI.ns_id(ns3)).gir") GI.append_const_docs!(const_mod.args, "gio", d, c) push!(const_mod.args,const_exports) @@ -63,7 +61,7 @@ struct_skiplist=vcat(disguised, special, [:Cond,:HashTableIter,:Hook, :TestLogBuffer,:TestLogMsg,:Thread,:ThreadPool,:Tree,:UriParamsIter]) callback_skiplist=[:LogWriterFunc] -constructor_skiplist=[:new,:new_take,:new_from_unix_utc,:new_now_utc,:new_utc,:new_maybe] +constructor_skiplist=[:new,:new_take,:new_from_unix_utc,:new_now_utc,:new_utc,:new_maybe,:new_from_unix_local_usec,:new_from_unix_utc_usec] GI.export_struct_exprs!(ns,path, "glib", struct_skiplist, import_as_opaque; doc_xml = dglib, constructor_skiplist = constructor_skiplist, output_object_cache_init = false, output_object_cache_define = false, output_boxed_types_def = false, callback_skiplist) @@ -94,7 +92,23 @@ GI.write_to_file(path,"glib_methods",toplevel) toplevel, exprs, exports = GI.output_exprs() # many of these are skipped because they involve callbacks -skiplist=[:convert,:atomic_rc_box_release_full,:child_watch_add,:datalist_foreach,:dataset_foreach,:io_add_watch,:io_create_watch,:log_set_handler,:log_set_writer_func,:rc_box_release_full,:spawn_async,:spawn_async_with_fds,:spawn_async_with_pipes,:spawn_async_with_pipes_and_fds,:spawn_sync,:test_add_data_func,:test_add_data_func_full,:test_add_func,:test_queue_destroy,:thread_self, :unix_fd_add_full,:unix_signal_add, :datalist_get_data, :datalist_get_flags, :datalist_id_get_data, :datalist_set_flags, :datalist_unset_flags,:hook_destroy,:hook_destroy_link,:hook_free,:hook_insert_before, :hook_prepend,:hook_unref,:poll, :sequence_get,:sequence_move,:sequence_move_range,:sequence_remove,:sequence_remove_range,:sequence_set,:sequence_swap,:shell_parse_argv,:source_remove_by_funcs_user_data,:test_run_suite, :assertion_message_error,:uri_parse_params, :pattern_match,:pattern_match_string,:log_structured_array,:log_writer_default,:log_writer_format_fields,:log_writer_journald,:log_writer_standard_streams,:parse_debug_string,:child_watch_source_new,:date_strftime,:idle_source_new,:main_current_source,:timeout_source_new,:timeout_source_new_seconds,:unix_fd_source_new,:unix_signal_source_new,:datalist_id_remove_multiple,:base64_encode_close,:base64_encode_step,:sequence_insert_before,:sequence_range_get_midpoint] +skiplist=[:convert,:atomic_rc_box_release_full,:child_watch_add,:datalist_foreach,:dataset_foreach, + :io_add_watch,:io_create_watch,:log_set_handler,:log_set_writer_func,:rc_box_release_full, + :spawn_async,:spawn_async_with_fds,:spawn_async_with_pipes,:spawn_async_with_pipes_and_fds, + :spawn_sync,:test_add_data_func,:test_add_data_func_full,:test_add_func,:test_queue_destroy, + :thread_self, :unix_fd_add_full,:unix_signal_add, :datalist_get_data, :datalist_get_flags, + :datalist_id_get_data, :datalist_set_flags, :datalist_unset_flags,:hook_destroy, + :hook_destroy_link,:hook_free,:hook_insert_before, :hook_prepend,:hook_unref,:poll, + :sequence_get,:sequence_move,:sequence_move_range,:sequence_remove,:sequence_remove_range, + :sequence_set,:sequence_swap,:shell_parse_argv,:source_remove_by_funcs_user_data, + :test_run_suite,:assertion_message_error,:uri_parse_params, :pattern_match, + :pattern_match_string,:log_structured_array,:log_writer_default,:log_writer_format_fields, + :log_writer_journald,:log_writer_standard_streams,:parse_debug_string,:lstat,:stat, + :child_watch_source_new,:date_strftime,:idle_source_new,:main_current_source, + :timeout_source_new,:timeout_source_new_seconds,:unix_fd_source_new, + :unix_signal_source_new,:datalist_id_remove_multiple,:base64_encode_close, + :base64_encode_step,:sequence_insert_before,:sequence_range_get_midpoint, + :list_push_allocator,:node_push_allocator,:slist_push_allocator,:sequence_foreach_range,:sequence_sort_changed,:sequence_sort_changed_iter] GI.all_functions!(exprs,ns,skiplist=skiplist,symbol_skiplist=symbols_handled, liboverride=:libglib) diff --git a/gen/gen_gobject.jl b/gen/gen_gobject.jl index 6295059f..f4f82500 100644 --- a/gen/gen_gobject.jl +++ b/gen/gen_gobject.jl @@ -5,7 +5,7 @@ printstyled("Generating code for GObject\n";bold=true) path="../src/gen" ns = GINamespace(:GObject,"2.0") -d = GI.read_gir(gobject_introspection_jll, ns) +d = readxml("/usr/share/gir-1.0/$(GI.ns_id(ns)).gir") ## structs @@ -60,7 +60,7 @@ skiplist=vcat(handled_list,[:enum_complete_type_info,:enum_register_static,:flag :source_set_closure,:source_set_dummy_callback, :type_check_instance,:type_check_instance_is_a,:type_check_instance_is_fundamentally_a, :type_default_interface_unref,:type_free_instance, -:type_name_from_instance,:type_register_fundamental, +:type_name_from_instance,:type_register_fundamental,:variant_get_gtype, :signal_set_va_marshaller,:signal_emitv,:param_value_convert,:param_value_defaults,:param_value_set_default,:param_value_validate,:param_values_cmp]) GI.all_functions!(exprs,ns,skiplist=skiplist,symbol_skiplist=symbols_handled) diff --git a/gen/gen_gtk4.jl b/gen/gen_gtk4.jl index 52944736..719a2ef0 100644 --- a/gen/gen_gtk4.jl +++ b/gen/gen_gtk4.jl @@ -5,7 +5,7 @@ path="../src/gen" ns = GINamespace(:Gtk,"4.0") d = readxml("/usr/share/gir-1.0/$(GI.ns_id(ns)).gir") -GI.export_consts!(ns, path, "gtk4", [:CssParserError,:CssParserWarning]; doc_xml = d) +GI.export_consts!(ns, path, "gtk4", []; doc_xml = d) disguised = Symbol[] struct_skiplist=vcat(disguised, [:PageRange,:TreeRowReference]) diff --git a/gen/gen_rest.jl b/gen/gen_rest.jl deleted file mode 100644 index 52fc0862..00000000 --- a/gen/gen_rest.jl +++ /dev/null @@ -1,14 +0,0 @@ -using GI, EzXML - -# Generates code for libraries where we use introspection data outside JLL's -# This code is typically run on a recent version of Fedora where the library -# version is the same or close to what's present in Yggdrasil. - -GI.prepend_search_path("/usr/lib64/girepository-1.0") -include("gen_pango.jl") -include("gen_pangocairo.jl") -include("gen_graphene.jl") -include("gen_gsk.jl") -include("gen_gdk4.jl") -include("gen_gtk4.jl") -include("gen_adwaita.jl") diff --git a/src/gen/gio_functions b/src/gen/gio_functions index 7de6b10a..943ab00c 100644 --- a/src/gen/gio_functions +++ b/src/gen/gio_functions @@ -666,10 +666,6 @@ $(Expr(:toplevel, quote ret = ccall(("g_resolver_error_quark", libgio), UInt32, ()) ret end - function resolver_record_type_to_rrtype(_type) - ret = ccall(("g_resolver_record_type_to_rrtype", libgio), Int32, (UInt32,), _type) - ret - end function resource_error_quark() ret = ccall(("g_resource_error_quark", libgio), UInt32, ()) ret diff --git a/src/gen/gio_methods b/src/gen/gio_methods index ce65f65a..2a403a90 100644 --- a/src/gen/gio_methods +++ b/src/gen/gio_methods @@ -410,6 +410,11 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, false) ret2 end + function get_version(instance::GApplication) + ret = ccall(("g_application_get_version", libgio), Cstring, (Ptr{GObject},), instance) + ret2 = string_or_nothing(ret, false) + ret2 + end function hold(instance::GApplication) ret = ccall(("g_application_hold", libgio), Nothing, (Ptr{GObject},), instance) nothing @@ -488,6 +493,10 @@ $(Expr(:toplevel, quote ret = ccall(("g_application_set_resource_base_path", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _resource_path_maybe) nothing end + function set_version(instance::GApplication, _version::Union{AbstractString, Symbol}) + ret = ccall(("g_application_set_version", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _version) + nothing + end function unbind_busy_property(instance::GApplication, _object::GObject, _property::Union{AbstractString, Symbol}) ret = ccall(("g_application_unbind_busy_property", libgio), Nothing, (Ptr{GObject}, Ptr{GObject}, Cstring), instance, _object, _property) nothing @@ -565,6 +574,10 @@ $(Expr(:toplevel, quote end ret2 end + function done(instance::GApplicationCommandLine) + ret = ccall(("g_application_command_line_done", libgio), Nothing, (Ptr{GObject},), instance) + nothing + end function get_arguments(instance::GApplicationCommandLine) m_argc = Ref{Int32}() ret = ccall(("g_application_command_line_get_arguments", libgio), Ptr{Cstring}, (Ptr{GObject}, Ptr{Int32}), instance, m_argc) @@ -619,6 +632,14 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, false) ret2 end + function print_literal(instance::GApplicationCommandLine, _message::Union{AbstractString, Symbol}) + ret = ccall(("g_application_command_line_print_literal", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _message) + nothing + end + function printerr_literal(instance::GApplicationCommandLine, _message::Union{AbstractString, Symbol}) + ret = ccall(("g_application_command_line_printerr_literal", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _message) + nothing + end function set_exit_status(instance::GApplicationCommandLine, _exit_status::Integer) ret = ccall(("g_application_command_line_set_exit_status", libgio), Nothing, (Ptr{GObject}, Int32), instance, _exit_status) nothing @@ -1025,58 +1046,6 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end - function flush(instance::GDBusInterfaceSkeleton) - ret = ccall(("g_dbus_interface_skeleton_flush", libgio), Nothing, (Ptr{GObject},), instance) - nothing - end - function get_connection(instance::GDBusInterfaceSkeleton) - ret = ccall(("g_dbus_interface_skeleton_get_connection", libgio), Ptr{GObject}, (Ptr{GObject},), instance) - ret2 = convert_if_not_null(GDBusConnection, ret, false) - ret2 - end - function get_connections(instance::GDBusInterfaceSkeleton) - ret = ccall(("g_dbus_interface_skeleton_get_connections", libgio), Ptr{GLib._GList{Ptr{GObject}}}, (Ptr{GObject},), instance) - ret2 = GLib.GList(ret, true) - ret2 - end - function get_flags(instance::GDBusInterfaceSkeleton) - ret = ccall(("g_dbus_interface_skeleton_get_flags", libgio), UInt32, (Ptr{GObject},), instance) - ret2 = DBusInterfaceSkeletonFlags(ret) - ret2 - end - function get_object_path(instance::GDBusInterfaceSkeleton) - ret = ccall(("g_dbus_interface_skeleton_get_object_path", libgio), Cstring, (Ptr{GObject},), instance) - ret2 = string_or_nothing(ret, false) - ret2 - end - function get_properties(instance::GDBusInterfaceSkeleton) - ret = ccall(("g_dbus_interface_skeleton_get_properties", libgio), Ptr{GVariant}, (Ptr{GObject},), instance) - ret2 = convert(GVariant, ret) - ret2 - end - function has_connection(instance::GDBusInterfaceSkeleton, _connection::GDBusConnection) - ret = ccall(("g_dbus_interface_skeleton_has_connection", libgio), Cint, (Ptr{GObject}, Ptr{GObject}), instance, _connection) - ret2 = convert(Bool, ret) - ret2 - end - function set_flags(instance::GDBusInterfaceSkeleton, _flags) - ret = ccall(("g_dbus_interface_skeleton_set_flags", libgio), Nothing, (Ptr{GObject}, UInt32), instance, _flags) - nothing - end - function unexport(instance::GDBusInterfaceSkeleton) - ret = ccall(("g_dbus_interface_skeleton_unexport", libgio), Nothing, (Ptr{GObject},), instance) - nothing - end - function unexport_from_connection(instance::GDBusInterfaceSkeleton, _connection::GDBusConnection) - ret = ccall(("g_dbus_interface_skeleton_unexport_from_connection", libgio), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _connection) - nothing - end - function get_object(instance::GDBusInterfaceSkeleton) - get_object(GDBusInterface(instance)) - end - function set_object(instance::GDBusInterfaceSkeleton, _object::Maybe(GDBusObject)) - set_object(GDBusInterface(instance), _object) - end function DBusMessage_new() ret = ccall(("g_dbus_message_new", libgio), Ptr{GObject}, ()) ret2 = GDBusMessageLeaf(ret, true) @@ -1123,6 +1092,11 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, false) ret2 end + function get_arg0_path(instance::GDBusMessage) + ret = ccall(("g_dbus_message_get_arg0_path", libgio), Cstring, (Ptr{GObject},), instance) + ret2 = string_or_nothing(ret, false) + ret2 + end function get_body(instance::GDBusMessage) ret = ccall(("g_dbus_message_get_body", libgio), Ptr{GVariant}, (Ptr{GObject},), instance) ret2 = convert(GVariant, ret) @@ -1361,47 +1335,6 @@ $(Expr(:toplevel, quote function init(instance::GDBusObjectManagerClient, _cancellable::Maybe(GCancellable)) init(GInitable(instance), _cancellable) end - function DBusObjectManagerServer_new(_object_path::Union{AbstractString, Symbol}) - ret = ccall(("g_dbus_object_manager_server_new", libgio), Ptr{GObject}, (Cstring,), _object_path) - ret2 = GDBusObjectManagerServerLeaf(ret, true) - ret2 - end - function export_uniquely(instance::GDBusObjectManagerServer, _object::GDBusObjectSkeleton) - ret = ccall(("g_dbus_object_manager_server_export_uniquely", libgio), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _object) - nothing - end - function get_connection(instance::GDBusObjectManagerServer) - ret = ccall(("g_dbus_object_manager_server_get_connection", libgio), Ptr{GObject}, (Ptr{GObject},), instance) - ret2 = convert_if_not_null(GDBusConnection, ret, true) - ret2 - end - function is_exported(instance::GDBusObjectManagerServer, _object::GDBusObjectSkeleton) - ret = ccall(("g_dbus_object_manager_server_is_exported", libgio), Cint, (Ptr{GObject}, Ptr{GObject}), instance, _object) - ret2 = convert(Bool, ret) - ret2 - end - function set_connection(instance::GDBusObjectManagerServer, _connection::Maybe(GDBusConnection)) - _connection_maybe = nothing_to_null(_connection) - ret = ccall(("g_dbus_object_manager_server_set_connection", libgio), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _connection_maybe) - nothing - end - function unexport(instance::GDBusObjectManagerServer, _object_path::Union{AbstractString, Symbol}) - ret = ccall(("g_dbus_object_manager_server_unexport", libgio), Cint, (Ptr{GObject}, Cstring), instance, _object_path) - ret2 = convert(Bool, ret) - ret2 - end - function get_interface(instance::GDBusObjectManagerServer, _object_path::Union{AbstractString, Symbol}, _interface_name::Union{AbstractString, Symbol}) - get_interface(GDBusObjectManager(instance), _object_path, _interface_name) - end - function get_object(instance::GDBusObjectManagerServer, _object_path::Union{AbstractString, Symbol}) - get_object(GDBusObjectManager(instance), _object_path) - end - function get_object_path(instance::GDBusObjectManagerServer) - get_object_path(GDBusObjectManager(instance)) - end - function get_objects(instance::GDBusObjectManagerServer) - get_objects(GDBusObjectManager(instance)) - end function DBusObjectProxy_new(_connection::GDBusConnection, _object_path::Union{AbstractString, Symbol}) ret = ccall(("g_dbus_object_proxy_new", libgio), Ptr{GObject}, (Ptr{GObject}, Cstring), _connection, _object_path) ret2 = GDBusObjectProxyLeaf(ret, true) @@ -1421,40 +1354,6 @@ $(Expr(:toplevel, quote function get_object_path(instance::GDBusObjectProxy) get_object_path(GDBusObject(instance)) end - function DBusObjectSkeleton_new(_object_path::Union{AbstractString, Symbol}) - ret = ccall(("g_dbus_object_skeleton_new", libgio), Ptr{GObject}, (Cstring,), _object_path) - ret2 = GDBusObjectSkeletonLeaf(ret, true) - ret2 - end - function add_interface(instance::GDBusObjectSkeleton, _interface_::GDBusInterfaceSkeleton) - ret = ccall(("g_dbus_object_skeleton_add_interface", libgio), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _interface_) - nothing - end - function flush(instance::GDBusObjectSkeleton) - ret = ccall(("g_dbus_object_skeleton_flush", libgio), Nothing, (Ptr{GObject},), instance) - nothing - end - function remove_interface(instance::GDBusObjectSkeleton, _interface_::GDBusInterfaceSkeleton) - ret = ccall(("g_dbus_object_skeleton_remove_interface", libgio), Nothing, (Ptr{GObject}, Ptr{GObject}), instance, _interface_) - nothing - end - function remove_interface_by_name(instance::GDBusObjectSkeleton, _interface_name::Union{AbstractString, Symbol}) - ret = ccall(("g_dbus_object_skeleton_remove_interface_by_name", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _interface_name) - nothing - end - function set_object_path(instance::GDBusObjectSkeleton, _object_path::Union{AbstractString, Symbol}) - ret = ccall(("g_dbus_object_skeleton_set_object_path", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _object_path) - nothing - end - function get_interface(instance::GDBusObjectSkeleton, _interface_name::Union{AbstractString, Symbol}) - get_interface(GDBusObject(instance), _interface_name) - end - function get_interfaces(instance::GDBusObjectSkeleton) - get_interfaces(GDBusObject(instance)) - end - function get_object_path(instance::GDBusObjectSkeleton) - get_object_path(GDBusObject(instance)) - end function get_client_address(instance::GDBusServer) ret = ccall(("g_dbus_server_get_client_address", libgio), Cstring, (Ptr{GObject},), instance) ret2 = string_or_nothing(ret, false) @@ -4903,29 +4802,46 @@ $(Expr(:toplevel, quote end function receive(instance::GSocket, _cancellable::Maybe(GCancellable)) m_buffer = Ref{Ptr{UInt8}}() - m_size = Ref{UInt64}() _cancellable_maybe = nothing_to_null(_cancellable) + _size = length(_buffer) err = err_buf() - ret = ccall(("g_socket_receive", libgio), Int64, (Ptr{GObject}, Ptr{Ptr{UInt8}}, Ptr{UInt64}, Ptr{GObject}, Ptr{Ptr{GError}}), instance, m_buffer, m_size, _cancellable_maybe, err) + ret = ccall(("g_socket_receive", libgio), Int64, (Ptr{GObject}, Ptr{Ptr{UInt8}}, UInt64, Ptr{GObject}, Ptr{Ptr{GError}}), instance, m_buffer, _size, _cancellable_maybe, err) check_err(err) _buffer = m_buffer[] _buffer = collect(unsafe_wrap(Vector{UInt8}, _buffer, m_size[])) - _size = m_size[] (ret, _buffer) end + function receive_bytes(instance::GSocket, _size::Integer, _timeout_us::Integer, _cancellable::Maybe(GCancellable)) + _cancellable_maybe = nothing_to_null(_cancellable) + err = err_buf() + ret = ccall(("g_socket_receive_bytes", libgio), Ptr{GBytes}, (Ptr{GObject}, UInt64, Int64, Ptr{GObject}, Ptr{Ptr{GError}}), instance, _size, _timeout_us, _cancellable_maybe, err) + check_err(err) + ret2 = convert(GBytes, ret, true) + ret2 + end + function receive_bytes_from(instance::GSocket, _size::Integer, _timeout_us::Integer, _cancellable::Maybe(GCancellable)) + m_address = Ref{Ptr{GObject}}() + _cancellable_maybe = nothing_to_null(_cancellable) + err = err_buf() + ret = ccall(("g_socket_receive_bytes_from", libgio), Ptr{GBytes}, (Ptr{GObject}, Ptr{Ptr{GObject}}, UInt64, Int64, Ptr{GObject}, Ptr{Ptr{GError}}), instance, m_address, _size, _timeout_us, _cancellable_maybe, err) + check_err(err) + ret2 = convert(GBytes, ret, true) + _address = m_address[] + _address = convert(GSocketAddress, _address, true) + (ret2, _address) + end function receive_from(instance::GSocket, _cancellable::Maybe(GCancellable)) m_address = Ref{Ptr{GObject}}() m_buffer = Ref{Ptr{UInt8}}() - m_size = Ref{UInt64}() _cancellable_maybe = nothing_to_null(_cancellable) + _size = length(_buffer) err = err_buf() - ret = ccall(("g_socket_receive_from", libgio), Int64, (Ptr{GObject}, Ptr{Ptr{GObject}}, Ptr{Ptr{UInt8}}, Ptr{UInt64}, Ptr{GObject}, Ptr{Ptr{GError}}), instance, m_address, m_buffer, m_size, _cancellable_maybe, err) + ret = ccall(("g_socket_receive_from", libgio), Int64, (Ptr{GObject}, Ptr{Ptr{GObject}}, Ptr{Ptr{UInt8}}, UInt64, Ptr{GObject}, Ptr{Ptr{GError}}), instance, m_address, m_buffer, _size, _cancellable_maybe, err) check_err(err) _address = m_address[] _address = convert(GSocketAddress, _address, true) _buffer = m_buffer[] _buffer = collect(unsafe_wrap(Vector{UInt8}, _buffer, m_size[])) - _size = m_size[] (ret, _address, _buffer) end function receive_message(instance::GSocket, _vectors, _flags::Integer, _cancellable::Maybe(GCancellable)) @@ -4954,14 +4870,13 @@ $(Expr(:toplevel, quote end function receive_with_blocking(instance::GSocket, _blocking::Bool, _cancellable::Maybe(GCancellable)) m_buffer = Ref{Ptr{UInt8}}() - m_size = Ref{UInt64}() _cancellable_maybe = nothing_to_null(_cancellable) + _size = length(_buffer) err = err_buf() - ret = ccall(("g_socket_receive_with_blocking", libgio), Int64, (Ptr{GObject}, Ptr{Ptr{UInt8}}, Ptr{UInt64}, Cint, Ptr{GObject}, Ptr{Ptr{GError}}), instance, m_buffer, m_size, _blocking, _cancellable_maybe, err) + ret = ccall(("g_socket_receive_with_blocking", libgio), Int64, (Ptr{GObject}, Ptr{Ptr{UInt8}}, UInt64, Cint, Ptr{GObject}, Ptr{Ptr{GError}}), instance, m_buffer, _size, _blocking, _cancellable_maybe, err) check_err(err) _buffer = m_buffer[] _buffer = collect(unsafe_wrap(Vector{UInt8}, _buffer, m_size[])) - _size = m_size[] (ret, _buffer) end function send(instance::GSocket, _buffer, _cancellable::Maybe(GCancellable)) @@ -5733,8 +5648,9 @@ $(Expr(:toplevel, quote ret = ccall(("g_subprocess_launcher_set_stderr_file_path", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _path_maybe) nothing end - function set_stdin_file_path(instance::GSubprocessLauncher, _path::Union{AbstractString, Symbol}) - ret = ccall(("g_subprocess_launcher_set_stdin_file_path", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _path) + function set_stdin_file_path(instance::GSubprocessLauncher, _path::Maybe(Union{AbstractString, Symbol})) + _path_maybe = nothing_to_null(_path) + ret = ccall(("g_subprocess_launcher_set_stdin_file_path", libgio), Nothing, (Ptr{GObject}, Cstring), instance, _path_maybe) nothing end function set_stdout_file_path(instance::GSubprocessLauncher, _path::Maybe(Union{AbstractString, Symbol})) @@ -5906,6 +5822,10 @@ $(Expr(:toplevel, quote ret = ccall(("g_task_return_int", libgio), Nothing, (Ptr{GObject}, Int64), instance, _result) nothing end + function return_new_error_literal(instance::GTask, _domain::Integer, _code::Integer, _message::Union{AbstractString, Symbol}) + ret = ccall(("g_task_return_new_error_literal", libgio), Nothing, (Ptr{GObject}, UInt32, Int32, Cstring), instance, _domain, _code, _message) + nothing + end function return_value(instance::GTask, _result::Maybe(GValueLike)) _result_maybe = nothing_to_null(_result) ret = ccall(("g_task_return_value", libgio), Nothing, (Ptr{GObject}, Ptr{_GValue}), instance, _result_maybe) @@ -7767,6 +7687,30 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function measure_disk_usage(instance::GFile, _flags, _cancellable::Maybe(GCancellable), _progress_callback::Maybe(Function)) + _cancellable_maybe = nothing_to_null(_cancellable) + if _progress_callback === nothing + _progress_callback_cfunc = C_NULL + _progress_callback_closure = C_NULL + else + _progress_callback_cfunc = @cfunction(GFileMeasureProgressCallback, Nothing, (Cint, UInt64, UInt64, UInt64, Ref{Function})) + begin + ref = Ref{Any}(_progress_callback) + _progress_callback_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) + end + end + m_disk_usage = Ref{UInt64}() + m_num_dirs = Ref{UInt64}() + m_num_files = Ref{UInt64}() + err = err_buf() + ret = ccall(("g_file_measure_disk_usage", libgio), Cint, (Ptr{GObject}, UInt32, Ptr{GObject}, Ptr{Cvoid}, Ptr{Nothing}, Ptr{UInt64}, Ptr{UInt64}, Ptr{UInt64}, Ptr{Ptr{GError}}), instance, _flags, _cancellable_maybe, _progress_callback_cfunc, _progress_callback_closure, m_disk_usage, m_num_dirs, m_num_files, err) + check_err(err) + ret2 = convert(Bool, ret) + _disk_usage = m_disk_usage[] + _num_dirs = m_num_dirs[] + _num_files = m_num_files[] + (ret2, _disk_usage, _num_dirs, _num_files) + end function measure_disk_usage_finish(instance::GFile, _result::GAsyncResult) m_disk_usage = Ref{UInt64}() m_num_dirs = Ref{UInt64}() diff --git a/src/gen/gio_structs b/src/gen/gio_structs index 8e5d890a..56185696 100644 --- a/src/gen/gio_structs +++ b/src/gen/gio_structs @@ -232,167 +232,6 @@ $(Expr(:toplevel, quote end const GSrvTargetLike = GSrvTarget end - begin - struct _GXdpDocumentsIface - parent_iface::_GTypeInterface - handle_add::Ptr{Cvoid} - handle_add_full::Ptr{Cvoid} - handle_add_named::Ptr{Cvoid} - handle_add_named_full::Ptr{Cvoid} - handle_delete::Ptr{Cvoid} - handle_get_mount_point::Ptr{Cvoid} - handle_grant_permissions::Ptr{Cvoid} - handle_info::Ptr{Cvoid} - handle_list::Ptr{Cvoid} - handle_lookup::Ptr{Cvoid} - handle_revoke_permissions::Ptr{Cvoid} - get_version::Ptr{Cvoid} - end - mutable struct GXdpDocumentsIface - handle::Ptr{_GXdpDocumentsIface} - end - begin - unsafe_convert(::Type{Ptr{_GXdpDocumentsIface}}, box::GXdpDocumentsIface) = begin - convert(Ptr{_GXdpDocumentsIface}, box.handle) - end - convert(::Type{GXdpDocumentsIface}, p::Ptr{_GXdpDocumentsIface}, owns = false) = begin - GXdpDocumentsIface(p, owns) - end - const GXdpDocumentsIfaceLike = Union{Ref{_GXdpDocumentsIface}, GXdpDocumentsIface} - end - end - begin - struct _GXdpOpenURIIface - parent_iface::_GTypeInterface - handle_open_directory::Ptr{Cvoid} - handle_open_file::Ptr{Cvoid} - handle_open_uri::Ptr{Cvoid} - get_version::Ptr{Cvoid} - end - mutable struct GXdpOpenURIIface - handle::Ptr{_GXdpOpenURIIface} - end - begin - unsafe_convert(::Type{Ptr{_GXdpOpenURIIface}}, box::GXdpOpenURIIface) = begin - convert(Ptr{_GXdpOpenURIIface}, box.handle) - end - convert(::Type{GXdpOpenURIIface}, p::Ptr{_GXdpOpenURIIface}, owns = false) = begin - GXdpOpenURIIface(p, owns) - end - const GXdpOpenURIIfaceLike = Union{Ref{_GXdpOpenURIIface}, GXdpOpenURIIface} - end - end - begin - struct _GXdpProxyResolverIface - parent_iface::_GTypeInterface - handle_lookup::Ptr{Cvoid} - get_version::Ptr{Cvoid} - end - mutable struct GXdpProxyResolverIface - handle::Ptr{_GXdpProxyResolverIface} - end - begin - unsafe_convert(::Type{Ptr{_GXdpProxyResolverIface}}, box::GXdpProxyResolverIface) = begin - convert(Ptr{_GXdpProxyResolverIface}, box.handle) - end - convert(::Type{GXdpProxyResolverIface}, p::Ptr{_GXdpProxyResolverIface}, owns = false) = begin - GXdpProxyResolverIface(p, owns) - end - const GXdpProxyResolverIfaceLike = Union{Ref{_GXdpProxyResolverIface}, GXdpProxyResolverIface} - end - end - begin - struct _GXdpTrashIface - parent_iface::_GTypeInterface - handle_trash_file::Ptr{Cvoid} - get_version::Ptr{Cvoid} - end - mutable struct GXdpTrashIface - handle::Ptr{_GXdpTrashIface} - end - begin - unsafe_convert(::Type{Ptr{_GXdpTrashIface}}, box::GXdpTrashIface) = begin - convert(Ptr{_GXdpTrashIface}, box.handle) - end - convert(::Type{GXdpTrashIface}, p::Ptr{_GXdpTrashIface}, owns = false) = begin - GXdpTrashIface(p, owns) - end - const GXdpTrashIfaceLike = Union{Ref{_GXdpTrashIface}, GXdpTrashIface} - end - end - begin - struct _G_FreedesktopDBusIface - parent_iface::_GTypeInterface - handle_add_match::Ptr{Nothing} - handle_get_connection_selinux_security_context::Ptr{Nothing} - handle_get_connection_unix_process_id::Ptr{Nothing} - handle_get_connection_unix_user::Ptr{Nothing} - handle_get_id::Ptr{Nothing} - handle_get_name_owner::Ptr{Nothing} - handle_hello::Ptr{Nothing} - handle_list_activatable_names::Ptr{Nothing} - handle_list_names::Ptr{Nothing} - handle_list_queued_owners::Ptr{Nothing} - handle_name_has_owner::Ptr{Nothing} - handle_release_name::Ptr{Nothing} - handle_reload_config::Ptr{Nothing} - handle_remove_match::Ptr{Nothing} - handle_request_name::Ptr{Nothing} - handle_start_service_by_name::Ptr{Nothing} - handle_update_activation_environment::Ptr{Nothing} - name_acquired::Ptr{Nothing} - name_lost::Ptr{Nothing} - name_owner_changed::Ptr{Nothing} - end - mutable struct G_FreedesktopDBusIface - handle::Ptr{_G_FreedesktopDBusIface} - end - begin - unsafe_convert(::Type{Ptr{_G_FreedesktopDBusIface}}, box::G_FreedesktopDBusIface) = begin - convert(Ptr{_G_FreedesktopDBusIface}, box.handle) - end - convert(::Type{G_FreedesktopDBusIface}, p::Ptr{_G_FreedesktopDBusIface}, owns = false) = begin - G_FreedesktopDBusIface(p, owns) - end - const G_FreedesktopDBusIfaceLike = Union{Ref{_G_FreedesktopDBusIface}, G_FreedesktopDBusIface} - end - end - begin - struct _G_FreedesktopDBusProxy - parent_instance::Ptr{GObject} - priv::Ptr{Nothing} - end - mutable struct G_FreedesktopDBusProxy - handle::Ptr{_G_FreedesktopDBusProxy} - end - begin - unsafe_convert(::Type{Ptr{_G_FreedesktopDBusProxy}}, box::G_FreedesktopDBusProxy) = begin - convert(Ptr{_G_FreedesktopDBusProxy}, box.handle) - end - convert(::Type{G_FreedesktopDBusProxy}, p::Ptr{_G_FreedesktopDBusProxy}, owns = false) = begin - G_FreedesktopDBusProxy(p, owns) - end - const G_FreedesktopDBusProxyLike = Union{Ref{_G_FreedesktopDBusProxy}, G_FreedesktopDBusProxy} - end - end - begin - struct _G_FreedesktopDBusSkeleton - parent_instance::Ptr{GObject} - priv::Ptr{Nothing} - end - mutable struct G_FreedesktopDBusSkeleton - handle::Ptr{_G_FreedesktopDBusSkeleton} - end - begin - unsafe_convert(::Type{Ptr{_G_FreedesktopDBusSkeleton}}, box::G_FreedesktopDBusSkeleton) = begin - convert(Ptr{_G_FreedesktopDBusSkeleton}, box.handle) - end - convert(::Type{G_FreedesktopDBusSkeleton}, p::Ptr{_G_FreedesktopDBusSkeleton}, owns = false) = begin - G_FreedesktopDBusSkeleton(p, owns) - end - const G_FreedesktopDBusSkeletonLike = Union{Ref{_G_FreedesktopDBusSkeleton}, G_FreedesktopDBusSkeleton} - end - end @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.DBusErrorEntry.html)." GDBusErrorEntry @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.FileAttributeInfo.html)." GFileAttributeInfo @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.FileAttributeInfoList.html)." GFileAttributeInfoList @@ -404,13 +243,6 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.SettingsSchemaKey.html)." GSettingsSchemaKey @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.SettingsSchemaSource.html)." GSettingsSchemaSource @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.SrvTarget.html)." GSrvTarget - @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.XdpDocumentsIface.html)." GXdpDocumentsIface - @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.XdpOpenURIIface.html)." GXdpOpenURIIface - @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.XdpProxyResolverIface.html)." GXdpProxyResolverIface - @doc "See the [GTK docs](https://docs.gtk.org/gio/struct.XdpTrashIface.html)." GXdpTrashIface - @doc "See the [GTK docs](https://docs.gtk.org/gio/struct._FreedesktopDBusIface.html)." G_FreedesktopDBusIface - @doc "See the [GTK docs](https://docs.gtk.org/gio/struct._FreedesktopDBusProxy.html)." G_FreedesktopDBusProxy - @doc "See the [GTK docs](https://docs.gtk.org/gio/struct._FreedesktopDBusSkeleton.html)." G_FreedesktopDBusSkeleton struct GAction <: GInterface handle::Ptr{GObject} gc::Any @@ -1151,36 +983,6 @@ $(Expr(:toplevel, quote end end end - begin - abstract type GDBusInterfaceSkeleton <: GObject end - mutable struct GDBusInterfaceSkeletonLeaf <: GDBusInterfaceSkeleton - handle::Ptr{GObject} - function GDBusInterfaceSkeletonLeaf(handle::Ptr{GObject}, owns = false) - if handle == C_NULL - error("Cannot construct GDBusInterfaceSkeletonLeaf with a NULL pointer") - end - GLib.gobject_maybe_sink(handle, owns) - return gobject_ref(new(handle)) - end - end - gtype_wrapper_cache[:GDBusInterfaceSkeleton] = GDBusInterfaceSkeletonLeaf - (GLib.g_type(::Type{T}) where T <: GDBusInterfaceSkeleton) = begin - ccall(("g_dbus_interface_skeleton_get_type", libgio), GType, ()) - end - end - begin - function GLib.signalnames(::Type{GDBusInterfaceSkeleton}) - vcat([:g_authorize_method], signalnames(supertype(GDBusInterfaceSkeleton))) - end - let d = Dict{Symbol, Tuple{Any, Any}}(:notify => (:Nothing, Any[:(Ptr{GParamSpec})]), :g_authorize_method => (:Cint, Expr[:(Ptr{GObject})])) - function GLib.signal_return_type(::Type{T}, name::Symbol) where T <: GDBusInterfaceSkeleton - eval((d[name])[1]) - end - function GLib.signal_argument_types(::Type{T}, name::Symbol) where T <: GDBusInterfaceSkeleton - Tuple(eval.((d[name])[2])) - end - end - end begin abstract type GMenuModel <: GObject end mutable struct GMenuModelLeaf <: GMenuModel @@ -1307,36 +1109,6 @@ $(Expr(:toplevel, quote end end end - begin - abstract type GDBusObjectManagerServer <: GObject end - mutable struct GDBusObjectManagerServerLeaf <: GDBusObjectManagerServer - handle::Ptr{GObject} - function GDBusObjectManagerServerLeaf(handle::Ptr{GObject}, owns = false) - if handle == C_NULL - error("Cannot construct GDBusObjectManagerServerLeaf with a NULL pointer") - end - GLib.gobject_maybe_sink(handle, owns) - return gobject_ref(new(handle)) - end - end - gtype_wrapper_cache[:GDBusObjectManagerServer] = GDBusObjectManagerServerLeaf - (GLib.g_type(::Type{T}) where T <: GDBusObjectManagerServer) = begin - ccall(("g_dbus_object_manager_server_get_type", libgio), GType, ()) - end - end - begin - function GLib.signalnames(::Type{GDBusObjectManagerServer}) - vcat([:interface_added, :interface_removed, :object_added, :object_removed], signalnames(supertype(GDBusObjectManagerServer))) - end - let d = Dict{Symbol, Tuple{Any, Any}}(:notify => (:Nothing, Any[:(Ptr{GParamSpec})])) - function GLib.signal_return_type(::Type{T}, name::Symbol) where T <: GDBusObjectManagerServer - eval((d[name])[1]) - end - function GLib.signal_argument_types(::Type{T}, name::Symbol) where T <: GDBusObjectManagerServer - Tuple(eval.((d[name])[2])) - end - end - end begin abstract type GDBusObjectProxy <: GObject end mutable struct GDBusObjectProxyLeaf <: GDBusObjectProxy @@ -1367,36 +1139,6 @@ $(Expr(:toplevel, quote end end end - begin - abstract type GDBusObjectSkeleton <: GObject end - mutable struct GDBusObjectSkeletonLeaf <: GDBusObjectSkeleton - handle::Ptr{GObject} - function GDBusObjectSkeletonLeaf(handle::Ptr{GObject}, owns = false) - if handle == C_NULL - error("Cannot construct GDBusObjectSkeletonLeaf with a NULL pointer") - end - GLib.gobject_maybe_sink(handle, owns) - return gobject_ref(new(handle)) - end - end - gtype_wrapper_cache[:GDBusObjectSkeleton] = GDBusObjectSkeletonLeaf - (GLib.g_type(::Type{T}) where T <: GDBusObjectSkeleton) = begin - ccall(("g_dbus_object_skeleton_get_type", libgio), GType, ()) - end - end - begin - function GLib.signalnames(::Type{GDBusObjectSkeleton}) - vcat([:authorize_method, :interface_added, :interface_removed], signalnames(supertype(GDBusObjectSkeleton))) - end - let d = Dict{Symbol, Tuple{Any, Any}}(:notify => (:Nothing, Any[:(Ptr{GParamSpec})]), :authorize_method => (:Cint, Expr[:(Ptr{GObject}), :(Ptr{GObject})])) - function GLib.signal_return_type(::Type{T}, name::Symbol) where T <: GDBusObjectSkeleton - eval((d[name])[1]) - end - function GLib.signal_argument_types(::Type{T}, name::Symbol) where T <: GDBusObjectSkeleton - Tuple(eval.((d[name])[2])) - end - end - end begin abstract type GDBusProxy <: GObject end mutable struct GDBusProxyLeaf <: GDBusProxy @@ -3245,21 +2987,11 @@ $(Expr(:toplevel, quote GLib.setproperties!(obj; kwargs...) obj end - function GDBusObjectManagerServer(_object_path::Union{AbstractString, Symbol}; kwargs...) - obj = G_.DBusObjectManagerServer_new(_object_path) - GLib.setproperties!(obj; kwargs...) - obj - end function GDBusObjectProxy(_connection::GDBusConnection, _object_path::Union{AbstractString, Symbol}; kwargs...) obj = G_.DBusObjectProxy_new(_connection, _object_path) GLib.setproperties!(obj; kwargs...) obj end - function GDBusObjectSkeleton(_object_path::Union{AbstractString, Symbol}; kwargs...) - obj = G_.DBusObjectSkeleton_new(_object_path) - GLib.setproperties!(obj; kwargs...) - obj - end function GDBusProxy(_res::GAsyncResult; kwargs...) obj = G_.DBusProxy_new_finish(_res) GLib.setproperties!(obj; kwargs...) @@ -3607,14 +3339,11 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusActionGroup.html)." GDBusActionGroup @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusAuthObserver.html)." GDBusAuthObserver @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusConnection.html)." GDBusConnection - @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusInterfaceSkeleton.html)." GDBusInterfaceSkeleton @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusMenuModel.html)." GDBusMenuModel @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusMessage.html)." GDBusMessage @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusMethodInvocation.html)." GDBusMethodInvocation @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusObjectManagerClient.html)." GDBusObjectManagerClient - @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusObjectManagerServer.html)." GDBusObjectManagerServer @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusObjectProxy.html)." GDBusObjectProxy - @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusObjectSkeleton.html)." GDBusObjectSkeleton @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusProxy.html)." GDBusProxy @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DBusServer.html)." GDBusServer @doc "See the [GTK docs](https://docs.gtk.org/gio/class.DataInputStream.html)." GDataInputStream @@ -3762,9 +3491,6 @@ $(Expr(:toplevel, quote function on_closed(f, object::GDBusConnection, user_data = object, after = false) GLib.signal_connect_generic(f, object, "closed", Nothing, (Cint, Ptr{GError}), after, user_data) end - function on_g_authorize_method(f, object::GDBusInterfaceSkeleton, user_data = object, after = false) - GLib.signal_connect_generic(f, object, "g-authorize-method", Cint, (Ptr{GObject},), after, user_data) - end function on_interface_proxy_properties_changed(f, object::GDBusObjectManagerClient, user_data = object, after = false) GLib.signal_connect_generic(f, object, "interface-proxy-properties-changed", Nothing, (Ptr{GObject}, Ptr{GObject}, GVariant, Ptr{Cstring}), after, user_data) end @@ -3783,33 +3509,12 @@ $(Expr(:toplevel, quote function on_object_removed(f, object::GDBusObjectManagerClient, user_data = object, after = false) GLib.signal_connect_generic(f, object, "object-removed", Nothing, (Ptr{GObject},), after, user_data) end - function on_interface_added(f, object::GDBusObjectManagerServer, user_data = object, after = false) - GLib.signal_connect_generic(f, object, "interface-added", Nothing, (Ptr{GObject}, Ptr{GObject}), after, user_data) - end - function on_interface_removed(f, object::GDBusObjectManagerServer, user_data = object, after = false) - GLib.signal_connect_generic(f, object, "interface-removed", Nothing, (Ptr{GObject}, Ptr{GObject}), after, user_data) - end - function on_object_added(f, object::GDBusObjectManagerServer, user_data = object, after = false) - GLib.signal_connect_generic(f, object, "object-added", Nothing, (Ptr{GObject},), after, user_data) - end - function on_object_removed(f, object::GDBusObjectManagerServer, user_data = object, after = false) - GLib.signal_connect_generic(f, object, "object-removed", Nothing, (Ptr{GObject},), after, user_data) - end function on_interface_added(f, object::GDBusObjectProxy, user_data = object, after = false) GLib.signal_connect_generic(f, object, "interface-added", Nothing, (Ptr{GObject},), after, user_data) end function on_interface_removed(f, object::GDBusObjectProxy, user_data = object, after = false) GLib.signal_connect_generic(f, object, "interface-removed", Nothing, (Ptr{GObject},), after, user_data) end - function on_authorize_method(f, object::GDBusObjectSkeleton, user_data = object, after = false) - GLib.signal_connect_generic(f, object, "authorize-method", Cint, (Ptr{GObject}, Ptr{GObject}), after, user_data) - end - function on_interface_added(f, object::GDBusObjectSkeleton, user_data = object, after = false) - GLib.signal_connect_generic(f, object, "interface-added", Nothing, (Ptr{GObject},), after, user_data) - end - function on_interface_removed(f, object::GDBusObjectSkeleton, user_data = object, after = false) - GLib.signal_connect_generic(f, object, "interface-removed", Nothing, (Ptr{GObject},), after, user_data) - end function on_g_properties_changed(f, object::GDBusProxy, user_data = object, after = false) GLib.signal_connect_generic(f, object, "g-properties-changed", Nothing, (GVariant, Ptr{Cstring}), after, user_data) end @@ -4112,13 +3817,6 @@ $(Expr(:toplevel, quote ret = f(file_contents, file_size) convert(Cint, ret) end - function GIOSchedulerJobFunc(job, cancellable, data) - job = convert(GIOSchedulerJob, job) - cancellable = convert_if_not_null(GCancellable, cancellable, false) - f = data - ret = f(job, cancellable) - convert(Cint, ret) - end function GPollableSourceFunc(pollable_stream, data) pollable_stream = convert(GObject, pollable_stream, false) f = data @@ -4166,6 +3864,6 @@ $(Expr(:toplevel, quote convert(Ptr{GObject}, GLib.get_pointer(ret)) end end - export GDBusErrorEntry, GDBusErrorEntryLike, _GDBusErrorEntry, GFileAttributeInfo, GFileAttributeInfoLike, _GFileAttributeInfo, GFileAttributeInfoList, GFileAttributeInfoListLike, _GFileAttributeInfoList, GFileAttributeMatcher, GInputVector, GInputVectorLike, _GInputVector, GOutputVector, GOutputVectorLike, _GOutputVector, GResource, GSettingsSchema, GSettingsSchemaKey, GSettingsSchemaSource, GSrvTarget, GXdpDocumentsIface, GXdpDocumentsIfaceLike, _GXdpDocumentsIface, GXdpOpenURIIface, GXdpOpenURIIfaceLike, _GXdpOpenURIIface, GXdpProxyResolverIface, GXdpProxyResolverIfaceLike, _GXdpProxyResolverIface, GXdpTrashIface, GXdpTrashIfaceLike, _GXdpTrashIface, G_FreedesktopDBusIface, G_FreedesktopDBusIfaceLike, _G_FreedesktopDBusIface, G_FreedesktopDBusProxy, G_FreedesktopDBusProxyLike, _G_FreedesktopDBusProxy, G_FreedesktopDBusSkeleton, G_FreedesktopDBusSkeletonLike, _G_FreedesktopDBusSkeleton, GAction, GActionGroup, GActionMap, GAppInfo, GAsyncInitable, GAsyncResult, GConverter, GDBusInterface, GDBusObject, GDBusObjectManager, GDatagramBased, GDebugController, GDrive, GDtlsClientConnection, GDtlsConnection, GDtlsServerConnection, GFile, GFileDescriptorBased, GIcon, GInitable, GListModel, GLoadableIcon, GMemoryMonitor, GMount, GNetworkMonitor, GPollableInputStream, GPollableOutputStream, GPowerProfileMonitor, GProxy, GProxyResolver, GRemoteActionGroup, GSeekable, GSocketConnectable, GTlsBackend, GTlsClientConnection, GTlsFileDatabase, GTlsServerConnection, GVolume, GAppInfoMonitor, GAppInfoMonitorLeaf, GAppLaunchContext, GAppLaunchContextLeaf, GApplication, GApplicationLeaf, GApplicationCommandLine, GApplicationCommandLineLeaf, GBufferedInputStream, GBufferedInputStreamLeaf, GBufferedOutputStream, GBufferedOutputStreamLeaf, GBytesIcon, GBytesIconLeaf, GCancellable, GCancellableLeaf, GCharsetConverter, GCharsetConverterLeaf, GConverterInputStream, GConverterInputStreamLeaf, GConverterOutputStream, GConverterOutputStreamLeaf, GCredentials, GCredentialsLeaf, GDBusActionGroup, GDBusActionGroupLeaf, GDBusAuthObserver, GDBusAuthObserverLeaf, GDBusConnection, GDBusConnectionLeaf, GDBusInterfaceSkeleton, GDBusMenuModel, GDBusMenuModelLeaf, GDBusMessage, GDBusMessageLeaf, GDBusMethodInvocation, GDBusMethodInvocationLeaf, GDBusObjectManagerClient, GDBusObjectManagerClientLeaf, GDBusObjectManagerServer, GDBusObjectManagerServerLeaf, GDBusObjectProxy, GDBusObjectProxyLeaf, GDBusObjectSkeleton, GDBusObjectSkeletonLeaf, GDBusProxy, GDBusProxyLeaf, GDBusServer, GDBusServerLeaf, GDataInputStream, GDataInputStreamLeaf, GDataOutputStream, GDataOutputStreamLeaf, GDesktopAppInfo, GDesktopAppInfoLeaf, GEmblem, GEmblemLeaf, GEmblemedIcon, GEmblemedIconLeaf, GFileEnumerator, GFileEnumeratorLeaf, GFileIOStream, GFileIOStreamLeaf, GFileIcon, GFileIconLeaf, GFileInfo, GFileInfoLeaf, GFileInputStream, GFileInputStreamLeaf, GFileMonitor, GFileOutputStream, GFileOutputStreamLeaf, GFilenameCompleter, GFilenameCompleterLeaf, GFilterInputStream, GFilterOutputStream, GIOModule, GIOModuleLeaf, GIOStream, GInetAddress, GInetAddressLeaf, GInetAddressMask, GInetAddressMaskLeaf, GInetSocketAddress, GInetSocketAddressLeaf, GInputStream, GListStore, GListStoreLeaf, GMemoryInputStream, GMemoryInputStreamLeaf, GMemoryOutputStream, GMemoryOutputStreamLeaf, GMenu, GMenuLeaf, GMenuAttributeIter, GMenuItem, GMenuItemLeaf, GMenuLinkIter, GMenuModel, GMountOperation, GMountOperationLeaf, GNativeSocketAddress, GNativeSocketAddressLeaf, GNativeVolumeMonitor, GNetworkAddress, GNetworkAddressLeaf, GNetworkService, GNetworkServiceLeaf, GNotification, GNotificationLeaf, GOutputStream, GPermission, GPropertyAction, GPropertyActionLeaf, GProxyAddress, GProxyAddressLeaf, GProxyAddressEnumerator, GProxyAddressEnumeratorLeaf, GResolver, GSettings, GSettingsLeaf, GSettingsBackend, GSimpleAction, GSimpleActionLeaf, GSimpleActionGroup, GSimpleActionGroupLeaf, GSimpleAsyncResult, GSimpleAsyncResultLeaf, GSimpleIOStream, GSimpleIOStreamLeaf, GSimplePermission, GSimplePermissionLeaf, GSimpleProxyResolver, GSimpleProxyResolverLeaf, GSocket, GSocketLeaf, GSocketAddress, GSocketAddressEnumerator, GSocketClient, GSocketClientLeaf, GSocketConnection, GSocketConnectionLeaf, GSocketControlMessage, GSocketListener, GSocketListenerLeaf, GSocketService, GSocketServiceLeaf, GSubprocess, GSubprocessLeaf, GSubprocessLauncher, GSubprocessLauncherLeaf, GTask, GTaskLeaf, GTcpConnection, GTcpConnectionLeaf, GTcpWrapperConnection, GTcpWrapperConnectionLeaf, GTestDBus, GTestDBusLeaf, GThemedIcon, GThemedIconLeaf, GThreadedResolver, GThreadedResolverLeaf, GThreadedSocketService, GThreadedSocketServiceLeaf, GTlsCertificate, GTlsConnection, GTlsDatabase, GTlsInteraction, GTlsInteractionLeaf, GTlsPassword, GTlsPasswordLeaf, GUnixConnection, GUnixConnectionLeaf, GUnixCredentialsMessage, GUnixCredentialsMessageLeaf, GVfs, GVfsLeaf, GVolumeMonitor, GVolumeMonitorLeaf, GZlibCompressor, GZlibCompressorLeaf, GZlibDecompressor, GZlibDecompressorLeaf, GAsyncReadyCallback, GBusAcquiredCallback, GBusNameAcquiredCallback, GBusNameAppearedCallback, GBusNameLostCallback, GBusNameVanishedCallback, GCancellableSourceFunc, GDBusInterfaceGetPropertyFunc, GDBusInterfaceMethodCallFunc, GDBusInterfaceSetPropertyFunc, GDBusMessageFilterFunction, GDBusProxyTypeFunc, GDBusSignalCallback, GDBusSubtreeDispatchFunc, GDBusSubtreeEnumerateFunc, GDBusSubtreeIntrospectFunc, GDatagramBasedSourceFunc, GDesktopAppLaunchCallback, GFileMeasureProgressCallback, GFileProgressCallback, GFileReadMoreCallback, GIOSchedulerJobFunc, GPollableSourceFunc, GSettingsBindGetMapping, GSettingsBindSetMapping, GSettingsGetMapping, GSocketSourceFunc, GVfsFileLookupFunc + export GDBusErrorEntry, GDBusErrorEntryLike, _GDBusErrorEntry, GFileAttributeInfo, GFileAttributeInfoLike, _GFileAttributeInfo, GFileAttributeInfoList, GFileAttributeInfoListLike, _GFileAttributeInfoList, GFileAttributeMatcher, GInputVector, GInputVectorLike, _GInputVector, GOutputVector, GOutputVectorLike, _GOutputVector, GResource, GSettingsSchema, GSettingsSchemaKey, GSettingsSchemaSource, GSrvTarget, GAction, GActionGroup, GActionMap, GAppInfo, GAsyncInitable, GAsyncResult, GConverter, GDBusInterface, GDBusObject, GDBusObjectManager, GDatagramBased, GDebugController, GDrive, GDtlsClientConnection, GDtlsConnection, GDtlsServerConnection, GFile, GFileDescriptorBased, GIcon, GInitable, GListModel, GLoadableIcon, GMemoryMonitor, GMount, GNetworkMonitor, GPollableInputStream, GPollableOutputStream, GPowerProfileMonitor, GProxy, GProxyResolver, GRemoteActionGroup, GSeekable, GSocketConnectable, GTlsBackend, GTlsClientConnection, GTlsFileDatabase, GTlsServerConnection, GVolume, GAppInfoMonitor, GAppInfoMonitorLeaf, GAppLaunchContext, GAppLaunchContextLeaf, GApplication, GApplicationLeaf, GApplicationCommandLine, GApplicationCommandLineLeaf, GBufferedInputStream, GBufferedInputStreamLeaf, GBufferedOutputStream, GBufferedOutputStreamLeaf, GBytesIcon, GBytesIconLeaf, GCancellable, GCancellableLeaf, GCharsetConverter, GCharsetConverterLeaf, GConverterInputStream, GConverterInputStreamLeaf, GConverterOutputStream, GConverterOutputStreamLeaf, GCredentials, GCredentialsLeaf, GDBusActionGroup, GDBusActionGroupLeaf, GDBusAuthObserver, GDBusAuthObserverLeaf, GDBusConnection, GDBusConnectionLeaf, GDBusMenuModel, GDBusMenuModelLeaf, GDBusMessage, GDBusMessageLeaf, GDBusMethodInvocation, GDBusMethodInvocationLeaf, GDBusObjectManagerClient, GDBusObjectManagerClientLeaf, GDBusObjectProxy, GDBusObjectProxyLeaf, GDBusProxy, GDBusProxyLeaf, GDBusServer, GDBusServerLeaf, GDataInputStream, GDataInputStreamLeaf, GDataOutputStream, GDataOutputStreamLeaf, GDesktopAppInfo, GDesktopAppInfoLeaf, GEmblem, GEmblemLeaf, GEmblemedIcon, GEmblemedIconLeaf, GFileEnumerator, GFileEnumeratorLeaf, GFileIOStream, GFileIOStreamLeaf, GFileIcon, GFileIconLeaf, GFileInfo, GFileInfoLeaf, GFileInputStream, GFileInputStreamLeaf, GFileMonitor, GFileOutputStream, GFileOutputStreamLeaf, GFilenameCompleter, GFilenameCompleterLeaf, GFilterInputStream, GFilterOutputStream, GIOModule, GIOModuleLeaf, GIOStream, GInetAddress, GInetAddressLeaf, GInetAddressMask, GInetAddressMaskLeaf, GInetSocketAddress, GInetSocketAddressLeaf, GInputStream, GListStore, GListStoreLeaf, GMemoryInputStream, GMemoryInputStreamLeaf, GMemoryOutputStream, GMemoryOutputStreamLeaf, GMenu, GMenuLeaf, GMenuAttributeIter, GMenuItem, GMenuItemLeaf, GMenuLinkIter, GMenuModel, GMountOperation, GMountOperationLeaf, GNativeSocketAddress, GNativeSocketAddressLeaf, GNativeVolumeMonitor, GNetworkAddress, GNetworkAddressLeaf, GNetworkService, GNetworkServiceLeaf, GNotification, GNotificationLeaf, GOutputStream, GPermission, GPropertyAction, GPropertyActionLeaf, GProxyAddress, GProxyAddressLeaf, GProxyAddressEnumerator, GProxyAddressEnumeratorLeaf, GResolver, GSettings, GSettingsLeaf, GSettingsBackend, GSimpleAction, GSimpleActionLeaf, GSimpleActionGroup, GSimpleActionGroupLeaf, GSimpleAsyncResult, GSimpleAsyncResultLeaf, GSimpleIOStream, GSimpleIOStreamLeaf, GSimplePermission, GSimplePermissionLeaf, GSimpleProxyResolver, GSimpleProxyResolverLeaf, GSocket, GSocketLeaf, GSocketAddress, GSocketAddressEnumerator, GSocketClient, GSocketClientLeaf, GSocketConnection, GSocketConnectionLeaf, GSocketControlMessage, GSocketListener, GSocketListenerLeaf, GSocketService, GSocketServiceLeaf, GSubprocess, GSubprocessLeaf, GSubprocessLauncher, GSubprocessLauncherLeaf, GTask, GTaskLeaf, GTcpConnection, GTcpConnectionLeaf, GTcpWrapperConnection, GTcpWrapperConnectionLeaf, GTestDBus, GTestDBusLeaf, GThemedIcon, GThemedIconLeaf, GThreadedResolver, GThreadedResolverLeaf, GThreadedSocketService, GThreadedSocketServiceLeaf, GTlsCertificate, GTlsConnection, GTlsDatabase, GTlsInteraction, GTlsInteractionLeaf, GTlsPassword, GTlsPasswordLeaf, GUnixConnection, GUnixConnectionLeaf, GUnixCredentialsMessage, GUnixCredentialsMessageLeaf, GVfs, GVfsLeaf, GVolumeMonitor, GVolumeMonitorLeaf, GZlibCompressor, GZlibCompressorLeaf, GZlibDecompressor, GZlibDecompressorLeaf, GAsyncReadyCallback, GBusAcquiredCallback, GBusNameAcquiredCallback, GBusNameAppearedCallback, GBusNameLostCallback, GBusNameVanishedCallback, GCancellableSourceFunc, GDBusInterfaceGetPropertyFunc, GDBusInterfaceMethodCallFunc, GDBusInterfaceSetPropertyFunc, GDBusMessageFilterFunction, GDBusProxyTypeFunc, GDBusSignalCallback, GDBusSubtreeDispatchFunc, GDBusSubtreeEnumerateFunc, GDBusSubtreeIntrospectFunc, GDatagramBasedSourceFunc, GDesktopAppLaunchCallback, GFileMeasureProgressCallback, GFileProgressCallback, GFileReadMoreCallback, GPollableSourceFunc, GSettingsBindGetMapping, GSettingsBindSetMapping, GSettingsGetMapping, GSocketSourceFunc, GVfsFileLookupFunc end)) end diff --git a/src/gen/glib_consts b/src/gen/glib_consts index 55afb9ec..2618014e 100644 --- a/src/gen/glib_consts +++ b/src/gen/glib_consts @@ -1,6 +1,11 @@ quote $(Expr(:toplevel, quote begin + const ALLOCATOR_LIST = 1 + const ALLOCATOR_NODE = 3 + const ALLOCATOR_SLIST = 2 + const ALLOC_AND_FREE = 2 + const ALLOC_ONLY = 1 const ANALYZER_ANALYZING = 1 const ASCII_DTOSTR_BUF_SIZE = 39 const ATOMIC_REF_COUNT_INIT = 1 @@ -82,7 +87,7 @@ $(Expr(:toplevel, quote const MININT32 = -2147483648 const MININT64 = -9223372036854775808 const MININT8 = -128 - const MINOR_VERSION = 77 + const MINOR_VERSION = 80 const MODULE_SUFFIX = "so" const OPTION_REMAINING = "" const PDP_ENDIAN = 3412 @@ -115,7 +120,6 @@ $(Expr(:toplevel, quote const TIME_SPAN_MILLISECOND = 1000 const TIME_SPAN_MINUTE = 60000000 const TIME_SPAN_SECOND = 1000000 - const TRACE_CURRENT_TIME = 0 const UNICHAR_MAX_DECOMPOSITION_LENGTH = 18 const URI_RESERVED_CHARS_GENERIC_DELIMITERS = ":/?#[]@" const URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS = "!\$&'()*+,;=" @@ -155,9 +159,10 @@ $(Expr(:toplevel, quote @cenum TimeType::Int32 TimeType_STANDARD = 0 TimeType_DAYLIGHT = 1 TimeType_UNIVERSAL = 2 @cenum TokenType::Int32 TokenType_EOF = 0 TokenType_LEFT_PAREN = 40 TokenType_RIGHT_PAREN = 41 TokenType_LEFT_CURLY = 123 TokenType_RIGHT_CURLY = 125 TokenType_LEFT_BRACE = 91 TokenType_RIGHT_BRACE = 93 TokenType_EQUAL_SIGN = 61 TokenType_COMMA = 44 TokenType_NONE = 256 TokenType_ERROR = 257 TokenType_CHAR = 258 TokenType_BINARY = 259 TokenType_OCTAL = 260 TokenType_INT = 261 TokenType_HEX = 262 TokenType_FLOAT = 263 TokenType_STRING = 264 TokenType_SYMBOL = 265 TokenType_IDENTIFIER = 266 TokenType_IDENTIFIER_NULL = 267 TokenType_COMMENT_SINGLE = 268 TokenType_COMMENT_MULTI = 269 @cenum TraverseType::Int32 TraverseType_IN_ORDER = 0 TraverseType_PRE_ORDER = 1 TraverseType_POST_ORDER = 2 TraverseType_LEVEL_ORDER = 3 - @cenum UnicodeBreakType::Int32 UnicodeBreakType_MANDATORY = 0 UnicodeBreakType_CARRIAGE_RETURN = 1 UnicodeBreakType_LINE_FEED = 2 UnicodeBreakType_COMBINING_MARK = 3 UnicodeBreakType_SURROGATE = 4 UnicodeBreakType_ZERO_WIDTH_SPACE = 5 UnicodeBreakType_INSEPARABLE = 6 UnicodeBreakType_NON_BREAKING_GLUE = 7 UnicodeBreakType_CONTINGENT = 8 UnicodeBreakType_SPACE = 9 UnicodeBreakType_AFTER = 10 UnicodeBreakType_BEFORE = 11 UnicodeBreakType_BEFORE_AND_AFTER = 12 UnicodeBreakType_HYPHEN = 13 UnicodeBreakType_NON_STARTER = 14 UnicodeBreakType_OPEN_PUNCTUATION = 15 UnicodeBreakType_CLOSE_PUNCTUATION = 16 UnicodeBreakType_QUOTATION = 17 UnicodeBreakType_EXCLAMATION = 18 UnicodeBreakType_IDEOGRAPHIC = 19 UnicodeBreakType_NUMERIC = 20 UnicodeBreakType_INFIX_SEPARATOR = 21 UnicodeBreakType_SYMBOL = 22 UnicodeBreakType_ALPHABETIC = 23 UnicodeBreakType_PREFIX = 24 UnicodeBreakType_POSTFIX = 25 UnicodeBreakType_COMPLEX_CONTEXT = 26 UnicodeBreakType_AMBIGUOUS = 27 UnicodeBreakType_UNKNOWN = 28 UnicodeBreakType_NEXT_LINE = 29 UnicodeBreakType_WORD_JOINER = 30 UnicodeBreakType_HANGUL_L_JAMO = 31 UnicodeBreakType_HANGUL_V_JAMO = 32 UnicodeBreakType_HANGUL_T_JAMO = 33 UnicodeBreakType_HANGUL_LV_SYLLABLE = 34 UnicodeBreakType_HANGUL_LVT_SYLLABLE = 35 UnicodeBreakType_CLOSE_PARANTHESIS = 36 UnicodeBreakType_CLOSE_PARENTHESIS = 36 UnicodeBreakType_CONDITIONAL_JAPANESE_STARTER = 37 UnicodeBreakType_HEBREW_LETTER = 38 UnicodeBreakType_REGIONAL_INDICATOR = 39 UnicodeBreakType_EMOJI_BASE = 40 UnicodeBreakType_EMOJI_MODIFIER = 41 UnicodeBreakType_ZERO_WIDTH_JOINER = 42 + @cenum UnicodeBreakType::Int32 UnicodeBreakType_MANDATORY = 0 UnicodeBreakType_CARRIAGE_RETURN = 1 UnicodeBreakType_LINE_FEED = 2 UnicodeBreakType_COMBINING_MARK = 3 UnicodeBreakType_SURROGATE = 4 UnicodeBreakType_ZERO_WIDTH_SPACE = 5 UnicodeBreakType_INSEPARABLE = 6 UnicodeBreakType_NON_BREAKING_GLUE = 7 UnicodeBreakType_CONTINGENT = 8 UnicodeBreakType_SPACE = 9 UnicodeBreakType_AFTER = 10 UnicodeBreakType_BEFORE = 11 UnicodeBreakType_BEFORE_AND_AFTER = 12 UnicodeBreakType_HYPHEN = 13 UnicodeBreakType_NON_STARTER = 14 UnicodeBreakType_OPEN_PUNCTUATION = 15 UnicodeBreakType_CLOSE_PUNCTUATION = 16 UnicodeBreakType_QUOTATION = 17 UnicodeBreakType_EXCLAMATION = 18 UnicodeBreakType_IDEOGRAPHIC = 19 UnicodeBreakType_NUMERIC = 20 UnicodeBreakType_INFIX_SEPARATOR = 21 UnicodeBreakType_SYMBOL = 22 UnicodeBreakType_ALPHABETIC = 23 UnicodeBreakType_PREFIX = 24 UnicodeBreakType_POSTFIX = 25 UnicodeBreakType_COMPLEX_CONTEXT = 26 UnicodeBreakType_AMBIGUOUS = 27 UnicodeBreakType_UNKNOWN = 28 UnicodeBreakType_NEXT_LINE = 29 UnicodeBreakType_WORD_JOINER = 30 UnicodeBreakType_HANGUL_L_JAMO = 31 UnicodeBreakType_HANGUL_V_JAMO = 32 UnicodeBreakType_HANGUL_T_JAMO = 33 UnicodeBreakType_HANGUL_LV_SYLLABLE = 34 UnicodeBreakType_HANGUL_LVT_SYLLABLE = 35 UnicodeBreakType_CLOSE_PARANTHESIS = 36 UnicodeBreakType_CLOSE_PARENTHESIS = 36 UnicodeBreakType_CONDITIONAL_JAPANESE_STARTER = 37 UnicodeBreakType_HEBREW_LETTER = 38 UnicodeBreakType_REGIONAL_INDICATOR = 39 UnicodeBreakType_EMOJI_BASE = 40 UnicodeBreakType_EMOJI_MODIFIER = 41 UnicodeBreakType_ZERO_WIDTH_JOINER = 42 UnicodeBreakType_AKSARA = 43 UnicodeBreakType_AKSARA_PRE_BASE = 44 UnicodeBreakType_AKSARA_START = 45 UnicodeBreakType_VIRAMA_FINAL = 46 UnicodeBreakType_VIRAMA = 47 @cenum UnicodeScript::UInt16 UnicodeScript_INVALID_CODE = 0xffff UnicodeScript_COMMON = 0x0000 UnicodeScript_INHERITED = 0x0001 UnicodeScript_ARABIC = 0x0002 UnicodeScript_ARMENIAN = 0x0003 UnicodeScript_BENGALI = 0x0004 UnicodeScript_BOPOMOFO = 0x0005 UnicodeScript_CHEROKEE = 0x0006 UnicodeScript_COPTIC = 0x0007 UnicodeScript_CYRILLIC = 0x0008 UnicodeScript_DESERET = 0x0009 UnicodeScript_DEVANAGARI = 0x000a UnicodeScript_ETHIOPIC = 0x000b UnicodeScript_GEORGIAN = 0x000c UnicodeScript_GOTHIC = 0x000d UnicodeScript_GREEK = 0x000e UnicodeScript_GUJARATI = 0x000f UnicodeScript_GURMUKHI = 0x0010 UnicodeScript_HAN = 0x0011 UnicodeScript_HANGUL = 0x0012 UnicodeScript_HEBREW = 0x0013 UnicodeScript_HIRAGANA = 0x0014 UnicodeScript_KANNADA = 0x0015 UnicodeScript_KATAKANA = 0x0016 UnicodeScript_KHMER = 0x0017 UnicodeScript_LAO = 0x0018 UnicodeScript_LATIN = 0x0019 UnicodeScript_MALAYALAM = 0x001a UnicodeScript_MONGOLIAN = 0x001b UnicodeScript_MYANMAR = 0x001c UnicodeScript_OGHAM = 0x001d UnicodeScript_OLD_ITALIC = 0x001e UnicodeScript_ORIYA = 0x001f UnicodeScript_RUNIC = 0x0020 UnicodeScript_SINHALA = 0x0021 UnicodeScript_SYRIAC = 0x0022 UnicodeScript_TAMIL = 0x0023 UnicodeScript_TELUGU = 0x0024 UnicodeScript_THAANA = 0x0025 UnicodeScript_THAI = 0x0026 UnicodeScript_TIBETAN = 0x0027 UnicodeScript_CANADIAN_ABORIGINAL = 0x0028 UnicodeScript_YI = 0x0029 UnicodeScript_TAGALOG = 0x002a UnicodeScript_HANUNOO = 0x002b UnicodeScript_BUHID = 0x002c UnicodeScript_TAGBANWA = 0x002d UnicodeScript_BRAILLE = 0x002e UnicodeScript_CYPRIOT = 0x002f UnicodeScript_LIMBU = 0x0030 UnicodeScript_OSMANYA = 0x0031 UnicodeScript_SHAVIAN = 0x0032 UnicodeScript_LINEAR_B = 0x0033 UnicodeScript_TAI_LE = 0x0034 UnicodeScript_UGARITIC = 0x0035 UnicodeScript_NEW_TAI_LUE = 0x0036 UnicodeScript_BUGINESE = 0x0037 UnicodeScript_GLAGOLITIC = 0x0038 UnicodeScript_TIFINAGH = 0x0039 UnicodeScript_SYLOTI_NAGRI = 0x003a UnicodeScript_OLD_PERSIAN = 0x003b UnicodeScript_KHAROSHTHI = 0x003c UnicodeScript_UNKNOWN = 0x003d UnicodeScript_BALINESE = 0x003e UnicodeScript_CUNEIFORM = 0x003f UnicodeScript_PHOENICIAN = 0x0040 UnicodeScript_PHAGS_PA = 0x0041 UnicodeScript_NKO = 0x0042 UnicodeScript_KAYAH_LI = 0x0043 UnicodeScript_LEPCHA = 0x0044 UnicodeScript_REJANG = 0x0045 UnicodeScript_SUNDANESE = 0x0046 UnicodeScript_SAURASHTRA = 0x0047 UnicodeScript_CHAM = 0x0048 UnicodeScript_OL_CHIKI = 0x0049 UnicodeScript_VAI = 0x004a UnicodeScript_CARIAN = 0x004b UnicodeScript_LYCIAN = 0x004c UnicodeScript_LYDIAN = 0x004d UnicodeScript_AVESTAN = 0x004e UnicodeScript_BAMUM = 0x004f UnicodeScript_EGYPTIAN_HIEROGLYPHS = 0x0050 UnicodeScript_IMPERIAL_ARAMAIC = 0x0051 UnicodeScript_INSCRIPTIONAL_PAHLAVI = 0x0052 UnicodeScript_INSCRIPTIONAL_PARTHIAN = 0x0053 UnicodeScript_JAVANESE = 0x0054 UnicodeScript_KAITHI = 0x0055 UnicodeScript_LISU = 0x0056 UnicodeScript_MEETEI_MAYEK = 0x0057 UnicodeScript_OLD_SOUTH_ARABIAN = 0x0058 UnicodeScript_OLD_TURKIC = 0x0059 UnicodeScript_SAMARITAN = 0x005a UnicodeScript_TAI_THAM = 0x005b UnicodeScript_TAI_VIET = 0x005c UnicodeScript_BATAK = 0x005d UnicodeScript_BRAHMI = 0x005e UnicodeScript_MANDAIC = 0x005f UnicodeScript_CHAKMA = 0x0060 UnicodeScript_MEROITIC_CURSIVE = 0x0061 UnicodeScript_MEROITIC_HIEROGLYPHS = 0x0062 UnicodeScript_MIAO = 0x0063 UnicodeScript_SHARADA = 0x0064 UnicodeScript_SORA_SOMPENG = 0x0065 UnicodeScript_TAKRI = 0x0066 UnicodeScript_BASSA_VAH = 0x0067 UnicodeScript_CAUCASIAN_ALBANIAN = 0x0068 UnicodeScript_DUPLOYAN = 0x0069 UnicodeScript_ELBASAN = 0x006a UnicodeScript_GRANTHA = 0x006b UnicodeScript_KHOJKI = 0x006c UnicodeScript_KHUDAWADI = 0x006d UnicodeScript_LINEAR_A = 0x006e UnicodeScript_MAHAJANI = 0x006f UnicodeScript_MANICHAEAN = 0x0070 UnicodeScript_MENDE_KIKAKUI = 0x0071 UnicodeScript_MODI = 0x0072 UnicodeScript_MRO = 0x0073 UnicodeScript_NABATAEAN = 0x0074 UnicodeScript_OLD_NORTH_ARABIAN = 0x0075 UnicodeScript_OLD_PERMIC = 0x0076 UnicodeScript_PAHAWH_HMONG = 0x0077 UnicodeScript_PALMYRENE = 0x0078 UnicodeScript_PAU_CIN_HAU = 0x0079 UnicodeScript_PSALTER_PAHLAVI = 0x007a UnicodeScript_SIDDHAM = 0x007b UnicodeScript_TIRHUTA = 0x007c UnicodeScript_WARANG_CITI = 0x007d UnicodeScript_AHOM = 0x007e UnicodeScript_ANATOLIAN_HIEROGLYPHS = 0x007f UnicodeScript_HATRAN = 0x0080 UnicodeScript_MULTANI = 0x0081 UnicodeScript_OLD_HUNGARIAN = 0x0082 UnicodeScript_SIGNWRITING = 0x0083 UnicodeScript_ADLAM = 0x0084 UnicodeScript_BHAIKSUKI = 0x0085 UnicodeScript_MARCHEN = 0x0086 UnicodeScript_NEWA = 0x0087 UnicodeScript_OSAGE = 0x0088 UnicodeScript_TANGUT = 0x0089 UnicodeScript_MASARAM_GONDI = 0x008a UnicodeScript_NUSHU = 0x008b UnicodeScript_SOYOMBO = 0x008c UnicodeScript_ZANABAZAR_SQUARE = 0x008d UnicodeScript_DOGRA = 0x008e UnicodeScript_GUNJALA_GONDI = 0x008f UnicodeScript_HANIFI_ROHINGYA = 0x0090 UnicodeScript_MAKASAR = 0x0091 UnicodeScript_MEDEFAIDRIN = 0x0092 UnicodeScript_OLD_SOGDIAN = 0x0093 UnicodeScript_SOGDIAN = 0x0094 UnicodeScript_ELYMAIC = 0x0095 UnicodeScript_NANDINAGARI = 0x0096 UnicodeScript_NYIAKENG_PUACHUE_HMONG = 0x0097 UnicodeScript_WANCHO = 0x0098 UnicodeScript_CHORASMIAN = 0x0099 UnicodeScript_DIVES_AKURU = 0x009a UnicodeScript_KHITAN_SMALL_SCRIPT = 0x009b UnicodeScript_YEZIDI = 0x009c UnicodeScript_CYPRO_MINOAN = 0x009d UnicodeScript_OLD_UYGHUR = 0x009e UnicodeScript_TANGSA = 0x009f UnicodeScript_TOTO = 0x00a0 UnicodeScript_VITHKUQI = 0x00a1 UnicodeScript_MATH = 0x00a2 UnicodeScript_KAWI = 0x00a3 UnicodeScript_NAG_MUNDARI = 0x00a4 @cenum UnicodeType::Int32 UnicodeType_CONTROL = 0 UnicodeType_FORMAT = 1 UnicodeType_UNASSIGNED = 2 UnicodeType_PRIVATE_USE = 3 UnicodeType_SURROGATE = 4 UnicodeType_LOWERCASE_LETTER = 5 UnicodeType_MODIFIER_LETTER = 6 UnicodeType_OTHER_LETTER = 7 UnicodeType_TITLECASE_LETTER = 8 UnicodeType_UPPERCASE_LETTER = 9 UnicodeType_SPACING_MARK = 10 UnicodeType_ENCLOSING_MARK = 11 UnicodeType_NON_SPACING_MARK = 12 UnicodeType_DECIMAL_NUMBER = 13 UnicodeType_LETTER_NUMBER = 14 UnicodeType_OTHER_NUMBER = 15 UnicodeType_CONNECT_PUNCTUATION = 16 UnicodeType_DASH_PUNCTUATION = 17 UnicodeType_CLOSE_PUNCTUATION = 18 UnicodeType_FINAL_PUNCTUATION = 19 UnicodeType_INITIAL_PUNCTUATION = 20 UnicodeType_OTHER_PUNCTUATION = 21 UnicodeType_OPEN_PUNCTUATION = 22 UnicodeType_CURRENCY_SYMBOL = 23 UnicodeType_MODIFIER_SYMBOL = 24 UnicodeType_MATH_SYMBOL = 25 UnicodeType_OTHER_SYMBOL = 26 UnicodeType_LINE_SEPARATOR = 27 UnicodeType_PARAGRAPH_SEPARATOR = 28 UnicodeType_SPACE_SEPARATOR = 29 + @cenum UnixPipeEnd::Int32 UnixPipeEnd_READ = 0 UnixPipeEnd_WRITE = 1 @cenum UriError::Int32 UriError_FAILED = 0 UriError_BAD_SCHEME = 1 UriError_BAD_USER = 2 UriError_BAD_PASSWORD = 3 UriError_BAD_AUTH_PARAMS = 4 UriError_BAD_HOST = 5 UriError_BAD_PORT = 6 UriError_BAD_PATH = 7 UriError_BAD_QUERY = 8 UriError_BAD_FRAGMENT = 9 @cenum UserDirectory::Int32 UserDirectory_DIRECTORY_DESKTOP = 0 UserDirectory_DIRECTORY_DOCUMENTS = 1 UserDirectory_DIRECTORY_DOWNLOAD = 2 UserDirectory_DIRECTORY_MUSIC = 3 UserDirectory_DIRECTORY_PICTURES = 4 UserDirectory_DIRECTORY_PUBLIC_SHARE = 5 UserDirectory_DIRECTORY_TEMPLATES = 6 UserDirectory_DIRECTORY_VIDEOS = 7 UserDirectory_N_DIRECTORIES = 8 @cenum VariantClass::Int32 VariantClass_BOOLEAN = 98 VariantClass_BYTE = 121 VariantClass_INT16 = 110 VariantClass_UINT16 = 113 VariantClass_INT32 = 105 VariantClass_UINT32 = 117 VariantClass_INT64 = 120 VariantClass_UINT64 = 116 VariantClass_HANDLE = 104 VariantClass_DOUBLE = 100 VariantClass_STRING = 115 VariantClass_OBJECT_PATH = 111 VariantClass_SIGNATURE = 103 VariantClass_VARIANT = 118 VariantClass_MAYBE = 109 VariantClass_ARRAY = 97 VariantClass_TUPLE = 40 VariantClass_DICT_ENTRY = 123 @@ -185,37 +190,14 @@ $(Expr(:toplevel, quote @bitflag UriParamsFlags::UInt32 UriParamsFlags_NONE = 0 UriParamsFlags_CASE_INSENSITIVE = 1 UriParamsFlags_WWW_FORM = 2 UriParamsFlags_PARSE_RELAXED = 4 @doc "See the [GTK docs](https://docs.gtk.org/glib/const.ASCII_DTOSTR_BUF_SIZE.html)." ASCII_DTOSTR_BUF_SIZE @doc "See the [GTK docs](https://docs.gtk.org/glib/const.ATOMIC_REF_COUNT_INIT.html)." ATOMIC_REF_COUNT_INIT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.BIG_ENDIAN.html)." BIG_ENDIAN @doc "See the [GTK docs](https://docs.gtk.org/glib/const.CSET_A_2_Z.html)." CSET_A_2_Z @doc "See the [GTK docs](https://docs.gtk.org/glib/const.CSET_DIGITS.html)." CSET_DIGITS @doc "See the [GTK docs](https://docs.gtk.org/glib/const.CSET_a_2_z.html)." CSET_a_2_z - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.C_STD_VERSION.html)." C_STD_VERSION @doc "See the [GTK docs](https://docs.gtk.org/glib/const.DATALIST_FLAGS_MASK.html)." DATALIST_FLAGS_MASK @doc "See the [GTK docs](https://docs.gtk.org/glib/const.DATE_BAD_DAY.html)." DATE_BAD_DAY @doc "See the [GTK docs](https://docs.gtk.org/glib/const.DATE_BAD_JULIAN.html)." DATE_BAD_JULIAN @doc "See the [GTK docs](https://docs.gtk.org/glib/const.DATE_BAD_YEAR.html)." DATE_BAD_YEAR - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.DIR_SEPARATOR.html)." DIR_SEPARATOR - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.DIR_SEPARATOR_S.html)." DIR_SEPARATOR_S - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GINT16_FORMAT.html)." GINT16_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GINT16_MODIFIER.html)." GINT16_MODIFIER - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GINT32_FORMAT.html)." GINT32_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GINT32_MODIFIER.html)." GINT32_MODIFIER - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GINT64_FORMAT.html)." GINT64_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GINT64_MODIFIER.html)." GINT64_MODIFIER - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GINTPTR_FORMAT.html)." GINTPTR_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GINTPTR_MODIFIER.html)." GINTPTR_MODIFIER - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GSIZE_FORMAT.html)." GSIZE_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GSIZE_MODIFIER.html)." GSIZE_MODIFIER - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GSSIZE_FORMAT.html)." GSSIZE_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GSSIZE_MODIFIER.html)." GSSIZE_MODIFIER - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GUINT16_FORMAT.html)." GUINT16_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GUINT32_FORMAT.html)." GUINT32_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GUINT64_FORMAT.html)." GUINT64_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.GUINTPTR_FORMAT.html)." GUINTPTR_FORMAT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.HAVE_GNUC_VISIBILITY.html)." HAVE_GNUC_VISIBILITY @doc "See the [GTK docs](https://docs.gtk.org/glib/const.HOOK_FLAG_USER_SHIFT.html)." HOOK_FLAG_USER_SHIFT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.IEEE754_DOUBLE_BIAS.html)." IEEE754_DOUBLE_BIAS - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.IEEE754_FLOAT_BIAS.html)." IEEE754_FLOAT_BIAS @doc "See the [GTK docs](https://docs.gtk.org/glib/const.KEY_FILE_DESKTOP_GROUP.html)." KEY_FILE_DESKTOP_GROUP @doc "See the [GTK docs](https://docs.gtk.org/glib/const.KEY_FILE_DESKTOP_KEY_ACTIONS.html)." KEY_FILE_DESKTOP_KEY_ACTIONS @doc "See the [GTK docs](https://docs.gtk.org/glib/const.KEY_FILE_DESKTOP_KEY_CATEGORIES.html)." KEY_FILE_DESKTOP_KEY_CATEGORIES @@ -241,19 +223,10 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/glib/const.KEY_FILE_DESKTOP_TYPE_APPLICATION.html)." KEY_FILE_DESKTOP_TYPE_APPLICATION @doc "See the [GTK docs](https://docs.gtk.org/glib/const.KEY_FILE_DESKTOP_TYPE_DIRECTORY.html)." KEY_FILE_DESKTOP_TYPE_DIRECTORY @doc "See the [GTK docs](https://docs.gtk.org/glib/const.KEY_FILE_DESKTOP_TYPE_LINK.html)." KEY_FILE_DESKTOP_TYPE_LINK - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.LITTLE_ENDIAN.html)." LITTLE_ENDIAN @doc "See the [GTK docs](https://docs.gtk.org/glib/const.LOG_DOMAIN.html)." LOG_DOMAIN @doc "See the [GTK docs](https://docs.gtk.org/glib/const.LOG_FATAL_MASK.html)." LOG_FATAL_MASK @doc "See the [GTK docs](https://docs.gtk.org/glib/const.LOG_LEVEL_USER_SHIFT.html)." LOG_LEVEL_USER_SHIFT @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MAJOR_VERSION.html)." MAJOR_VERSION - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MAXINT16.html)." MAXINT16 - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MAXINT32.html)." MAXINT32 - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MAXINT64.html)." MAXINT64 - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MAXINT8.html)." MAXINT8 - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MAXUINT16.html)." MAXUINT16 - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MAXUINT32.html)." MAXUINT32 - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MAXUINT64.html)." MAXUINT64 - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MAXUINT8.html)." MAXUINT8 @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MICRO_VERSION.html)." MICRO_VERSION @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MININT16.html)." MININT16 @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MININT32.html)." MININT32 @@ -261,7 +234,6 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MININT8.html)." MININT8 @doc "See the [GTK docs](https://docs.gtk.org/glib/const.MINOR_VERSION.html)." MINOR_VERSION @doc "See the [GTK docs](https://docs.gtk.org/glib/const.OPTION_REMAINING.html)." OPTION_REMAINING - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.PDP_ENDIAN.html)." PDP_ENDIAN @doc "See the [GTK docs](https://docs.gtk.org/glib/const.PID_FORMAT.html)." PID_FORMAT @doc "See the [GTK docs](https://docs.gtk.org/glib/const.POLLFD_FORMAT.html)." POLLFD_FORMAT @doc "See the [GTK docs](https://docs.gtk.org/glib/const.PRIORITY_DEFAULT.html)." PRIORITY_DEFAULT @@ -270,8 +242,6 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/glib/const.PRIORITY_HIGH_IDLE.html)." PRIORITY_HIGH_IDLE @doc "See the [GTK docs](https://docs.gtk.org/glib/const.PRIORITY_LOW.html)." PRIORITY_LOW @doc "See the [GTK docs](https://docs.gtk.org/glib/const.REF_COUNT_INIT.html)." REF_COUNT_INIT - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.SEARCHPATH_SEPARATOR.html)." SEARCHPATH_SEPARATOR - @doc "See the [GTK docs](https://docs.gtk.org/glib/const.SEARCHPATH_SEPARATOR_S.html)." SEARCHPATH_SEPARATOR_S @doc "See the [GTK docs](https://docs.gtk.org/glib/const.SOURCE_CONTINUE.html)." SOURCE_CONTINUE @doc "See the [GTK docs](https://docs.gtk.org/glib/const.SOURCE_REMOVE.html)." SOURCE_REMOVE @doc "See the [GTK docs](https://docs.gtk.org/glib/const.STR_DELIMITERS.html)." STR_DELIMITERS @@ -317,6 +287,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/glib/enum.UnicodeBreakType.html)." UnicodeBreakType @doc "See the [GTK docs](https://docs.gtk.org/glib/enum.UnicodeScript.html)." UnicodeScript @doc "See the [GTK docs](https://docs.gtk.org/glib/enum.UnicodeType.html)." UnicodeType + @doc "See the [GTK docs](https://docs.gtk.org/glib/enum.UnixPipeEnd.html)." UnixPipeEnd @doc "See the [GTK docs](https://docs.gtk.org/glib/enum.UriError.html)." UriError @doc "See the [GTK docs](https://docs.gtk.org/glib/enum.UserDirectory.html)." UserDirectory @doc "See the [GTK docs](https://docs.gtk.org/glib/enum.VariantClass.html)." VariantClass @@ -347,13 +318,14 @@ $(Expr(:toplevel, quote const SIGNAL_FLAGS_MASK = 511 const SIGNAL_MATCH_MASK = 63 const TYPE_FLAG_RESERVED_ID_BIT = 0x0000000000000001 - const TYPE_FUNDAMENTAL_MAX = 255 + const TYPE_FUNDAMENTAL_MAX = 1020 const TYPE_FUNDAMENTAL_SHIFT = 2 const TYPE_RESERVED_BSE_FIRST = 32 const TYPE_RESERVED_BSE_LAST = 48 const TYPE_RESERVED_GLIB_FIRST = 22 const TYPE_RESERVED_GLIB_LAST = 31 const TYPE_RESERVED_USER_FIRST = 49 + const VALUE_COLLECT_FORMAT_MAX_LENGTH = 8 const VALUE_INTERNED_STRING = 268435456 const VALUE_NOCOPY_CONTENTS = 134217728 begin @@ -381,6 +353,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gobject/const.TYPE_RESERVED_GLIB_FIRST.html)." TYPE_RESERVED_GLIB_FIRST @doc "See the [GTK docs](https://docs.gtk.org/gobject/const.TYPE_RESERVED_GLIB_LAST.html)." TYPE_RESERVED_GLIB_LAST @doc "See the [GTK docs](https://docs.gtk.org/gobject/const.TYPE_RESERVED_USER_FIRST.html)." TYPE_RESERVED_USER_FIRST + @doc "See the [GTK docs](https://docs.gtk.org/gobject/const.VALUE_COLLECT_FORMAT_MAX_LENGTH.html)." VALUE_COLLECT_FORMAT_MAX_LENGTH @doc "See the [GTK docs](https://docs.gtk.org/gobject/const.VALUE_INTERNED_STRING.html)." VALUE_INTERNED_STRING @doc "See the [GTK docs](https://docs.gtk.org/gobject/const.VALUE_NOCOPY_CONTENTS.html)." VALUE_NOCOPY_CONTENTS @doc "See the [GTK docs](https://docs.gtk.org/gobject/flags.BindingFlags.html)." BindingFlags @@ -615,7 +588,7 @@ $(Expr(:toplevel, quote end end begin - @cenum IOErrorEnum::Int32 IOErrorEnum_FAILED = 0 IOErrorEnum_NOT_FOUND = 1 IOErrorEnum_EXISTS = 2 IOErrorEnum_IS_DIRECTORY = 3 IOErrorEnum_NOT_DIRECTORY = 4 IOErrorEnum_NOT_EMPTY = 5 IOErrorEnum_NOT_REGULAR_FILE = 6 IOErrorEnum_NOT_SYMBOLIC_LINK = 7 IOErrorEnum_NOT_MOUNTABLE_FILE = 8 IOErrorEnum_FILENAME_TOO_LONG = 9 IOErrorEnum_INVALID_FILENAME = 10 IOErrorEnum_TOO_MANY_LINKS = 11 IOErrorEnum_NO_SPACE = 12 IOErrorEnum_INVALID_ARGUMENT = 13 IOErrorEnum_PERMISSION_DENIED = 14 IOErrorEnum_NOT_SUPPORTED = 15 IOErrorEnum_NOT_MOUNTED = 16 IOErrorEnum_ALREADY_MOUNTED = 17 IOErrorEnum_CLOSED = 18 IOErrorEnum_CANCELLED = 19 IOErrorEnum_PENDING = 20 IOErrorEnum_READ_ONLY = 21 IOErrorEnum_CANT_CREATE_BACKUP = 22 IOErrorEnum_WRONG_ETAG = 23 IOErrorEnum_TIMED_OUT = 24 IOErrorEnum_WOULD_RECURSE = 25 IOErrorEnum_BUSY = 26 IOErrorEnum_WOULD_BLOCK = 27 IOErrorEnum_HOST_NOT_FOUND = 28 IOErrorEnum_WOULD_MERGE = 29 IOErrorEnum_FAILED_HANDLED = 30 IOErrorEnum_TOO_MANY_OPEN_FILES = 31 IOErrorEnum_NOT_INITIALIZED = 32 IOErrorEnum_ADDRESS_IN_USE = 33 IOErrorEnum_PARTIAL_INPUT = 34 IOErrorEnum_INVALID_DATA = 35 IOErrorEnum_DBUS_ERROR = 36 IOErrorEnum_HOST_UNREACHABLE = 37 IOErrorEnum_NETWORK_UNREACHABLE = 38 IOErrorEnum_CONNECTION_REFUSED = 39 IOErrorEnum_PROXY_FAILED = 40 IOErrorEnum_PROXY_AUTH_FAILED = 41 IOErrorEnum_PROXY_NEED_AUTH = 42 IOErrorEnum_PROXY_NOT_ALLOWED = 43 IOErrorEnum_BROKEN_PIPE = 44 IOErrorEnum_CONNECTION_CLOSED = 44 IOErrorEnum_NOT_CONNECTED = 45 IOErrorEnum_MESSAGE_TOO_LARGE = 46 IOErrorEnum_NO_SUCH_DEVICE = 47 + @cenum IOErrorEnum::Int32 IOErrorEnum_FAILED = 0 IOErrorEnum_NOT_FOUND = 1 IOErrorEnum_EXISTS = 2 IOErrorEnum_IS_DIRECTORY = 3 IOErrorEnum_NOT_DIRECTORY = 4 IOErrorEnum_NOT_EMPTY = 5 IOErrorEnum_NOT_REGULAR_FILE = 6 IOErrorEnum_NOT_SYMBOLIC_LINK = 7 IOErrorEnum_NOT_MOUNTABLE_FILE = 8 IOErrorEnum_FILENAME_TOO_LONG = 9 IOErrorEnum_INVALID_FILENAME = 10 IOErrorEnum_TOO_MANY_LINKS = 11 IOErrorEnum_NO_SPACE = 12 IOErrorEnum_INVALID_ARGUMENT = 13 IOErrorEnum_PERMISSION_DENIED = 14 IOErrorEnum_NOT_SUPPORTED = 15 IOErrorEnum_NOT_MOUNTED = 16 IOErrorEnum_ALREADY_MOUNTED = 17 IOErrorEnum_CLOSED = 18 IOErrorEnum_CANCELLED = 19 IOErrorEnum_PENDING = 20 IOErrorEnum_READ_ONLY = 21 IOErrorEnum_CANT_CREATE_BACKUP = 22 IOErrorEnum_WRONG_ETAG = 23 IOErrorEnum_TIMED_OUT = 24 IOErrorEnum_WOULD_RECURSE = 25 IOErrorEnum_BUSY = 26 IOErrorEnum_WOULD_BLOCK = 27 IOErrorEnum_HOST_NOT_FOUND = 28 IOErrorEnum_WOULD_MERGE = 29 IOErrorEnum_FAILED_HANDLED = 30 IOErrorEnum_TOO_MANY_OPEN_FILES = 31 IOErrorEnum_NOT_INITIALIZED = 32 IOErrorEnum_ADDRESS_IN_USE = 33 IOErrorEnum_PARTIAL_INPUT = 34 IOErrorEnum_INVALID_DATA = 35 IOErrorEnum_DBUS_ERROR = 36 IOErrorEnum_HOST_UNREACHABLE = 37 IOErrorEnum_NETWORK_UNREACHABLE = 38 IOErrorEnum_CONNECTION_REFUSED = 39 IOErrorEnum_PROXY_FAILED = 40 IOErrorEnum_PROXY_AUTH_FAILED = 41 IOErrorEnum_PROXY_NEED_AUTH = 42 IOErrorEnum_PROXY_NOT_ALLOWED = 43 IOErrorEnum_BROKEN_PIPE = 44 IOErrorEnum_CONNECTION_CLOSED = 44 IOErrorEnum_NOT_CONNECTED = 45 IOErrorEnum_MESSAGE_TOO_LARGE = 46 IOErrorEnum_NO_SUCH_DEVICE = 47 IOErrorEnum_DESTINATION_UNSET = 48 (GLib.g_type(::Type{T}) where T <: IOErrorEnum) = begin ccall(("g_io_error_enum_get_type", libgio), GType, ()) end @@ -752,7 +725,6 @@ $(Expr(:toplevel, quote ccall(("g_tls_interaction_result_get_type", libgio), GType, ()) end end - @cenum TlsProtocolVersion::Int32 TlsProtocolVersion_UNKNOWN = 0 TlsProtocolVersion_SSL_3_0 = 1 TlsProtocolVersion_TLS_1_0 = 2 TlsProtocolVersion_TLS_1_1 = 3 TlsProtocolVersion_TLS_1_2 = 4 TlsProtocolVersion_TLS_1_3 = 5 TlsProtocolVersion_DTLS_1_0 = 201 TlsProtocolVersion_DTLS_1_2 = 202 begin @cenum UnixSocketAddressType::Int32 UnixSocketAddressType_INVALID = 0 UnixSocketAddressType_ANONYMOUS = 1 UnixSocketAddressType_PATH = 2 UnixSocketAddressType_ABSTRACT = 3 UnixSocketAddressType_ABSTRACT_PADDED = 4 (GLib.g_type(::Type{T}) where T <: UnixSocketAddressType) = begin @@ -886,7 +858,7 @@ $(Expr(:toplevel, quote end end begin - @bitflag FileCopyFlags::UInt32 FileCopyFlags_NONE = 0 FileCopyFlags_OVERWRITE = 1 FileCopyFlags_BACKUP = 2 FileCopyFlags_NOFOLLOW_SYMLINKS = 4 FileCopyFlags_ALL_METADATA = 8 FileCopyFlags_NO_FALLBACK_FOR_MOVE = 16 FileCopyFlags_TARGET_DEFAULT_PERMS = 32 + @bitflag FileCopyFlags::UInt32 FileCopyFlags_NONE = 0 FileCopyFlags_OVERWRITE = 1 FileCopyFlags_BACKUP = 2 FileCopyFlags_NOFOLLOW_SYMLINKS = 4 FileCopyFlags_ALL_METADATA = 8 FileCopyFlags_NO_FALLBACK_FOR_MOVE = 16 FileCopyFlags_TARGET_DEFAULT_PERMS = 32 FileCopyFlags_TARGET_DEFAULT_MODIFIED_TIME = 64 (GLib.g_type(::Type{T}) where T <: FileCopyFlags) = begin ccall(("g_file_copy_flags_get_type", libgio), GType, ()) end @@ -1165,7 +1137,6 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gio/enum.TlsDatabaseLookupFlags.html)." TlsDatabaseLookupFlags @doc "See the [GTK docs](https://docs.gtk.org/gio/enum.TlsError.html)." TlsError @doc "See the [GTK docs](https://docs.gtk.org/gio/enum.TlsInteractionResult.html)." TlsInteractionResult - @doc "See the [GTK docs](https://docs.gtk.org/gio/enum.TlsProtocolVersion.html)." TlsProtocolVersion @doc "See the [GTK docs](https://docs.gtk.org/gio/enum.UnixSocketAddressType.html)." UnixSocketAddressType @doc "See the [GTK docs](https://docs.gtk.org/gio/enum.ZlibCompressorFormat.html)." ZlibCompressorFormat @doc "See the [GTK docs](https://docs.gtk.org/gio/flags.AppInfoCreateFlags.html)." AppInfoCreateFlags @@ -1207,7 +1178,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gio/flags.TlsCertificateFlags.html)." TlsCertificateFlags @doc "See the [GTK docs](https://docs.gtk.org/gio/flags.TlsDatabaseVerifyFlags.html)." TlsDatabaseVerifyFlags @doc "See the [GTK docs](https://docs.gtk.org/gio/flags.TlsPasswordFlags.html)." TlsPasswordFlags - export BookmarkFileError, ChecksumType, ConvertError, DateDMY, DateMonth, DateWeekday, ErrorType, FileError, IOChannelError, IOError, IOStatus, KeyFileError, LogWriterOutput, MarkupError, NormalizeMode, NumberParserError, OnceStatus, OptionArg, OptionError, RegexError, SeekType, ShellError, SliceConfig, SpawnError, TestFileType, TestLogType, TestResult, ThreadError, TimeType, TokenType, TraverseType, UnicodeBreakType, UnicodeScript, UnicodeType, UriError, UserDirectory, VariantClass, VariantParseError, AsciiType, FileSetContentsFlags, FileTest, FormatSizeFlags, HookFlagMask, IOCondition, IOFlags, KeyFileFlags, LogLevelFlags, MainContextFlags, MarkupCollectType, MarkupParseFlags, OptionFlags, RegexCompileFlags, RegexMatchFlags, SpawnFlags, TestSubprocessFlags, TraverseFlags, UriFlags, UriHideFlags, UriParamsFlags, BindingFlags, ConnectFlags, ParamFlags, SignalFlags, SignalMatchType, TypeFlags, TypeFundamentalFlags, BusType, ConverterResult, CredentialsType, DBusError, DBusMessageByteOrder, DBusMessageHeaderField, DBusMessageType, DataStreamByteOrder, DataStreamNewlineType, DriveStartStopType, EmblemOrigin, FileAttributeStatus, FileAttributeType, FileMonitorEvent, FileType, FilesystemPreviewType, IOErrorEnum, IOModuleScopeFlags, MemoryMonitorWarningLevel, MountOperationResult, NetworkConnectivity, NotificationPriority, PasswordSave, PollableReturn, ResolverError, ResolverRecordType, ResourceError, SocketClientEvent, SocketFamily, SocketListenerEvent, SocketProtocol, SocketType, TlsAuthenticationMode, TlsCertificateRequestFlags, TlsChannelBindingError, TlsChannelBindingType, TlsDatabaseLookupFlags, TlsError, TlsInteractionResult, TlsProtocolVersion, UnixSocketAddressType, ZlibCompressorFormat, AppInfoCreateFlags, ApplicationFlags, AskPasswordFlags, BusNameOwnerFlags, BusNameWatcherFlags, ConverterFlags, DBusCallFlags, DBusCapabilityFlags, DBusConnectionFlags, DBusInterfaceSkeletonFlags, DBusMessageFlags, DBusObjectManagerClientFlags, DBusPropertyInfoFlags, DBusProxyFlags, DBusSendMessageFlags, DBusServerFlags, DBusSignalFlags, DBusSubtreeFlags, DriveStartFlags, FileAttributeInfoFlags, FileCopyFlags, FileCreateFlags, FileMeasureFlags, FileMonitorFlags, FileQueryInfoFlags, IOStreamSpliceFlags, MountMountFlags, MountUnmountFlags, OutputStreamSpliceFlags, ResolverNameLookupFlags, ResourceFlags, ResourceLookupFlags, SettingsBindFlags, SocketMsgFlags, SubprocessFlags, TestDBusFlags, TlsCertificateFlags, TlsDatabaseVerifyFlags, TlsPasswordFlags + export BookmarkFileError, ChecksumType, ConvertError, DateDMY, DateMonth, DateWeekday, ErrorType, FileError, IOChannelError, IOError, IOStatus, KeyFileError, LogWriterOutput, MarkupError, NormalizeMode, NumberParserError, OnceStatus, OptionArg, OptionError, RegexError, SeekType, ShellError, SliceConfig, SpawnError, TestFileType, TestLogType, TestResult, ThreadError, TimeType, TokenType, TraverseType, UnicodeBreakType, UnicodeScript, UnicodeType, UnixPipeEnd, UriError, UserDirectory, VariantClass, VariantParseError, AsciiType, FileSetContentsFlags, FileTest, FormatSizeFlags, HookFlagMask, IOCondition, IOFlags, KeyFileFlags, LogLevelFlags, MainContextFlags, MarkupCollectType, MarkupParseFlags, OptionFlags, RegexCompileFlags, RegexMatchFlags, SpawnFlags, TestSubprocessFlags, TraverseFlags, UriFlags, UriHideFlags, UriParamsFlags, BindingFlags, ConnectFlags, ParamFlags, SignalFlags, SignalMatchType, TypeFlags, TypeFundamentalFlags, BusType, ConverterResult, CredentialsType, DBusError, DBusMessageByteOrder, DBusMessageHeaderField, DBusMessageType, DataStreamByteOrder, DataStreamNewlineType, DriveStartStopType, EmblemOrigin, FileAttributeStatus, FileAttributeType, FileMonitorEvent, FileType, FilesystemPreviewType, IOErrorEnum, IOModuleScopeFlags, MemoryMonitorWarningLevel, MountOperationResult, NetworkConnectivity, NotificationPriority, PasswordSave, PollableReturn, ResolverError, ResolverRecordType, ResourceError, SocketClientEvent, SocketFamily, SocketListenerEvent, SocketProtocol, SocketType, TlsAuthenticationMode, TlsCertificateRequestFlags, TlsChannelBindingError, TlsChannelBindingType, TlsDatabaseLookupFlags, TlsError, TlsInteractionResult, UnixSocketAddressType, ZlibCompressorFormat, AppInfoCreateFlags, ApplicationFlags, AskPasswordFlags, BusNameOwnerFlags, BusNameWatcherFlags, ConverterFlags, DBusCallFlags, DBusCapabilityFlags, DBusConnectionFlags, DBusInterfaceSkeletonFlags, DBusMessageFlags, DBusObjectManagerClientFlags, DBusPropertyInfoFlags, DBusProxyFlags, DBusSendMessageFlags, DBusServerFlags, DBusSignalFlags, DBusSubtreeFlags, DriveStartFlags, FileAttributeInfoFlags, FileCopyFlags, FileCreateFlags, FileMeasureFlags, FileMonitorFlags, FileQueryInfoFlags, IOStreamSpliceFlags, MountMountFlags, MountUnmountFlags, OutputStreamSpliceFlags, ResolverNameLookupFlags, ResourceFlags, ResourceLookupFlags, SettingsBindFlags, SocketMsgFlags, SubprocessFlags, TestDBusFlags, TlsCertificateFlags, TlsDatabaseVerifyFlags, TlsPasswordFlags end end)) end diff --git a/src/gen/glib_functions b/src/gen/glib_functions index 93bc26c0..cc774a60 100644 --- a/src/gen/glib_functions +++ b/src/gen/glib_functions @@ -333,6 +333,10 @@ $(Expr(:toplevel, quote ret = ccall(("g_bit_unlock", libglib), Nothing, (Ptr{Int32}, Int32), _address, _lock_bit) nothing end + function blow_chunks() + ret = ccall(("g_blow_chunks", libglib), Nothing, ()) + nothing + end function bookmark_file_error_quark() ret = ccall(("g_bookmark_file_error_quark", libglib), UInt32, ()) ret @@ -347,6 +351,11 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, true) ret2 end + function byte_array_append(_array, _data::UInt8, _len::Integer) + ret = ccall(("g_byte_array_append", libglib), Ptr{GByteArray}, (Ptr{GByteArray}, Ptr{UInt8}, UInt32), _array, _data, _len) + ret2 = convert(GByteArray, ret, false) + ret2 + end function byte_array_free(_array, _free_segment::Bool) ret = ccall(("g_byte_array_free", libglib), Ptr{UInt8}, (Ptr{GByteArray}, Cint), _array, _free_segment) ret2 = convert(UInt8, ret) @@ -369,6 +378,52 @@ $(Expr(:toplevel, quote ret2 = convert(GByteArray, ret, true) ret2 end + function byte_array_prepend(_array, _data::UInt8, _len::Integer) + ret = ccall(("g_byte_array_prepend", libglib), Ptr{GByteArray}, (Ptr{GByteArray}, Ptr{UInt8}, UInt32), _array, _data, _len) + ret2 = convert(GByteArray, ret, false) + ret2 + end + function byte_array_ref(_array) + ret = ccall(("g_byte_array_ref", libglib), Ptr{GByteArray}, (Ptr{GByteArray},), _array) + ret2 = convert(GByteArray, ret, true) + ret2 + end + function byte_array_remove_index(_array, _index_::Integer) + ret = ccall(("g_byte_array_remove_index", libglib), Ptr{GByteArray}, (Ptr{GByteArray}, UInt32), _array, _index_) + ret2 = convert(GByteArray, ret, false) + ret2 + end + function byte_array_remove_index_fast(_array, _index_::Integer) + ret = ccall(("g_byte_array_remove_index_fast", libglib), Ptr{GByteArray}, (Ptr{GByteArray}, UInt32), _array, _index_) + ret2 = convert(GByteArray, ret, false) + ret2 + end + function byte_array_remove_range(_array, _index_::Integer, _length::Integer) + ret = ccall(("g_byte_array_remove_range", libglib), Ptr{GByteArray}, (Ptr{GByteArray}, UInt32, UInt32), _array, _index_, _length) + ret2 = convert(GByteArray, ret, false) + ret2 + end + function byte_array_set_size(_array, _length::Integer) + ret = ccall(("g_byte_array_set_size", libglib), Ptr{GByteArray}, (Ptr{GByteArray}, UInt32), _array, _length) + ret2 = convert(GByteArray, ret, false) + ret2 + end + function byte_array_sized_new(_reserved_size::Integer) + ret = ccall(("g_byte_array_sized_new", libglib), Ptr{GByteArray}, (UInt32,), _reserved_size) + ret2 = convert(GByteArray, ret, true) + ret2 + end + function byte_array_sort_with_data(_array, _compare_func::Function) + begin + _compare_func_cfunc = @cfunction(GCompareDataFunc, Int32, (Ptr{Nothing}, Ptr{Nothing}, Ref{Function})) + begin + ref = Ref{Any}(_compare_func) + _compare_func_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) + end + end + ret = ccall(("g_byte_array_sort_with_data", libglib), Nothing, (Ptr{GByteArray}, Ptr{Cvoid}, Ptr{Nothing}), _array, _compare_func_cfunc, _compare_func_closure) + nothing + end function byte_array_steal(_array) m_len = Ref{UInt64}() ret = ccall(("g_byte_array_steal", libglib), Ptr{UInt8}, (Ptr{GByteArray}, Ptr{UInt64}), _array, m_len) @@ -399,6 +454,10 @@ $(Expr(:toplevel, quote ret = ccall(("g_checksum_type_get_length", libglib), Int64, (UInt32,), _checksum_type) ret end + function chmod(_filename::Union{AbstractString, Symbol}, _mode::Integer) + ret = ccall(("g_chmod", libglib), Int32, (Cstring, Int32), _filename, _mode) + ret + end function clear_error() err = err_buf() ret = ccall(("g_clear_error", libglib), Nothing, (Ptr{Ptr{GError}},), err) @@ -412,6 +471,10 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function closefrom(_lowfd::Integer) + ret = ccall(("g_closefrom", libglib), Int32, (Int32,), _lowfd) + ret + end function compute_checksum_for_bytes(_checksum_type, _data::GBytes) ret = ccall(("g_compute_checksum_for_bytes", libglib), Cstring, (UInt32, Ptr{GBytes}), _checksum_type, _data) ret2 = string_or_nothing(ret, true) @@ -471,6 +534,10 @@ $(Expr(:toplevel, quote _bytes_written = m_bytes_written[] (ret2, _bytes_read) end + function creat(_filename::Union{AbstractString, Symbol}, _mode::Integer) + ret = ccall(("g_creat", libglib), Int32, (Cstring, Int32), _filename, _mode) + ret + end function dataset_destroy(_dataset_location::Nothing) ret = ccall(("g_dataset_destroy", libglib), Nothing, (Ptr{Nothing},), _dataset_location) nothing @@ -614,6 +681,10 @@ $(Expr(:toplevel, quote end ret2 end + function fdwalk_set_cloexec(_lowfd::Integer) + ret = ccall(("g_fdwalk_set_cloexec", libglib), Int32, (Int32,), _lowfd) + ret + end function file_error_from_errno(_err_no::Integer) ret = ccall(("g_file_error_from_errno", libglib), UInt32, (Int32,), _err_no) ret2 = FileError(ret) @@ -735,6 +806,11 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, true) ret2 end + function fopen(_filename::Union{AbstractString, Symbol}, _mode::Union{AbstractString, Symbol}) + ret = ccall(("g_fopen", libglib), Ptr{Nothing}, (Cstring, Cstring), _filename, _mode) + ret2 = convert(Nothing, ret) + ret2 + end function format_size(_size::Integer) ret = ccall(("g_format_size", libglib), Cstring, (UInt64,), _size) ret2 = string_or_nothing(ret, true) @@ -755,6 +831,16 @@ $(Expr(:toplevel, quote ret = ccall(("g_free_sized", libglib), Nothing, (Ptr{Nothing}, UInt64), _mem_maybe, _size) nothing end + function freopen(_filename::Union{AbstractString, Symbol}, _mode::Union{AbstractString, Symbol}, _stream::Maybe(Nothing)) + _stream_maybe = nothing_to_null(_stream) + ret = ccall(("g_freopen", libglib), Ptr{Nothing}, (Cstring, Cstring, Ptr{Nothing}), _filename, _mode, _stream_maybe) + ret2 = convert(Nothing, ret) + ret2 + end + function fsync(_fd::Integer) + ret = ccall(("g_fsync", libglib), Int32, (Int32,), _fd) + ret + end function get_application_name() ret = ccall(("g_get_application_name", libglib), Cstring, ()) ret2 = string_or_nothing(ret, false) @@ -952,6 +1038,51 @@ $(Expr(:toplevel, quote ret = ccall(("g_hash_table_destroy", libglib), Nothing, (Ptr{GHashTable},), _hash_table) nothing end + function hash_table_find(_hash_table, _predicate::Function) + begin + _predicate_cfunc = @cfunction(GHRFunc, Cint, (Ptr{Nothing}, Ptr{Nothing}, Ref{Function})) + begin + ref = Ref{Any}(_predicate) + _predicate_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) + end + end + ret = ccall(("g_hash_table_find", libglib), Ptr{Nothing}, (Ptr{GHashTable}, Ptr{Cvoid}, Ptr{Nothing}), _hash_table, _predicate_cfunc, _predicate_closure) + ret2 = convert(Nothing, ret) + ret2 + end + function hash_table_foreach(_hash_table, _func::Function) + begin + _func_cfunc = @cfunction(GHFunc, Nothing, (Ptr{Nothing}, Ptr{Nothing}, Ref{Function})) + begin + ref = Ref{Any}(_func) + _func_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) + end + end + ret = ccall(("g_hash_table_foreach", libglib), Nothing, (Ptr{GHashTable}, Ptr{Cvoid}, Ptr{Nothing}), _hash_table, _func_cfunc, _func_closure) + nothing + end + function hash_table_foreach_remove(_hash_table, _func::Function) + begin + _func_cfunc = @cfunction(GHRFunc, Cint, (Ptr{Nothing}, Ptr{Nothing}, Ref{Function})) + begin + ref = Ref{Any}(_func) + _func_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) + end + end + ret = ccall(("g_hash_table_foreach_remove", libglib), UInt32, (Ptr{GHashTable}, Ptr{Cvoid}, Ptr{Nothing}), _hash_table, _func_cfunc, _func_closure) + ret + end + function hash_table_foreach_steal(_hash_table, _func::Function) + begin + _func_cfunc = @cfunction(GHRFunc, Cint, (Ptr{Nothing}, Ptr{Nothing}, Ref{Function})) + begin + ref = Ref{Any}(_func) + _func_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) + end + end + ret = ccall(("g_hash_table_foreach_steal", libglib), UInt32, (Ptr{GHashTable}, Ptr{Cvoid}, Ptr{Nothing}), _hash_table, _func_cfunc, _func_closure) + ret + end function hash_table_insert(_hash_table, _key::Maybe(Nothing), _value::Maybe(Nothing)) _key_maybe = nothing_to_null(_key) _value_maybe = nothing_to_null(_value) @@ -981,6 +1112,10 @@ $(Expr(:toplevel, quote ret = ccall(("g_hash_table_new_similar", libglib), Ptr{GHashTable}, (Ptr{GHashTable},), _other_hash_table) ret end + function hash_table_ref(_hash_table) + ret = ccall(("g_hash_table_ref", libglib), Ptr{GHashTable}, (Ptr{GHashTable},), _hash_table) + ret + end function hash_table_remove(_hash_table, _key::Maybe(Nothing)) _key_maybe = nothing_to_null(_key) ret = ccall(("g_hash_table_remove", libglib), Cint, (Ptr{GHashTable}, Ptr{Nothing}), _hash_table, _key_maybe) @@ -1102,6 +1237,10 @@ $(Expr(:toplevel, quote ret = ccall(("g_key_file_error_quark", libglib), UInt32, ()) ret end + function list_pop_allocator() + ret = ccall(("g_list_pop_allocator", libglib), Nothing, ()) + nothing + end function listenv() ret = ccall(("g_listenv", libglib), Ptr{Cstring}, ()) ret2 = begin @@ -1175,6 +1314,11 @@ $(Expr(:toplevel, quote ret = ccall(("g_log_variant", libglib), Nothing, (Cstring, UInt32, Ptr{GVariant}), _log_domain_maybe, _log_level, _fields) nothing end + function log_writer_default_set_debug_domains(_domains::Maybe(Union{AbstractString, Symbol})) + _domains_maybe = nothing_to_null(_domains) + ret = ccall(("g_log_writer_default_set_debug_domains", libglib), Nothing, (Cstring,), _domains_maybe) + nothing + end function log_writer_default_set_use_stderr(_use_stderr::Bool) ret = ccall(("g_log_writer_default_set_use_stderr", libglib), Nothing, (Cint,), _use_stderr) nothing @@ -1195,6 +1339,14 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function log_writer_syslog(_log_level, _fields, _user_data::Maybe(Nothing)) + _fields_arr = convert(Vector{_GLogField}, _fields) + _user_data_maybe = nothing_to_null(_user_data) + _n_fields = length(_fields) + ret = ccall(("g_log_writer_syslog", libglib), UInt32, (UInt32, Ptr{_GLogField}, UInt64, Ptr{Nothing}), _log_level, _fields_arr, _n_fields, _user_data_maybe) + ret2 = LogWriterOutput(ret) + ret2 + end function main_context_default() ret = ccall(("g_main_context_default", libglib), Ptr{GMainContext}, ()) ret2 = convert(GMainContext, ret, false) @@ -1243,16 +1395,28 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, true) ret2 end + function mem_chunk_info() + ret = ccall(("g_mem_chunk_info", libglib), Nothing, ()) + nothing + end function memdup2(_mem::Maybe(Nothing), _byte_size::Integer) _mem_maybe = nothing_to_null(_mem) ret = ccall(("g_memdup2", libglib), Ptr{Nothing}, (Ptr{Nothing}, UInt64), _mem_maybe, _byte_size) ret2 = convert(Nothing, ret) ret2 end + function mkdir(_filename::Union{AbstractString, Symbol}, _mode::Integer) + ret = ccall(("g_mkdir", libglib), Int32, (Cstring, Int32), _filename, _mode) + ret + end function mkdir_with_parents(_pathname::Union{AbstractString, Symbol}, _mode::Integer) ret = ccall(("g_mkdir_with_parents", libglib), Int32, (Cstring, Int32), _pathname, _mode) ret end + function node_pop_allocator() + ret = ccall(("g_node_pop_allocator", libglib), Nothing, ()) + nothing + end function nullify_pointer(_nullify_location::Nothing) ret = ccall(("g_nullify_pointer", libglib), Nothing, (Ptr{Nothing},), _nullify_location) nothing @@ -1270,14 +1434,41 @@ $(Expr(:toplevel, quote nothing end function once_init_enter(_location::Nothing) - ret = ccall(("g_once_init_enter", libglib), Cint, (Ptr{Nothing},), _location) + m_location = Ref{Ptr{Nothing}}() + m_location[] = Base.cconvert(Ptr{Nothing}, _location) + ret = ccall(("g_once_init_enter", libglib), Cint, (Ptr{Ptr{Nothing}},), m_location) + ret2 = convert(Bool, ret) + _location = m_location[] + _location = convert(Nothing, _location) + (ret2, _location) + end + function once_init_enter_impl(_location::UInt64) + ret = ccall(("g_once_init_enter_impl", libglib), Cint, (Ptr{UInt64},), _location) + ret2 = convert(Bool, ret) + ret2 + end + function once_init_enter_pointer(_location::Nothing) + ret = ccall(("g_once_init_enter_pointer", libglib), Cint, (Ptr{Nothing},), _location) ret2 = convert(Bool, ret) ret2 end function once_init_leave(_location::Nothing, _result::Integer) - ret = ccall(("g_once_init_leave", libglib), Nothing, (Ptr{Nothing}, UInt64), _location, _result) + m_location = Ref{Ptr{Nothing}}() + m_location[] = Base.cconvert(Ptr{Nothing}, _location) + ret = ccall(("g_once_init_leave", libglib), Nothing, (Ptr{Ptr{Nothing}}, UInt64), m_location, _result) + _location = m_location[] + _location = convert(Nothing, _location) + _location + end + function once_init_leave_pointer(_location::Nothing, _result::Maybe(Nothing)) + _result_maybe = nothing_to_null(_result) + ret = ccall(("g_once_init_leave_pointer", libglib), Nothing, (Ptr{Nothing}, Ptr{Nothing}), _location, _result_maybe) nothing end + function open(_filename::Union{AbstractString, Symbol}, _flags::Integer, _mode::Integer) + ret = ccall(("g_open", libglib), Int32, (Cstring, Int32, Int32), _filename, _flags, _mode) + ret + end function option_error_quark() ret = ccall(("g_option_error_quark", libglib), UInt32, ()) ret @@ -1316,6 +1507,19 @@ $(Expr(:toplevel, quote ret = ccall(("g_pointer_bit_lock", libglib), Nothing, (Ptr{Nothing}, Int32), _address, _lock_bit) nothing end + function pointer_bit_lock_and_get(_address::Nothing, _lock_bit::Integer) + m_out_ptr = Ref{UInt64}() + ret = ccall(("g_pointer_bit_lock_and_get", libglib), Nothing, (Ptr{Nothing}, UInt32, Ptr{UInt64}), _address, _lock_bit, m_out_ptr) + _out_ptr = m_out_ptr[] + _out_ptr + end + function pointer_bit_lock_mask_ptr(_ptr::Maybe(Nothing), _lock_bit::Integer, _set::Bool, _preserve_mask::Integer, _preserve_ptr::Maybe(Nothing)) + _ptr_maybe = nothing_to_null(_ptr) + _preserve_ptr_maybe = nothing_to_null(_preserve_ptr) + ret = ccall(("g_pointer_bit_lock_mask_ptr", libglib), Ptr{Nothing}, (Ptr{Nothing}, UInt32, Cint, UInt64, Ptr{Nothing}), _ptr_maybe, _lock_bit, _set, _preserve_mask, _preserve_ptr_maybe) + ret2 = convert(Nothing, ret) + ret2 + end function pointer_bit_trylock(_address::Nothing, _lock_bit::Integer) ret = ccall(("g_pointer_bit_trylock", libglib), Cint, (Ptr{Nothing}, Int32), _address, _lock_bit) ret2 = convert(Bool, ret) @@ -1325,10 +1529,18 @@ $(Expr(:toplevel, quote ret = ccall(("g_pointer_bit_unlock", libglib), Nothing, (Ptr{Nothing}, Int32), _address, _lock_bit) nothing end + function pointer_bit_unlock_and_set(_address::Nothing, _lock_bit::Integer, _ptr::Maybe(Nothing), _preserve_mask::Integer) + _ptr_maybe = nothing_to_null(_ptr) + ret = ccall(("g_pointer_bit_unlock_and_set", libglib), Nothing, (Ptr{Nothing}, UInt32, Ptr{Nothing}, UInt64), _address, _lock_bit, _ptr_maybe, _preserve_mask) + nothing + end function prefix_error_literal(_err, _prefix::Union{AbstractString, Symbol}) _err_maybe = nothing_to_null(_err) - ret = ccall(("g_prefix_error_literal", libglib), Nothing, (Ptr{GError}, Cstring), _err_maybe, _prefix) - nothing + m_err = Ref{Ptr{GError}}() + m_err[] = Base.cconvert(Ptr{GError}, _err_maybe) + ret = ccall(("g_prefix_error_literal", libglib), Nothing, (Ptr{Ptr{GError}}, Cstring), m_err, _prefix) + _err_maybe = m_err[] + _err_maybe end function propagate_error(_src) m_dest = Ref{Ptr{GError}}() @@ -1336,6 +1548,17 @@ $(Expr(:toplevel, quote _dest = m_dest[] _dest end + function qsort_with_data(_pbase::Nothing, _total_elems::Integer, _size::Integer, _compare_func::Function) + begin + _compare_func_cfunc = @cfunction(GCompareDataFunc, Int32, (Ptr{Nothing}, Ptr{Nothing}, Ref{Function})) + begin + ref = Ref{Any}(_compare_func) + _compare_func_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) + end + end + ret = ccall(("g_qsort_with_data", libglib), Nothing, (Ptr{Nothing}, Int32, UInt64, Ptr{Cvoid}, Ptr{Nothing}), _pbase, _total_elems, _size, _compare_func_cfunc, _compare_func_closure) + nothing + end function quark_from_static_string(_string::Maybe(Union{AbstractString, Symbol})) _string_maybe = nothing_to_null(_string) ret = ccall(("g_quark_from_static_string", libglib), UInt32, (Cstring,), _string_maybe) @@ -1505,6 +1728,14 @@ $(Expr(:toplevel, quote ret = ccall(("g_reload_user_special_dirs_cache", libglib), Nothing, ()) nothing end + function remove(_filename::Union{AbstractString, Symbol}) + ret = ccall(("g_remove", libglib), Int32, (Cstring,), _filename) + ret + end + function rename(_oldfilename::Union{AbstractString, Symbol}, _newfilename::Union{AbstractString, Symbol}) + ret = ccall(("g_rename", libglib), Int32, (Cstring, Cstring), _oldfilename, _newfilename) + ret + end function rmdir(_filename::Union{AbstractString, Symbol}) ret = ccall(("g_rmdir", libglib), Int32, (Cstring,), _filename) ret @@ -1523,6 +1754,11 @@ $(Expr(:toplevel, quote ret = ccall(("g_set_prgname", libglib), Nothing, (Cstring,), _prgname) nothing end + function set_prgname_once(_prgname::Union{AbstractString, Symbol}) + ret = ccall(("g_set_prgname_once", libglib), Cint, (Cstring,), _prgname) + ret2 = convert(Bool, ret) + ret2 + end function setenv(_variable::Union{AbstractString, Symbol}, _value::Union{AbstractString, Symbol}, _overwrite::Bool) ret = ccall(("g_setenv", libglib), Cint, (Cstring, Cstring, Cint), _variable, _value, _overwrite) ret2 = convert(Bool, ret) @@ -1583,6 +1819,10 @@ $(Expr(:toplevel, quote ret = ccall(("g_slice_set_config", libglib), Nothing, (UInt32, Int64), _ckey, _value) nothing end + function slist_pop_allocator() + ret = ccall(("g_slist_pop_allocator", libglib), Nothing, ()) + nothing + end function source_remove(_tag::Integer) ret = ccall(("g_source_remove", libglib), Cint, (UInt32,), _tag) ret2 = convert(Bool, ret) @@ -1725,6 +1965,17 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, true) ret2 end + function strdupv(_str_array) + _str_array_maybe = nothing_to_null(_str_array) + ret = ccall(("g_strdupv", libglib), Ptr{Cstring}, (Ptr{Cstring},), _str_array_maybe) + ret2 = begin + _len = length_zt(ret) + arrtemp = bytestring.(unsafe_wrap(Vector{Cstring}, ret, _len)) + GLib.g_strfreev(ret) + arrtemp + end + ret2 + end function strerror(_errnum::Integer) ret = ccall(("g_strerror", libglib), Cstring, (Int32,), _errnum) ret2 = string_or_nothing(ret, false) @@ -1736,9 +1987,9 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, true) ret2 end - function strfreev(_str_array::Maybe(Union{AbstractString, Symbol})) + function strfreev(_str_array) _str_array_maybe = nothing_to_null(_str_array) - ret = ccall(("g_strfreev", libglib), Nothing, (Cstring,), _str_array_maybe) + ret = ccall(("g_strfreev", libglib), Nothing, (Ptr{Cstring},), _str_array_maybe) nothing end function strip_context(_msgid::Union{AbstractString, Symbol}, _msgval::Union{AbstractString, Symbol}) @@ -1746,9 +1997,9 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, false) ret2 end - function strjoinv(_separator::Maybe(Union{AbstractString, Symbol}), _str_array::Union{AbstractString, Symbol}) + function strjoinv(_separator::Maybe(Union{AbstractString, Symbol}), _str_array) _separator_maybe = nothing_to_null(_separator) - ret = ccall(("g_strjoinv", libglib), Cstring, (Cstring, Cstring), _separator_maybe, _str_array) + ret = ccall(("g_strjoinv", libglib), Cstring, (Cstring, Ptr{Cstring}), _separator_maybe, _str_array) ret2 = string_or_nothing(ret, true) ret2 end @@ -1760,8 +2011,9 @@ $(Expr(:toplevel, quote ret = ccall(("g_strlcpy", libglib), UInt64, (Cstring, Cstring, UInt64), _dest, _src, _dest_size) ret end - function strndup(_str::Union{AbstractString, Symbol}, _n::Integer) - ret = ccall(("g_strndup", libglib), Cstring, (Cstring, UInt64), _str, _n) + function strndup(_str::Maybe(Union{AbstractString, Symbol}), _n::Integer) + _str_maybe = nothing_to_null(_str) + ret = ccall(("g_strndup", libglib), Cstring, (Cstring, UInt64), _str_maybe, _n) ret2 = string_or_nothing(ret, true) ret2 end @@ -1790,6 +2042,26 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, false) ret2 end + function strsplit(_string::Union{AbstractString, Symbol}, _delimiter::Union{AbstractString, Symbol}, _max_tokens::Integer) + ret = ccall(("g_strsplit", libglib), Ptr{Cstring}, (Cstring, Cstring, Int32), _string, _delimiter, _max_tokens) + ret2 = begin + _len = length_zt(ret) + arrtemp = bytestring.(unsafe_wrap(Vector{Cstring}, ret, _len)) + GLib.g_strfreev(ret) + arrtemp + end + ret2 + end + function strsplit_set(_string::Union{AbstractString, Symbol}, _delimiters::Union{AbstractString, Symbol}, _max_tokens::Integer) + ret = ccall(("g_strsplit_set", libglib), Ptr{Cstring}, (Cstring, Cstring, Int32), _string, _delimiters, _max_tokens) + ret2 = begin + _len = length_zt(ret) + arrtemp = bytestring.(unsafe_wrap(Vector{Cstring}, ret, _len)) + GLib.g_strfreev(ret) + arrtemp + end + ret2 + end function strstr_len(_haystack::Union{AbstractString, Symbol}, _haystack_len::Integer, _needle::Union{AbstractString, Symbol}) ret = ccall(("g_strstr_len", libglib), Cstring, (Cstring, Int64, Cstring), _haystack, _haystack_len, _needle) ret2 = string_or_nothing(ret, true) @@ -1802,13 +2074,13 @@ $(Expr(:toplevel, quote _endptr = string_or_nothing(_endptr, false) (ret, _endptr) end - function strv_contains(_strv::Union{AbstractString, Symbol}, _str::Union{AbstractString, Symbol}) - ret = ccall(("g_strv_contains", libglib), Cint, (Cstring, Cstring), _strv, _str) + function strv_contains(_strv, _str::Union{AbstractString, Symbol}) + ret = ccall(("g_strv_contains", libglib), Cint, (Ptr{Cstring}, Cstring), _strv, _str) ret2 = convert(Bool, ret) ret2 end - function strv_equal(_strv1::Union{AbstractString, Symbol}, _strv2::Union{AbstractString, Symbol}) - ret = ccall(("g_strv_equal", libglib), Cint, (Cstring, Cstring), _strv1, _strv2) + function strv_equal(_strv1, _strv2) + ret = ccall(("g_strv_equal", libglib), Cint, (Ptr{Cstring}, Ptr{Cstring}), _strv1, _strv2) ret2 = convert(Bool, ret) ret2 end @@ -1816,8 +2088,8 @@ $(Expr(:toplevel, quote ret = ccall(("g_strv_get_type", libglib), UInt64, ()) ret end - function strv_length(_str_array::Union{AbstractString, Symbol}) - ret = ccall(("g_strv_length", libglib), UInt32, (Cstring,), _str_array) + function strv_length(_str_array) + ret = ccall(("g_strv_length", libglib), UInt32, (Ptr{Cstring},), _str_array) ret end function test_assert_expected_messages_internal(_domain::Union{AbstractString, Symbol}, _file::Union{AbstractString, Symbol}, _line::Integer, _func::Union{AbstractString, Symbol}) @@ -1944,6 +2216,12 @@ $(Expr(:toplevel, quote ret = ccall(("g_test_trap_subprocess", libglib), Nothing, (Cstring, UInt64, UInt32), _test_path_maybe, _usec_timeout, _test_flags) nothing end + function test_trap_subprocess_with_envp(_test_path::Maybe(Union{AbstractString, Symbol}), _envp, _usec_timeout::Integer, _test_flags) + _test_path_maybe = nothing_to_null(_test_path) + _envp_maybe = nothing_to_null(_envp) + ret = ccall(("g_test_trap_subprocess_with_envp", libglib), Nothing, (Cstring, Ptr{Cstring}, UInt64, UInt32), _test_path_maybe, _envp_maybe, _usec_timeout, _test_flags) + nothing + end function thread_error_quark() ret = ccall(("g_thread_error_quark", libglib), UInt32, ()) ret @@ -1981,14 +2259,6 @@ $(Expr(:toplevel, quote ret = ccall(("g_thread_yield", libglib), Nothing, ()) nothing end - function trace_define_int64_counter(_group::Union{AbstractString, Symbol}, _name::Union{AbstractString, Symbol}, _description::Union{AbstractString, Symbol}) - ret = ccall(("g_trace_define_int64_counter", libglib), UInt32, (Cstring, Cstring, Cstring), _group, _name, _description) - ret - end - function trace_set_int64_counter(_id::Integer, _value::Integer) - ret = ccall(("g_trace_set_int64_counter", libglib), Nothing, (UInt32, Int64), _id, _value) - nothing - end function try_malloc(_n_bytes::Integer) ret = ccall(("g_try_malloc", libglib), Ptr{Nothing}, (UInt64,), _n_bytes) ret2 = convert(Nothing, ret) @@ -2082,10 +2352,12 @@ $(Expr(:toplevel, quote _result = m_result[] (ret, _result) end - function unichar_get_mirror_char(_ch, _mirrored_ch::Nothing) - ret = ccall(("g_unichar_get_mirror_char", libglib), Cint, (Nothing, Ptr{Nothing}), _ch, _mirrored_ch) + function unichar_get_mirror_char(_ch) + m_mirrored_ch = Ref{Nothing}() + ret = ccall(("g_unichar_get_mirror_char", libglib), Cint, (Nothing, Ptr{Nothing}), _ch, m_mirrored_ch) ret2 = convert(Bool, ret) - ret2 + _mirrored_ch = m_mirrored_ch[] + (ret2, _mirrored_ch) end function unichar_get_script(_ch) ret = ccall(("g_unichar_get_script", libglib), UInt32, (Nothing,), _ch) @@ -2640,6 +2912,11 @@ $(Expr(:toplevel, quote _end = string_or_nothing(_end, false) (ret2, _end) end + function utime(_filename::Union{AbstractString, Symbol}, _utb::Maybe(Nothing)) + _utb_maybe = nothing_to_null(_utb) + ret = ccall(("g_utime", libglib), Int32, (Cstring, Ptr{Nothing}), _filename, _utb_maybe) + ret + end function uuid_string_is_valid(_str::Union{AbstractString, Symbol}) ret = ccall(("g_uuid_string_is_valid", libglib), Cint, (Cstring,), _str) ret2 = convert(Bool, ret) @@ -2683,8 +2960,8 @@ $(Expr(:toplevel, quote ret = ccall(("g_variant_parse_error_quark", libglib), UInt32, ()) ret end - function variant_type_checked_(_arg0::Union{AbstractString, Symbol}) - ret = ccall(("g_variant_type_checked_", libglib), Ptr{GVariantType}, (Cstring,), _arg0) + function variant_type_checked_(_type_string::Union{AbstractString, Symbol}) + ret = ccall(("g_variant_type_checked_", libglib), Ptr{GVariantType}, (Cstring,), _type_string) ret2 = convert(GVariantType, ret, false) ret2 end diff --git a/src/gen/glib_methods b/src/gen/glib_methods index 05cd5ccb..05ca0df6 100644 --- a/src/gen/glib_methods +++ b/src/gen/glib_methods @@ -554,11 +554,21 @@ $(Expr(:toplevel, quote ret2 = convert_if_not_null(GDateTime, ret, true) ret2 end + function DateTime_new_from_unix_local_usec(_usecs::Integer) + ret = ccall(("g_date_time_new_from_unix_local_usec", libglib), Ptr{GDateTime}, (Int64,), _usecs) + ret2 = convert_if_not_null(GDateTime, ret, true) + ret2 + end function DateTime_new_from_unix_utc(_t::Integer) ret = ccall(("g_date_time_new_from_unix_utc", libglib), Ptr{GDateTime}, (Int64,), _t) ret2 = convert_if_not_null(GDateTime, ret, true) ret2 end + function DateTime_new_from_unix_utc_usec(_usecs::Integer) + ret = ccall(("g_date_time_new_from_unix_utc_usec", libglib), Ptr{GDateTime}, (Int64,), _usecs) + ret2 = convert_if_not_null(GDateTime, ret, true) + ret2 + end function DateTime_new_local(_year::Integer, _month::Integer, _day::Integer, _hour::Integer, _minute::Integer, _seconds::Real) ret = ccall(("g_date_time_new_local", libglib), Ptr{GDateTime}, (Int32, Int32, Int32, Int32, Int32, Float64), _year, _month, _day, _hour, _minute, _seconds) ret2 = convert_if_not_null(GDateTime, ret, true) @@ -752,6 +762,10 @@ $(Expr(:toplevel, quote ret = ccall(("g_date_time_to_unix", libglib), Int64, (Ptr{GDateTime},), instance) ret end + function to_unix_usec(instance::GDateTime) + ret = ccall(("g_date_time_to_unix_usec", libglib), Int64, (Ptr{GDateTime},), instance) + ret + end function to_utc(instance::GDateTime) ret = ccall(("g_date_time_to_utc", libglib), Ptr{GDateTime}, (Ptr{GDateTime},), instance) ret2 = convert_if_not_null(GDateTime, ret, true) @@ -761,6 +775,69 @@ $(Expr(:toplevel, quote ret = ccall(("g_date_time_unref", libglib), Nothing, (Ptr{GDateTime},), instance) nothing end + function Dir_open(_path::Union{AbstractString, Symbol}, _flags::Integer) + err = err_buf() + ret = ccall(("g_dir_open", libglib), Ptr{GDir}, (Cstring, UInt32, Ptr{Ptr{GError}}), _path, _flags, err) + check_err(err) + ret2 = convert(GDir, ret, true) + ret2 + end + function close(instance::GDir) + reffed_instance = GLib.glib_ref(instance) + ret = ccall(("g_dir_close", libglib), Nothing, (Ptr{GDir},), reffed_instance) + nothing + end + function read_name(instance::GDir) + ret = ccall(("g_dir_read_name", libglib), Cstring, (Ptr{GDir},), instance) + ret2 = string_or_nothing(ret, false) + ret2 + end + function ref(instance::GDir) + ret = ccall(("g_dir_ref", libglib), Ptr{GDir}, (Ptr{GDir},), instance) + ret2 = convert(GDir, ret, true) + ret2 + end + function rewind(instance::GDir) + ret = ccall(("g_dir_rewind", libglib), Nothing, (Ptr{GDir},), instance) + nothing + end + function unref(instance::GDir) + reffed_instance = GLib.glib_ref(instance) + ret = ccall(("g_dir_unref", libglib), Nothing, (Ptr{GDir},), reffed_instance) + nothing + end + function Hmac_new(_digest_type, _key::UInt8, _key_len::Integer) + ret = ccall(("g_hmac_new", libglib), Ptr{GHmac}, (UInt32, Ptr{UInt8}, UInt64), _digest_type, _key, _key_len) + ret2 = convert(GHmac, ret, true) + ret2 + end + function copy(instance::GHmac) + ret = ccall(("g_hmac_copy", libglib), Ptr{GHmac}, (Ptr{GHmac},), instance) + ret2 = convert(GHmac, ret, true) + ret2 + end + function get_digest(instance::GHmac, _buffer::UInt8, _digest_len::UInt64) + ret = ccall(("g_hmac_get_digest", libglib), Nothing, (Ptr{GHmac}, Ptr{UInt8}, Ptr{UInt64}), instance, _buffer, _digest_len) + nothing + end + function get_string(instance::GHmac) + ret = ccall(("g_hmac_get_string", libglib), Cstring, (Ptr{GHmac},), instance) + ret2 = string_or_nothing(ret, false) + ret2 + end + function ref(instance::GHmac) + ret = ccall(("g_hmac_ref", libglib), Ptr{GHmac}, (Ptr{GHmac},), instance) + ret2 = convert(GHmac, ret, true) + ret2 + end + function unref(instance::GHmac) + ret = ccall(("g_hmac_unref", libglib), Nothing, (Ptr{GHmac},), instance) + nothing + end + function update(instance::GHmac, _data::UInt8, _length::Integer) + ret = ccall(("g_hmac_update", libglib), Nothing, (Ptr{GHmac}, Ptr{UInt8}, Int64), instance, _data, _length) + nothing + end function KeyFile_new() ret = ccall(("g_key_file_new", libglib), Ptr{GKeyFile}, ()) ret2 = convert(GKeyFile, ret, true) @@ -1350,6 +1427,54 @@ $(Expr(:toplevel, quote ret2 = convert(Bool, ret) ret2 end + function Rand_new() + ret = ccall(("g_rand_new", libglib), Ptr{GRand}, ()) + ret2 = convert(GRand, ret, true) + ret2 + end + function Rand_new_with_seed(_seed::Integer) + ret = ccall(("g_rand_new_with_seed", libglib), Ptr{GRand}, (UInt32,), _seed) + ret2 = convert(GRand, ret, true) + ret2 + end + function Rand_new_with_seed_array(_seed::UInt32, _seed_length::Integer) + ret = ccall(("g_rand_new_with_seed_array", libglib), Ptr{GRand}, (Ptr{UInt32}, UInt32), _seed, _seed_length) + ret2 = convert(GRand, ret, true) + ret2 + end + function copy(instance::GRand) + ret = ccall(("g_rand_copy", libglib), Ptr{GRand}, (Ptr{GRand},), instance) + ret2 = convert(GRand, ret, true) + ret2 + end + function double(instance::GRand) + ret = ccall(("g_rand_double", libglib), Float64, (Ptr{GRand},), instance) + ret + end + function double_range(instance::GRand, _begin::Real, _end::Real) + ret = ccall(("g_rand_double_range", libglib), Float64, (Ptr{GRand}, Float64, Float64), instance, _begin, _end) + ret + end + function free(instance::GRand) + ret = ccall(("g_rand_free", libglib), Nothing, (Ptr{GRand},), instance) + nothing + end + function int(instance::GRand) + ret = ccall(("g_rand_int", libglib), UInt32, (Ptr{GRand},), instance) + ret + end + function int_range(instance::GRand, _begin::Integer, _end::Integer) + ret = ccall(("g_rand_int_range", libglib), Int32, (Ptr{GRand}, Int32, Int32), instance, _begin, _end) + ret + end + function set_seed(instance::GRand, _seed::Integer) + ret = ccall(("g_rand_set_seed", libglib), Nothing, (Ptr{GRand}, UInt32), instance, _seed) + nothing + end + function set_seed_array(instance::GRand, _seed::UInt32, _seed_length::Integer) + ret = ccall(("g_rand_set_seed_array", libglib), Nothing, (Ptr{GRand}, Ptr{UInt32}, UInt32), instance, _seed, _seed_length) + nothing + end function Regex_new(_pattern::Union{AbstractString, Symbol}, _compile_options, _match_options) err = err_buf() ret = ccall(("g_regex_new", libglib), Ptr{GRegex}, (Cstring, UInt32, UInt32, Ptr{Ptr{GError}}), _pattern, _compile_options, _match_options, err) @@ -1444,6 +1569,21 @@ $(Expr(:toplevel, quote ret2 = string_or_nothing(ret, true) ret2 end + function replace_eval(instance::GRegex, _string, _start_position::Integer, _match_options, _eval::Function) + begin + _eval_cfunc = @cfunction(GRegexEvalCallback, Cint, (Ptr{GMatchInfo}, Ptr{_GString}, Ref{Function})) + begin + ref = Ref{Any}(_eval) + _eval_closure = unsafe_load(convert(Ptr{Ptr{Nothing}}, Base.unsafe_convert(Ptr{Any}, ref))) + end + end + _string_len = length(_string) + err = err_buf() + ret = ccall(("g_regex_replace_eval", libglib), Cstring, (Ptr{GRegex}, Ptr{Cstring}, Int64, Int32, UInt32, Ptr{Cvoid}, Ptr{Nothing}, Ptr{Ptr{GError}}), instance, _string, _string_len, _start_position, _match_options, _eval_cfunc, _eval_closure, err) + check_err(err) + ret2 = string_or_nothing(ret, true) + ret2 + end function replace_literal(instance::GRegex, _string, _start_position::Integer, _replacement::Union{AbstractString, Symbol}, _match_options) _string_len = length(_string) err = err_buf() @@ -1637,6 +1777,33 @@ $(Expr(:toplevel, quote ret2 = convert(GStringLike, ret, false) ret2 end + function StrvBuilder_new() + ret = ccall(("g_strv_builder_new", libglib), Ptr{GStrvBuilder}, ()) + ret2 = convert(GStrvBuilder, ret, true) + ret2 + end + function add(instance::GStrvBuilder, _value::Union{AbstractString, Symbol}) + ret = ccall(("g_strv_builder_add", libglib), Nothing, (Ptr{GStrvBuilder}, Cstring), instance, _value) + nothing + end + function addv(instance::GStrvBuilder, _value) + ret = ccall(("g_strv_builder_addv", libglib), Nothing, (Ptr{GStrvBuilder}, Ptr{Cstring}), instance, _value) + nothing + end + function ref(instance::GStrvBuilder) + ret = ccall(("g_strv_builder_ref", libglib), Ptr{GStrvBuilder}, (Ptr{GStrvBuilder},), instance) + ret2 = convert(GStrvBuilder, ret, true) + ret2 + end + function take(instance::GStrvBuilder, _value::Union{AbstractString, Symbol}) + ret = ccall(("g_strv_builder_take", libglib), Nothing, (Ptr{GStrvBuilder}, Cstring), instance, _value) + nothing + end + function unref(instance::GStrvBuilder) + reffed_instance = GLib.glib_ref(instance) + ret = ccall(("g_strv_builder_unref", libglib), Nothing, (Ptr{GStrvBuilder},), reffed_instance) + nothing + end function TimeZone_new_identifier(_identifier::Maybe(Union{AbstractString, Symbol})) _identifier_maybe = nothing_to_null(_identifier) ret = ccall(("g_time_zone_new_identifier", libglib), Ptr{GTimeZone}, (Cstring,), _identifier_maybe) diff --git a/src/gen/glib_structs b/src/gen/glib_structs index e6484e23..9449978d 100644 --- a/src/gen/glib_structs +++ b/src/gen/glib_structs @@ -124,6 +124,48 @@ $(Expr(:toplevel, quote const GDebugKeyLike = Union{Ref{_GDebugKey}, GDebugKey} end end + begin + mutable struct GDir <: GBoxed + handle::Ptr{GDir} + begin + (GLib.g_type(::Type{T}) where T <: GDir) = begin + ccall(("g_dir_get_type", libgobject), GType, ()) + end + function GDir(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GDir) + end + end + const GDirLike = GDir + end + begin + mutable struct GHmac <: GBoxed + handle::Ptr{GHmac} + begin + (GLib.g_type(::Type{T}) where T <: GHmac) = begin + ccall(("g_hmac_get_type", libgobject), GType, ()) + end + function GHmac(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GHmac) + end + end + const GHmacLike = GHmac + end begin mutable struct GKeyFile <: GBoxed handle::Ptr{GKeyFile} @@ -313,6 +355,27 @@ $(Expr(:toplevel, quote end const GPatternSpecLike = GPatternSpec end + begin + mutable struct GRand <: GBoxed + handle::Ptr{GRand} + begin + (GLib.g_type(::Type{T}) where T <: GRand) = begin + ccall(("g_rand_get_type", libgobject), GType, ()) + end + function GRand(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GRand) + end + end + const GRandLike = GRand + end begin mutable struct GRegex <: GBoxed handle::Ptr{GRegex} @@ -452,6 +515,27 @@ $(Expr(:toplevel, quote const GStringLike = Union{Ref{_GString}, GString} end end + begin + mutable struct GStrvBuilder <: GBoxed + handle::Ptr{GStrvBuilder} + begin + (GLib.g_type(::Type{T}) where T <: GStrvBuilder) = begin + ccall(("g_strv_builder_get_type", libgobject), GType, ()) + end + function GStrvBuilder(ref::Ptr{T}, own::Bool = false) where T <: GBoxed + x = new(ref) + if own + finalizer(x) do x + GLib.delboxed(x) + end + end + x + end + push!(gboxed_types, GStrvBuilder) + end + end + const GStrvBuilderLike = GStrvBuilder + end begin struct _GTestConfig test_initialized::Cint @@ -495,6 +579,23 @@ $(Expr(:toplevel, quote end const GTimeZoneLike = GTimeZone end + begin + struct _GUnixPipe + fds::Ptr{Int32} + end + mutable struct GUnixPipe + handle::Ptr{_GUnixPipe} + end + begin + unsafe_convert(::Type{Ptr{_GUnixPipe}}, box::GUnixPipe) = begin + convert(Ptr{_GUnixPipe}, box.handle) + end + convert(::Type{GUnixPipe}, p::Ptr{_GUnixPipe}, owns = false) = begin + GUnixPipe(p, owns) + end + const GUnixPipeLike = Union{Ref{_GUnixPipe}, GUnixPipe} + end + end begin mutable struct GUri <: GBoxed handle::Ptr{GUri} @@ -588,6 +689,7 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.Date.html)." GDate @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.DateTime.html)." GDateTime @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.DebugKey.html)." GDebugKey + @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.Dir.html)." GDir @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.KeyFile.html)." GKeyFile @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.LogField.html)." GLogField @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.MainContext.html)." GMainContext @@ -597,12 +699,15 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.MatchInfo.html)." GMatchInfo @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.OptionEntry.html)." GOptionEntry @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.PatternSpec.html)." GPatternSpec + @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.Rand.html)." GRand @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.Regex.html)." GRegex @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.ScannerConfig.html)." GScannerConfig @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.Source.html)." GSource @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.SourceCallbackFuncs.html)." GSourceCallbackFuncs @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.String.html)." GString + @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.StrvBuilder.html)." GStrvBuilder @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.TimeZone.html)." GTimeZone + @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.UnixPipe.html)." GUnixPipe @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.Uri.html)." GUri @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.VariantBuilder.html)." GVariantBuilder @doc "See the [GTK docs](https://docs.gtk.org/glib/struct.VariantDict.html)." GVariantDict @@ -628,12 +733,21 @@ $(Expr(:toplevel, quote function GDateTime() G_.DateTime_new_now_local() end + function GDir(_path::Union{AbstractString, Symbol}, _flags::Integer) + G_.Dir_open(_path, _flags) + end function GMainContext(_flags) G_.MainContext_new_with_flags(_flags) end function GMappedFile(_fd::Integer, _writable::Bool) G_.MappedFile_new_from_fd(_fd, _writable) end + function GRand(_seed::Integer) + G_.Rand_new_with_seed(_seed) + end + function GRand(_seed::UInt32, _seed_length::Integer) + G_.Rand_new_with_seed_array(_seed, _seed_length) + end function GString(_init::Union{AbstractString, Symbol}, _len::Integer) G_.String_new_len(_init, _len) end @@ -879,6 +993,6 @@ $(Expr(:toplevel, quote ret = f(fd, condition) convert(Cint, ret) end - export GBookmarkFile, GBytes, GChecksum, GDate, GDateLike, _GDate, GDateTime, GDebugKey, GDebugKeyLike, _GDebugKey, GKeyFile, GLogField, GLogFieldLike, _GLogField, GMainContext, GMainLoop, GMappedFile, GMarkupParseContext, GMatchInfo, GOptionEntry, GOptionEntryLike, _GOptionEntry, GPatternSpec, GRegex, GScannerConfig, GScannerConfigLike, _GScannerConfig, GSource, GSourceLike, _GSource, GSourceCallbackFuncs, GSourceCallbackFuncsLike, _GSourceCallbackFuncs, GString, GStringLike, _GString, GTestConfig, GTestConfigLike, _GTestConfig, GTimeZone, GUri, GVariantBuilder, GVariantDict, GVariantType, GChildWatchFunc, GCompareDataFunc, GCopyFunc, GDataForeachFunc, GDestroyNotify, GDuplicateFunc, GEqualFuncFull, GFreeFunc, GFunc, GHFunc, GHRFunc, GHookCheckFunc, GHookCheckMarshaller, GHookFindFunc, GHookFunc, GHookMarshaller, GIOFunc, GLogFunc, GNodeForeachFunc, GNodeTraverseFunc, GOptionArgFunc, GOptionErrorFunc, GOptionParseFunc, GRegexEvalCallback, GSequenceIterCompareFunc, GSourceFunc, GSourceOnceFunc, GSpawnChildSetupFunc, GTestDataFunc, GTestFixtureFunc, GTestLogFatalFunc, GThreadFunc, GTranslateFunc, GTraverseFunc, GTraverseNodeFunc, GUnixFDSourceFunc + export GBookmarkFile, GBytes, GChecksum, GDate, GDateLike, _GDate, GDateTime, GDebugKey, GDebugKeyLike, _GDebugKey, GDir, GHmac, GKeyFile, GLogField, GLogFieldLike, _GLogField, GMainContext, GMainLoop, GMappedFile, GMarkupParseContext, GMatchInfo, GOptionEntry, GOptionEntryLike, _GOptionEntry, GPatternSpec, GRand, GRegex, GScannerConfig, GScannerConfigLike, _GScannerConfig, GSource, GSourceLike, _GSource, GSourceCallbackFuncs, GSourceCallbackFuncsLike, _GSourceCallbackFuncs, GString, GStringLike, _GString, GStrvBuilder, GTestConfig, GTestConfigLike, _GTestConfig, GTimeZone, GUnixPipe, GUnixPipeLike, _GUnixPipe, GUri, GVariantBuilder, GVariantDict, GVariantType, GChildWatchFunc, GCompareDataFunc, GCopyFunc, GDataForeachFunc, GDestroyNotify, GDuplicateFunc, GEqualFuncFull, GFreeFunc, GFunc, GHFunc, GHRFunc, GHookCheckFunc, GHookCheckMarshaller, GHookFindFunc, GHookFunc, GHookMarshaller, GIOFunc, GLogFunc, GNodeForeachFunc, GNodeTraverseFunc, GOptionArgFunc, GOptionErrorFunc, GOptionParseFunc, GRegexEvalCallback, GSequenceIterCompareFunc, GSourceFunc, GSourceOnceFunc, GSpawnChildSetupFunc, GTestDataFunc, GTestFixtureFunc, GTestLogFatalFunc, GThreadFunc, GTranslateFunc, GTraverseFunc, GTraverseNodeFunc, GUnixFDSourceFunc end)) end diff --git a/src/gen/gobject_methods b/src/gen/gobject_methods index 16c13ab2..40aece64 100644 --- a/src/gen/gobject_methods +++ b/src/gen/gobject_methods @@ -222,6 +222,11 @@ $(Expr(:toplevel, quote ret = ccall(("g_value_set_variant", libgobject), Nothing, (Ptr{_GValue}, Ptr{GVariant}), instance, _variant_maybe) nothing end + function steal_string(instance::GValueLike) + ret = ccall(("g_value_steal_string", libgobject), Cstring, (Ptr{_GValue},), instance) + ret2 = string_or_nothing(ret, true) + ret2 + end function take_boxed(instance::GValueLike, _v_boxed::Maybe(Nothing)) _v_boxed_maybe = nothing_to_null(_v_boxed) ret = ccall(("g_value_take_boxed", libgobject), Nothing, (Ptr{_GValue}, Ptr{Nothing}), instance, _v_boxed_maybe) diff --git a/src/gen/gobject_structs b/src/gen/gobject_structs index a7c5d19c..761c996f 100644 --- a/src/gen/gobject_structs +++ b/src/gen/gobject_structs @@ -307,40 +307,6 @@ $(Expr(:toplevel, quote const GTypeQueryLike = Union{Ref{_GTypeQuery}, GTypeQuery} end end - begin - struct _GValueArray - n_values::UInt32 - values::Ptr{_GValue} - n_prealloced::UInt32 - end - mutable struct GValueArray <: GBoxed - handle::Ptr{_GValueArray} - begin - (GLib.g_type(::Type{T}) where T <: GValueArray) = begin - ccall(("g_value_array_get_type", libgobject), GType, ()) - end - function GValueArray(ref::Ptr{T}, own::Bool = false) where T <: Union{GBoxed, _GValueArray} - x = new(ref) - if own - finalizer(x) do x - GLib.delboxed(x) - end - end - x - end - push!(gboxed_types, GValueArray) - end - end - begin - unsafe_convert(::Type{Ptr{_GValueArray}}, box::GValueArray) = begin - convert(Ptr{_GValueArray}, box.handle) - end - convert(::Type{GValueArray}, p::Ptr{_GValueArray}, owns = false) = begin - GValueArray(p, owns) - end - const GValueArrayLike = Union{Ref{_GValueArray}, GValueArray} - end - end @doc "See the [GTK docs](https://docs.gtk.org/gobject/struct.EnumClass.html)." GEnumClass @doc "See the [GTK docs](https://docs.gtk.org/gobject/struct.FlagsClass.html)." GFlagsClass @doc "See the [GTK docs](https://docs.gtk.org/gobject/struct.InterfaceInfo.html)." GInterfaceInfo @@ -351,7 +317,6 @@ $(Expr(:toplevel, quote @doc "See the [GTK docs](https://docs.gtk.org/gobject/struct.TypeInfo.html)." GTypeInfo @doc "See the [GTK docs](https://docs.gtk.org/gobject/struct.TypePluginClass.html)." GTypePluginClass @doc "See the [GTK docs](https://docs.gtk.org/gobject/struct.TypeQuery.html)." GTypeQuery - @doc "See the [GTK docs](https://docs.gtk.org/gobject/struct.ValueArray.html)." GValueArray struct GTypePlugin <: GInterface handle::Ptr{GObject} gc::Any @@ -491,6 +456,6 @@ $(Expr(:toplevel, quote ret = f(ihint, n_param_values, param_values) convert(Cint, ret) end - export GEnumValue, _GEnumValue, GEnumValueLike, GTypeClass, _GTypeClass, GTypeClassLike, GTypeInterface, _GTypeInterface, GTypeInterfaceLike, GFlagsValue, _GFlagsValue, GFlagsValueLike, GTypeValueTable, _GTypeValueTable, GTypeValueTableLike, GEnumClass, GEnumClassLike, _GEnumClass, GFlagsClass, GFlagsClassLike, _GFlagsClass, GInterfaceInfo, GInterfaceInfoLike, _GInterfaceInfo, GParamSpecTypeInfo, GParamSpecTypeInfoLike, _GParamSpecTypeInfo, GSignalInvocationHint, GSignalInvocationHintLike, _GSignalInvocationHint, GSignalQuery, GSignalQueryLike, _GSignalQuery, GTypeFundamentalInfo, GTypeFundamentalInfoLike, _GTypeFundamentalInfo, GTypeInfo, GTypeInfoLike, _GTypeInfo, GTypePluginClass, GTypePluginClassLike, _GTypePluginClass, GTypeQuery, GTypeQueryLike, _GTypeQuery, GValueArray, GValueArrayLike, _GValueArray, GTypePlugin, GBinding, GBindingLeaf, GInitiallyUnowned, GInitiallyUnownedLeaf, GTypeModule, GBindingTransformFunc, GClassFinalizeFunc, GClassInitFunc, GClosureMarshal, GInterfaceFinalizeFunc, GInterfaceInitFunc, GSignalAccumulator, GSignalEmissionHook + export GEnumValue, _GEnumValue, GEnumValueLike, GTypeClass, _GTypeClass, GTypeClassLike, GTypeInterface, _GTypeInterface, GTypeInterfaceLike, GFlagsValue, _GFlagsValue, GFlagsValueLike, GTypeValueTable, _GTypeValueTable, GTypeValueTableLike, GEnumClass, GEnumClassLike, _GEnumClass, GFlagsClass, GFlagsClassLike, _GFlagsClass, GInterfaceInfo, GInterfaceInfoLike, _GInterfaceInfo, GParamSpecTypeInfo, GParamSpecTypeInfoLike, _GParamSpecTypeInfo, GSignalInvocationHint, GSignalInvocationHintLike, _GSignalInvocationHint, GSignalQuery, GSignalQueryLike, _GSignalQuery, GTypeFundamentalInfo, GTypeFundamentalInfoLike, _GTypeFundamentalInfo, GTypeInfo, GTypeInfoLike, _GTypeInfo, GTypePluginClass, GTypePluginClassLike, _GTypePluginClass, GTypeQuery, GTypeQueryLike, _GTypeQuery, GTypePlugin, GBinding, GBindingLeaf, GInitiallyUnowned, GInitiallyUnownedLeaf, GTypeModule, GBindingTransformFunc, GClassFinalizeFunc, GClassInitFunc, GClosureMarshal, GInterfaceFinalizeFunc, GInterfaceInitFunc, GSignalAccumulator, GSignalEmissionHook end)) end