[glibmm/mkolny/use-mmgirgenerator] update
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/mkolny/use-mmgirgenerator] update
- Date: Sun, 6 Nov 2016 17:17:52 +0000 (UTC)
commit 0a8a049e76f006a5cf57cf5e35cb95b5b5654a7e
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sun Nov 6 14:38:52 2016 +0100
update
gio/src/gio_methods.defs | 98 ++++++++--------
gio/src/gio_methods.defs.patch | 129 +++++---------------
gio/src/gio_signals.defs | 36 +++---
gio/src/gio_signals.defs.patch | 10 --
gio/src/gio_vfuncs.defs | 14 +-
gio/src/gio_vfuncs.defs.patch | 20 ++--
glib/src/glib_functions.defs | 235 ++++++++++++++++++------------------
glib/src/glib_functions.defs.patch | 43 +------
8 files changed, 234 insertions(+), 351 deletions(-)
---
diff --git a/gio/src/gio_methods.defs b/gio/src/gio_methods.defs
index c6f5b82..2f379e2 100644
--- a/gio/src/gio_methods.defs
+++ b/gio/src/gio_methods.defs
@@ -643,7 +643,7 @@
(return-type "GFile*")
(parameters
'("const-gchar*" "arg")
- '("gchar*" "cwd")
+ '("const-gchar*" "cwd")
)
)
@@ -651,7 +651,7 @@
(c-name "g_file_new_for_path")
(return-type "GFile*")
(parameters
- '("char*" "path")
+ '("const-char*" "path")
)
)
@@ -667,7 +667,7 @@
(c-name "g_file_new_tmp")
(return-type "GFile*")
(parameters
- '("char*" "tmpl")
+ '("const-char*" "tmpl")
'("GFileIOStream**" "iostream")
'("GError**" "error")
)
@@ -762,7 +762,7 @@
(c-name "g_io_modules_load_all_in_directory")
(return-type "GList*")
(parameters
- '("gchar*" "dirname")
+ '("const-gchar*" "dirname")
)
)
@@ -770,7 +770,7 @@
(c-name "g_io_modules_load_all_in_directory_with_scope")
(return-type "GList*")
(parameters
- '("gchar*" "dirname")
+ '("const-gchar*" "dirname")
'("GIOModuleScope*" "scope")
)
)
@@ -779,7 +779,7 @@
(c-name "g_io_modules_scan_all_in_directory")
(return-type "void")
(parameters
- '("char*" "dirname")
+ '("const-char*" "dirname")
)
)
@@ -787,7 +787,7 @@
(c-name "g_io_modules_scan_all_in_directory_with_scope")
(return-type "void")
(parameters
- '("gchar*" "dirname")
+ '("const-gchar*" "dirname")
'("GIOModuleScope*" "scope")
)
)
@@ -842,7 +842,7 @@
(return-type "gssize")
(parameters
'("GInputStream*" "stream")
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("gboolean" "blocking")
'("GCancellable*" "cancellable")
@@ -855,7 +855,7 @@
(return-type "gssize")
(parameters
'("GOutputStream*" "stream")
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("gboolean" "blocking")
'("GCancellable*" "cancellable")
@@ -868,7 +868,7 @@
(return-type "gboolean")
(parameters
'("GOutputStream*" "stream")
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("gboolean" "blocking")
'("gsize*" "bytes_written")
@@ -904,7 +904,7 @@
(c-name "g_resource_load")
(return-type "GResource*")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("GError**" "error")
)
)
@@ -1040,7 +1040,7 @@
(c-name "g_tls_file_database_new")
(return-type "GTlsDatabase*")
(parameters
- '("gchar*" "anchors")
+ '("const-gchar*" "anchors")
'("GError**" "error")
)
)
@@ -1059,7 +1059,7 @@
(c-name "g_unix_is_mount_path_system_internal")
(return-type "gboolean")
(parameters
- '("char*" "mount_path")
+ '("const-char*" "mount_path")
)
)
@@ -1091,7 +1091,7 @@
(define-function g_unix_mount_get_device_path
(c-name "g_unix_mount_get_device_path")
- (return-type "char*")
+ (return-type "const-char*")
(parameters
'("GUnixMountEntry*" "mount_entry")
)
@@ -1107,7 +1107,7 @@
(define-function g_unix_mount_get_mount_path
(c-name "g_unix_mount_get_mount_path")
- (return-type "char*")
+ (return-type "const-char*")
(parameters
'("GUnixMountEntry*" "mount_entry")
)
@@ -4254,7 +4254,7 @@
(c-name "g_desktop_app_info_new_from_filename")
(return-type "GDesktopAppInfo*")
(parameters
- '("char*" "filename")
+ '("const-char*" "filename")
)
)
@@ -5230,7 +5230,7 @@
(c-name "g_file_info_set_name")
(return-type "void")
(parameters
- '("char*" "name")
+ '("const-char*" "name")
)
)
@@ -5541,7 +5541,7 @@
(c-name "g_io_module_new")
(return-type "GIOModule*")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
)
)
@@ -6010,7 +6010,7 @@
(c-name "g_input_stream_read_all_async")
(return-type "void")
(parameters
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("int" "io_priority")
'("GCancellable*" "cancellable")
@@ -6035,7 +6035,7 @@
(c-name "g_input_stream_read_async")
(return-type "void")
(parameters
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("int" "io_priority")
'("GCancellable*" "cancellable")
@@ -6223,7 +6223,7 @@
(c-name "g_memory_input_stream_new_from_data")
(return-type "GInputStream*")
(parameters
- '("void*" "data")
+ '("const-void*" "data")
'("gssize" "len")
'("GDestroyNotify" "destroy")
)
@@ -7242,7 +7242,7 @@
(c-name "g_output_stream_write_all_async")
(return-type "void")
(parameters
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("int" "io_priority")
'("GCancellable*" "cancellable")
@@ -7267,7 +7267,7 @@
(c-name "g_output_stream_write_async")
(return-type "void")
(parameters
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("int" "io_priority")
'("GCancellable*" "cancellable")
@@ -7725,7 +7725,7 @@
(c-name "g_resource_load")
(return-type "GResource*")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("GError**" "error")
)
)
@@ -8306,7 +8306,7 @@
(c-name "g_settings_schema_source_new_from_directory")
(return-type "GSettingsSchemaSource*")
(parameters
- '("gchar*" "directory")
+ '("const-gchar*" "directory")
'("GSettingsSchemaSource*" "parent")
'("gboolean" "trusted")
'("GError**" "error")
@@ -8993,7 +8993,7 @@
(return-type "gssize")
(parameters
'("GSocketAddress**" "address")
- '("gchar*" "buffer")
+ '("const-gchar*" "buffer")
'("gsize" "size")
'("GCancellable*" "cancellable")
'("GError**" "error")
@@ -9034,7 +9034,7 @@
(c-name "g_socket_receive_with_blocking")
(return-type "gssize")
(parameters
- '("gchar*" "buffer")
+ '("const-gchar*" "buffer")
'("gsize" "size")
'("gboolean" "blocking")
'("GCancellable*" "cancellable")
@@ -9101,7 +9101,7 @@
(c-name "g_socket_send_with_blocking")
(return-type "gssize")
(parameters
- '("gchar*" "buffer")
+ '("const-gchar*" "buffer")
'("gsize" "size")
'("gboolean" "blocking")
'("GCancellable*" "cancellable")
@@ -10175,7 +10175,7 @@
(c-name "g_subprocess_launcher_set_cwd")
(return-type "void")
(parameters
- '("gchar*" "cwd")
+ '("const-gchar*" "cwd")
)
)
@@ -10202,7 +10202,7 @@
(c-name "g_subprocess_launcher_set_stderr_file_path")
(return-type "void")
(parameters
- '("gchar*" "path")
+ '("const-gchar*" "path")
)
)
@@ -10220,7 +10220,7 @@
(c-name "g_subprocess_launcher_set_stdout_file_path")
(return-type "void")
(parameters
- '("gchar*" "path")
+ '("const-gchar*" "path")
)
)
@@ -10708,7 +10708,7 @@
(c-name "g_tls_certificate_new_from_file")
(return-type "GTlsCertificate*")
(parameters
- '("gchar*" "file")
+ '("const-gchar*" "file")
'("GError**" "error")
)
)
@@ -10717,8 +10717,8 @@
(c-name "g_tls_certificate_new_from_files")
(return-type "GTlsCertificate*")
(parameters
- '("gchar*" "cert_file")
- '("gchar*" "key_file")
+ '("const-gchar*" "cert_file")
+ '("const-gchar*" "key_file")
'("GError**" "error")
)
)
@@ -10737,7 +10737,7 @@
(c-name "g_tls_certificate_list_new_from_file")
(return-type "GList*")
(parameters
- '("gchar*" "file")
+ '("const-gchar*" "file")
'("GError**" "error")
)
)
@@ -11517,7 +11517,7 @@
(define-method get_device_path
(of-object "GUnixMountPoint")
(c-name "g_unix_mount_point_get_device_path")
- (return-type "char*")
+ (return-type "const-char*")
)
(define-method get_fs_type
@@ -11529,7 +11529,7 @@
(define-method get_mount_path
(of-object "GUnixMountPoint")
(c-name "g_unix_mount_point_get_mount_path")
- (return-type "char*")
+ (return-type "const-char*")
)
(define-method get_options
@@ -11622,7 +11622,7 @@
(c-name "g_unix_socket_address_new_abstract")
(return-type "GSocketAddress*")
(parameters
- '("gchar*" "path")
+ '("const-gchar*" "path")
'("gint" "path_len")
)
)
@@ -11631,7 +11631,7 @@
(c-name "g_unix_socket_address_new_with_type")
(return-type "GSocketAddress*")
(parameters
- '("gchar*" "path")
+ '("const-gchar*" "path")
'("gint" "path_len")
'("GUnixSocketAddressType" "type")
)
@@ -12302,7 +12302,7 @@
(c-name "g_app_info_set_as_default_for_extension")
(return-type "gboolean")
(parameters
- '("char*" "extension")
+ '("const-char*" "extension")
'("GError**" "error")
)
)
@@ -13107,7 +13107,7 @@
(return-type "GFile*")
(parameters
'("const-gchar*" "arg")
- '("gchar*" "cwd")
+ '("const-gchar*" "cwd")
)
)
@@ -13115,7 +13115,7 @@
(c-name "g_file_new_for_path")
(return-type "GFile*")
(parameters
- '("char*" "path")
+ '("const-char*" "path")
)
)
@@ -13131,7 +13131,7 @@
(c-name "g_file_new_tmp")
(return-type "GFile*")
(parameters
- '("char*" "tmpl")
+ '("const-char*" "tmpl")
'("GFileIOStream**" "iostream")
'("GError**" "error")
)
@@ -13470,7 +13470,7 @@
(c-name "g_file_get_child")
(return-type "GFile*")
(parameters
- '("char*" "name")
+ '("const-char*" "name")
)
)
@@ -13673,7 +13673,7 @@
(c-name "g_file_make_symbolic_link")
(return-type "gboolean")
(parameters
- '("char*" "symlink_value")
+ '("const-char*" "symlink_value")
'("GCancellable*" "cancellable")
'("GError**" "error")
)
@@ -14053,7 +14053,7 @@
(c-name "g_file_replace_contents")
(return-type "gboolean")
(parameters
- '("char*" "contents")
+ '("const-char*" "contents")
'("gsize" "length")
'("const-char*" "etag")
'("gboolean" "make_backup")
@@ -14069,7 +14069,7 @@
(c-name "g_file_replace_contents_async")
(return-type "void")
(parameters
- '("char*" "contents")
+ '("const-char*" "contents")
'("gsize" "length")
'("const-char*" "etag")
'("gboolean" "make_backup")
@@ -14159,7 +14159,7 @@
(c-name "g_file_resolve_relative_path")
(return-type "GFile*")
(parameters
- '("char*" "relative_path")
+ '("const-char*" "relative_path")
)
)
@@ -15288,7 +15288,7 @@
(c-name "g_tls_file_database_new")
(return-type "GTlsDatabase*")
(parameters
- '("gchar*" "anchors")
+ '("const-gchar*" "anchors")
'("GError**" "error")
)
)
diff --git a/gio/src/gio_methods.defs.patch b/gio/src/gio_methods.defs.patch
index 37a3331..ceb3616 100644
--- a/gio/src/gio_methods.defs.patch
+++ b/gio/src/gio_methods.defs.patch
@@ -1,13 +1,6 @@
--- a/gio_methods.defs
+++ b/gio_methods.defs
-@@ -1551,13 +1551,13 @@
- (define-method get_cwd
- (of-object "GApplicationCommandLine")
- (c-name "g_application_command_line_get_cwd")
-- (return-type "gchar*")
-+ (return-type "const-gchar*")
- )
-
+@@ -1557,7 +1557,7 @@
(define-method get_environ
(of-object "GApplicationCommandLine")
(c-name "g_application_command_line_get_environ")
@@ -17,26 +10,16 @@
(define-method get_exit_status
-@@ -1705,7 +1705,7 @@
- (define-method peek_buffer
- (of-object "GBufferedInputStream")
- (c-name "g_buffered_input_stream_peek_buffer")
-- (return-type "void*")
-+ (return-type "const-void*")
+@@ -1696,7 +1696,7 @@
+ (c-name "g_buffered_input_stream_peek")
+ (return-type "gsize")
(parameters
- '("gsize*" "count")
++ '("void*" "buffer")
+- '("const-void*" "buffer")
+ '("gsize" "offset")
+ '("gsize" "count")
)
-@@ -4317,7 +4317,7 @@
- (define-method get_filename
- (of-object "GDesktopAppInfo")
- (c-name "g_desktop_app_info_get_filename")
-- (return-type "char*")
-+ (return-type "const-char*")
- )
-
- (define-method get_generic_name
-
@@ -4406,7 +4406,7 @@
(define-method list_actions
(of-object "GDesktopAppInfo")
@@ -47,16 +30,6 @@
(define-function g_emblem_new
-@@ -4970,7 +4970,7 @@
- (define-method get_name
- (of-object "GFileInfo")
- (c-name "g_file_info_get_name")
-- (return-type "char*")
-+ (return-type "const-char*")
- )
-
- (define-method get_size
-
@@ -5713,7 +5713,7 @@
(c-name "g_inet_address_new_from_bytes")
(return-type "GInetAddress*")
@@ -67,34 +40,24 @@
)
)
-@@ -6243,7 +6243,7 @@
- (c-name "g_memory_input_stream_add_data")
- (return-type "void")
- (parameters
-- '("void*" "data")
-+ '("const-void*" "data")
- '("gssize" "len")
- '("GDestroyNotify" "destroy")
- )
-
-@@ -7217,7 +7217,7 @@
- (c-name "g_output_stream_write")
+@@ -5985,7 +5985,7 @@
+ (c-name "g_input_stream_read")
(return-type "gssize")
(parameters
-- '("void*" "buffer")
-+ '("const-void*" "buffer")
++ '("void*" "buffer")
+- '("const-void*" "buffer")
'("gsize" "count")
'("GCancellable*" "cancellable")
'("GError**" "error")
-@@ -7229,7 +7229,7 @@
- (c-name "g_output_stream_write_all")
+@@ -5997,7 +5997,7 @@
+ (c-name "g_input_stream_read_all")
(return-type "gboolean")
(parameters
-- '("void*" "buffer")
-+ '("const-void*" "buffer")
++ '("void*" "buffer")
+- '("const-void*" "buffer")
'("gsize" "count")
- '("gsize*" "bytes_written")
+ '("gsize*" "bytes_read")
'("GCancellable*" "cancellable")
@@ -8157,7 +8157,7 @@
@@ -105,47 +68,17 @@
+ '("const-gchar*-const*" "value")
)
)
-
-@@ -9047,7 +9047,7 @@
- (c-name "g_socket_send")
- (return-type "gssize")
- (parameters
-- '("gchar*" "buffer")
-+ '("const-gchar*" "buffer")
- '("gsize" "size")
- '("GCancellable*" "cancellable")
- '("GError**" "error")
-@@ -9089,7 +9089,7 @@
+@@ -8980,7 +8980,7 @@
+ (c-name "g_socket_receive")
(return-type "gssize")
(parameters
- '("GSocketAddress*" "address")
-- '("gchar*" "buffer")
-+ '("const-gchar*" "buffer")
++ '("gchar*" "buffer")
+- '("const-gchar*" "buffer")
'("gsize" "size")
'("GCancellable*" "cancellable")
'("GError**" "error")
-@@ -12220,7 +12220,7 @@
- (define-method get_commandline
- (of-object "GAppInfo")
- (c-name "g_app_info_get_commandline")
-- (return-type "char*")
-+ (return-type "const-char*")
- )
-
- (define-method get_description
-
-@@ -12238,7 +12238,7 @@
- (define-method get_executable
- (of-object "GAppInfo")
- (c-name "g_app_info_get_executable")
-- (return-type "char*")
-+ (return-type "const-char*")
- )
-
- (define-method get_icon
-
@@ -12262,7 +12262,7 @@
(define-method get_supported_types
(of-object "GAppInfo")
@@ -156,22 +89,22 @@
(define-method launch
-@@ -12454,7 +12454,7 @@
- (c-name "g_converter_convert")
- (return-type "GConverterResult")
+@@ -12456,7 +12456,7 @@
(parameters
-- '("void*" "inbuf")
-+ '("const-void*" "inbuf")
+ '("const-void*" "inbuf")
'("gsize" "inbuf_size")
- '("void*" "outbuf")
++ '("void*" "outbuf")
+- '("const-void*" "outbuf")
'("gsize" "outbuf_size")
+ '("GConverterFlags" "flags")
+ '("gsize*" "bytes_read")
-@@ -14974,7 +14974,7 @@
- (c-name "g_pollable_output_stream_write_nonblocking")
+@@ -14941,7 +14941,7 @@
+ (c-name "g_pollable_input_stream_read_nonblocking")
(return-type "gssize")
(parameters
-- '("void*" "buffer")
-+ '("const-void*" "buffer")
++ '("void*" "buffer")
+- '("const-void*" "buffer")
'("gsize" "count")
'("GCancellable*" "cancellable")
'("GError**" "error")
diff --git a/gio/src/gio_signals.defs b/gio/src/gio_signals.defs
index 77084e8..4c57e0c 100644
--- a/gio/src/gio_signals.defs
+++ b/gio/src/gio_signals.defs
@@ -9,7 +9,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "startup_notify_id")
+ '("const-gchar*" "startup_notify_id")
)
)
@@ -54,7 +54,7 @@
(parameters
'("gpointer" "files")
'("gint" "n_files")
- '("gchar*" "hint")
+ '("const-gchar*" "hint")
)
)
@@ -133,8 +133,8 @@
(parameters
'("GDBusObjectProxy*" "object_proxy")
'("GDBusProxy*" "interface_proxy")
- '("gchar*" "sender_name")
- '("gchar*" "signal_name")
+ '("const-gchar*" "sender_name")
+ '("const-gchar*" "signal_name")
'("GVariant*" "parameters")
)
)
@@ -164,8 +164,8 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "sender_name")
- '("gchar*" "signal_name")
+ '("const-gchar*" "sender_name")
+ '("const-gchar*" "signal_name")
'("GVariant*" "parameters")
)
)
@@ -218,9 +218,9 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "message")
- '("gchar*" "default_user")
- '("gchar*" "default_domain")
+ '("const-gchar*" "message")
+ '("const-gchar*" "default_user")
+ '("const-gchar*" "default_domain")
'("GAskPasswordFlags" "flags")
)
)
@@ -230,7 +230,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "message")
+ '("const-gchar*" "message")
'("gchar**" "choices")
)
)
@@ -249,7 +249,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "message")
+ '("const-gchar*" "message")
'("GArray*" "processes")
'("gchar**" "choices")
)
@@ -260,7 +260,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "message")
+ '("const-gchar*" "message")
'("gint64" "time_left")
'("gint64" "bytes_left")
)
@@ -287,7 +287,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "key")
+ '("const-gchar*" "key")
)
)
@@ -305,7 +305,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "key")
+ '("const-gchar*" "key")
)
)
@@ -503,7 +503,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "action_name")
+ '("const-gchar*" "action_name")
)
)
@@ -512,7 +512,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "action_name")
+ '("const-gchar*" "action_name")
'("gboolean" "enabled")
)
)
@@ -522,7 +522,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "action_name")
+ '("const-gchar*" "action_name")
)
)
@@ -531,7 +531,7 @@
(return-type "void")
(when "last")
(parameters
- '("gchar*" "action_name")
+ '("const-gchar*" "action_name")
'("GVariant*" "value")
)
)
diff --git a/gio/src/gio_vfuncs.defs b/gio/src/gio_vfuncs.defs
index e226b2a..044d2c5 100644
--- a/gio/src/gio_vfuncs.defs
+++ b/gio/src/gio_vfuncs.defs
@@ -629,7 +629,7 @@
(of-object "GInputStream")
(return-type "void")
(parameters
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("int" "io_priority")
'("GCancellable*" "cancellable")
@@ -651,7 +651,7 @@
(of-object "GInputStream")
(return-type "gssize")
(parameters
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("GCancellable*" "cancellable")
'("GError**" "error")
@@ -918,7 +918,7 @@
(of-object "GOutputStream")
(return-type "void")
(parameters
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("int" "io_priority")
'("GCancellable*" "cancellable")
@@ -940,7 +940,7 @@
(of-object "GOutputStream")
(return-type "gssize")
(parameters
- '("void*" "buffer")
+ '("const-void*" "buffer")
'("gsize" "count")
'("GCancellable*" "cancellable")
'("GError**" "error")
@@ -2074,7 +2074,7 @@
(of-object "GAppInfo")
(return-type "gboolean")
(parameters
- '("char*" "extension")
+ '("const-char*" "extension")
'("GError**" "error")
)
)
@@ -3009,7 +3009,7 @@
(of-object "GFile")
(return-type "gboolean")
(parameters
- '("char*" "symlink_value")
+ '("const-char*" "symlink_value")
'("GCancellable*" "cancellable")
'("GError**" "error")
)
@@ -3372,7 +3372,7 @@
(of-object "GFile")
(return-type "GFile*")
(parameters
- '("char*" "relative_path")
+ '("const-char*" "relative_path")
)
)
diff --git a/gio/src/gio_vfuncs.defs.patch b/gio/src/gio_vfuncs.defs.patch
index 819f5db..9aef411 100644
--- a/gio/src/gio_vfuncs.defs.patch
+++ b/gio/src/gio_vfuncs.defs.patch
@@ -19,22 +19,22 @@
)
)
-@@ -2154,7 +2154,7 @@
- (of-object "GConverter")
- (return-type "GConverterResult")
+@@ -2156,7 +2156,7 @@
(parameters
-+ '("const-void*" "inbuf")
-- '("void*" "inbuf")
+ '("const-void*" "inbuf")
'("gsize" "inbuf_size")
- '("void*" "outbuf")
++ '("void*" "outbuf")
+- '("const-void*" "outbuf")
'("gsize" "outbuf_size")
+ '("GConverterFlags" "flags")
+ '("gsize*" "bytes_read")
-@@ -3948,7 +3948,7 @@
- (of-object "GPollableOutputStream")
+@@ -3920,7 +3920,7 @@
+ (of-object "GPollableInputStream")
(return-type "gssize")
(parameters
-+ '("const-void*" "buffer")
-- '("void*" "buffer")
++ '("void*" "buffer")
+- '("const-void*" "buffer")
'("gsize" "count")
'("GError**" "error")
)
diff --git a/glib/src/glib_functions.defs b/glib/src/glib_functions.defs
index 4cb7cca..ae201fe 100644
--- a/glib/src/glib_functions.defs
+++ b/glib/src/glib_functions.defs
@@ -2,7 +2,7 @@
(c-name "g_access")
(return-type "int")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("int" "mode")
)
)
@@ -19,7 +19,7 @@
(c-name "g_ascii_dtostr")
(return-type "gchar*")
(parameters
- '("gchar*" "buffer")
+ '("const-gchar*" "buffer")
'("gint" "buf_len")
'("gdouble" "d")
)
@@ -29,7 +29,7 @@
(c-name "g_ascii_formatd")
(return-type "gchar*")
(parameters
- '("gchar*" "buffer")
+ '("const-gchar*" "buffer")
'("gint" "buf_len")
'("const-gchar*" "format")
'("gdouble" "d")
@@ -308,7 +308,7 @@
(c-name "g_atomic_pointer_add")
(return-type "gssize")
(parameters
- '("void*" "atomic")
+ '("const-void*" "atomic")
'("gssize" "val")
)
)
@@ -317,7 +317,7 @@
(c-name "g_atomic_pointer_and")
(return-type "gsize")
(parameters
- '("void*" "atomic")
+ '("const-void*" "atomic")
'("gsize" "val")
)
)
@@ -326,7 +326,7 @@
(c-name "g_atomic_pointer_compare_and_exchange")
(return-type "gboolean")
(parameters
- '("void*" "atomic")
+ '("const-void*" "atomic")
'("gpointer" "oldval")
'("gpointer" "newval")
)
@@ -336,7 +336,7 @@
(c-name "g_atomic_pointer_get")
(return-type "gpointer")
(parameters
- '("void*" "atomic")
+ '("const-void*" "atomic")
)
)
@@ -344,7 +344,7 @@
(c-name "g_atomic_pointer_or")
(return-type "gsize")
(parameters
- '("void*" "atomic")
+ '("const-void*" "atomic")
'("gsize" "val")
)
)
@@ -353,7 +353,7 @@
(c-name "g_atomic_pointer_set")
(return-type "void")
(parameters
- '("void*" "atomic")
+ '("const-void*" "atomic")
'("gpointer" "newval")
)
)
@@ -362,7 +362,7 @@
(c-name "g_atomic_pointer_xor")
(return-type "gsize")
(parameters
- '("void*" "atomic")
+ '("const-void*" "atomic")
'("gsize" "val")
)
)
@@ -380,7 +380,7 @@
(c-name "g_base64_decode_inplace")
(return-type "guchar*")
(parameters
- '("gchar*" "text")
+ '("const-gchar*" "text")
'("gsize*" "out_len")
)
)
@@ -389,7 +389,7 @@
(c-name "g_base64_decode_step")
(return-type "gsize")
(parameters
- '("gchar*" "in")
+ '("const-gchar*" "in")
'("gsize" "len")
'("guchar*" "out")
'("gint*" "state")
@@ -432,9 +432,9 @@
(define-function g_basename
(c-name "g_basename")
- (return-type "gchar*")
+ (return-type "const-gchar*")
(parameters
- '("gchar*" "file_name")
+ '("const-gchar*" "file_name")
)
)
@@ -500,7 +500,7 @@
(c-name "g_build_filename")
(return-type "gchar*")
(parameters
- '("gchar*" "first_element")
+ '("const-gchar*" "first_element")
'("..." "...")
)
)
@@ -517,8 +517,8 @@
(c-name "g_build_path")
(return-type "gchar*")
(parameters
- '("gchar*" "separator")
- '("gchar*" "first_element")
+ '("const-gchar*" "separator")
+ '("const-gchar*" "first_element")
'("..." "...")
)
)
@@ -575,7 +575,7 @@
(c-name "g_chdir")
(return-type "int")
(parameters
- '("gchar*" "path")
+ '("const-gchar*" "path")
)
)
@@ -961,7 +961,7 @@
(c-name "g_date_strftime")
(return-type "gsize")
(parameters
- '("gchar*" "s")
+ '("const-gchar*" "s")
'("gsize" "slen")
'("const-gchar*" "format")
'("const-GDate*" "date")
@@ -1067,7 +1067,7 @@
(c-name "g_dir_make_tmp")
(return-type "gchar*")
(parameters
- '("gchar*" "tmpl")
+ '("const-gchar*" "tmpl")
'("GError**" "error")
)
)
@@ -1183,7 +1183,7 @@
(c-name "g_file_get_contents")
(return-type "gboolean")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("gchar**" "contents")
'("gsize*" "length")
'("GError**" "error")
@@ -1194,7 +1194,7 @@
(c-name "g_file_open_tmp")
(return-type "gint")
(parameters
- '("gchar*" "tmpl")
+ '("const-gchar*" "tmpl")
'("gchar**" "name_used")
'("GError**" "error")
)
@@ -1204,7 +1204,7 @@
(c-name "g_file_read_link")
(return-type "gchar*")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("GError**" "error")
)
)
@@ -1213,8 +1213,8 @@
(c-name "g_file_set_contents")
(return-type "gboolean")
(parameters
- '("gchar*" "filename")
- '("gchar*" "contents")
+ '("const-gchar*" "filename")
+ '("const-gchar*" "contents")
'("gssize" "length")
'("GError**" "error")
)
@@ -1224,7 +1224,7 @@
(c-name "g_file_test")
(return-type "gboolean")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("GFileTest" "test")
)
)
@@ -1233,7 +1233,7 @@
(c-name "g_filename_display_basename")
(return-type "gchar*")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
)
)
@@ -1241,7 +1241,7 @@
(c-name "g_filename_display_name")
(return-type "gchar*")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
)
)
@@ -1271,7 +1271,7 @@
(c-name "g_filename_to_uri")
(return-type "gchar*")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("const-gchar*" "hostname")
'("GError**" "error")
)
@@ -1281,7 +1281,7 @@
(c-name "g_filename_to_utf8")
(return-type "gchar*")
(parameters
- '("gchar*" "opsysstring")
+ '("const-gchar*" "opsysstring")
'("gssize" "len")
'("gsize*" "bytes_read")
'("gsize*" "bytes_written")
@@ -1293,7 +1293,7 @@
(c-name "g_find_program_in_path")
(return-type "gchar*")
(parameters
- '("gchar*" "program")
+ '("const-gchar*" "program")
)
)
@@ -1327,7 +1327,7 @@
(return-type "gint")
(parameters
'("FILE*" "file")
- '("gchar*" "format")
+ '("const-gchar*" "format")
'("..." "...")
)
)
@@ -1386,7 +1386,7 @@
(define-function g_get_home_dir
(c-name "g_get_home_dir")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-function g_get_host_name
@@ -1424,7 +1424,7 @@
(define-function g_get_real_name
(c-name "g_get_real_name")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-function g_get_real_time
@@ -1444,37 +1444,37 @@
(define-function g_get_tmp_dir
(c-name "g_get_tmp_dir")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-function g_get_user_cache_dir
(c-name "g_get_user_cache_dir")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-function g_get_user_config_dir
(c-name "g_get_user_config_dir")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-function g_get_user_data_dir
(c-name "g_get_user_data_dir")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-function g_get_user_name
(c-name "g_get_user_name")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-function g_get_user_runtime_dir
(c-name "g_get_user_runtime_dir")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-function g_get_user_special_dir
(c-name "g_get_user_special_dir")
- (return-type "gchar*")
+ (return-type "const-gchar*")
(parameters
'("GUserDirectory" "directory")
)
@@ -2201,7 +2201,7 @@
(c-name "g_mkdir_with_parents")
(return-type "gint")
(parameters
- '("gchar*" "pathname")
+ '("const-gchar*" "pathname")
'("gint" "mode")
)
)
@@ -2210,7 +2210,7 @@
(c-name "g_mkdtemp")
(return-type "gchar*")
(parameters
- '("gchar*" "tmpl")
+ '("const-gchar*" "tmpl")
)
)
@@ -2218,7 +2218,7 @@
(c-name "g_mkdtemp_full")
(return-type "gchar*")
(parameters
- '("gchar*" "tmpl")
+ '("const-gchar*" "tmpl")
'("gint" "mode")
)
)
@@ -2227,7 +2227,7 @@
(c-name "g_mkstemp")
(return-type "gint")
(parameters
- '("gchar*" "tmpl")
+ '("const-gchar*" "tmpl")
)
)
@@ -2235,7 +2235,7 @@
(c-name "g_mkstemp_full")
(return-type "gint")
(parameters
- '("gchar*" "tmpl")
+ '("const-gchar*" "tmpl")
'("gint" "flags")
'("gint" "mode")
)
@@ -2269,7 +2269,7 @@
(c-name "g_once_init_enter")
(return-type "gboolean")
(parameters
- '("void*" "location")
+ '("const-void*" "location")
)
)
@@ -2277,7 +2277,7 @@
(c-name "g_once_init_leave")
(return-type "void")
(parameters
- '("void*" "location")
+ '("const-void*" "location")
'("gsize" "result")
)
)
@@ -2301,7 +2301,7 @@
(c-name "g_path_get_basename")
(return-type "gchar*")
(parameters
- '("gchar*" "file_name")
+ '("const-gchar*" "file_name")
)
)
@@ -2309,7 +2309,7 @@
(c-name "g_path_get_dirname")
(return-type "gchar*")
(parameters
- '("gchar*" "file_name")
+ '("const-gchar*" "file_name")
)
)
@@ -2317,15 +2317,15 @@
(c-name "g_path_is_absolute")
(return-type "gboolean")
(parameters
- '("gchar*" "file_name")
+ '("const-gchar*" "file_name")
)
)
(define-function g_path_skip_root
(c-name "g_path_skip_root")
- (return-type "gchar*")
+ (return-type "const-gchar*")
(parameters
- '("gchar*" "file_name")
+ '("const-gchar*" "file_name")
)
)
@@ -2362,7 +2362,7 @@
(c-name "g_pointer_bit_lock")
(return-type "void")
(parameters
- '("void*" "address")
+ '("const-void*" "address")
'("gint" "lock_bit")
)
)
@@ -2371,7 +2371,7 @@
(c-name "g_pointer_bit_trylock")
(return-type "gboolean")
(parameters
- '("void*" "address")
+ '("const-void*" "address")
'("gint" "lock_bit")
)
)
@@ -2380,7 +2380,7 @@
(c-name "g_pointer_bit_unlock")
(return-type "void")
(parameters
- '("void*" "address")
+ '("const-void*" "address")
'("gint" "lock_bit")
)
)
@@ -2427,7 +2427,7 @@
(c-name "g_printf")
(return-type "gint")
(parameters
- '("gchar*" "format")
+ '("const-gchar*" "format")
'("..." "...")
)
)
@@ -2588,7 +2588,7 @@
(c-name "g_regex_escape_string")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
'("gint" "length")
)
)
@@ -2634,7 +2634,7 @@
(c-name "g_rmdir")
(return-type "int")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
)
)
@@ -2873,9 +2873,9 @@
(c-name "g_snprintf")
(return-type "gint")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
'("gulong" "n")
- '("gchar*" "format")
+ '("const-gchar*" "format")
'("..." "...")
)
)
@@ -2926,7 +2926,7 @@
(c-name "g_spawn_async")
(return-type "gboolean")
(parameters
- '("gchar*" "working_directory")
+ '("const-gchar*" "working_directory")
'("gchar**" "argv")
'("gchar**" "envp")
'("GSpawnFlags" "flags")
@@ -2941,7 +2941,7 @@
(c-name "g_spawn_async_with_pipes")
(return-type "gboolean")
(parameters
- '("gchar*" "working_directory")
+ '("const-gchar*" "working_directory")
'("gchar**" "argv")
'("gchar**" "envp")
'("GSpawnFlags" "flags")
@@ -3007,7 +3007,7 @@
(c-name "g_spawn_sync")
(return-type "gboolean")
(parameters
- '("gchar*" "working_directory")
+ '("const-gchar*" "working_directory")
'("gchar**" "argv")
'("gchar**" "envp")
'("GSpawnFlags" "flags")
@@ -3024,8 +3024,8 @@
(c-name "g_sprintf")
(return-type "gint")
(parameters
- '("gchar*" "string")
- '("gchar*" "format")
+ '("const-gchar*" "string")
+ '("const-gchar*" "format")
'("..." "...")
)
)
@@ -3034,7 +3034,7 @@
(c-name "g_stpcpy")
(return-type "gchar*")
(parameters
- '("gchar*" "dest")
+ '("const-gchar*" "dest")
'("const-char*" "src")
)
)
@@ -3115,7 +3115,7 @@
(c-name "g_strcanon")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
'("const-gchar*" "valid_chars")
'("gchar" "substitutor")
)
@@ -3134,7 +3134,7 @@
(c-name "g_strchomp")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
)
)
@@ -3142,7 +3142,7 @@
(c-name "g_strchug")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
)
)
@@ -3176,7 +3176,7 @@
(c-name "g_strdelimit")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
'("const-gchar*" "delimiters")
'("gchar" "new_delimiter")
)
@@ -3186,7 +3186,7 @@
(c-name "g_strdown")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
)
)
@@ -3305,7 +3305,7 @@
(c-name "g_strlcat")
(return-type "gsize")
(parameters
- '("gchar*" "dest")
+ '("const-gchar*" "dest")
'("const-gchar*" "src")
'("gsize" "dest_size")
)
@@ -3315,7 +3315,7 @@
(c-name "g_strlcpy")
(return-type "gsize")
(parameters
- '("gchar*" "dest")
+ '("const-gchar*" "dest")
'("const-gchar*" "src")
'("gsize" "dest_size")
)
@@ -3353,7 +3353,7 @@
(c-name "g_strreverse")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
)
)
@@ -3427,7 +3427,7 @@
(c-name "g_strup")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
)
)
@@ -3576,7 +3576,7 @@
(define-function g_test_get_dir
(c-name "g_test_get_dir")
- (return-type "gchar*")
+ (return-type "const-gchar*")
(parameters
'("GTestFileType" "file_type")
)
@@ -4423,7 +4423,7 @@
(c-name "g_unlink")
(return-type "int")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
)
)
@@ -4651,7 +4651,7 @@
(c-name "g_utf8_strncpy")
(return-type "gchar*")
(parameters
- '("gchar*" "dest")
+ '("const-gchar*" "dest")
'("const-gchar*" "src")
'("gsize" "n")
)
@@ -4733,7 +4733,7 @@
(c-name "g_utf8_validate")
(return-type "gboolean")
(parameters
- '("gchar*" "str")
+ '("const-gchar*" "str")
'("gssize" "max_len")
'("const-gchar**" "end")
)
@@ -4822,7 +4822,7 @@
(return-type "gint")
(parameters
'("gchar**" "string")
- '("gchar*" "format")
+ '("const-gchar*" "format")
'("va_list" "args")
)
)
@@ -4832,7 +4832,7 @@
(return-type "gint")
(parameters
'("FILE*" "file")
- '("gchar*" "format")
+ '("const-gchar*" "format")
'("va_list" "args")
)
)
@@ -4841,7 +4841,7 @@
(c-name "g_vprintf")
(return-type "gint")
(parameters
- '("gchar*" "format")
+ '("const-gchar*" "format")
'("va_list" "args")
)
)
@@ -4850,9 +4850,9 @@
(c-name "g_vsnprintf")
(return-type "gint")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
'("gulong" "n")
- '("gchar*" "format")
+ '("const-gchar*" "format")
'("va_list" "args")
)
)
@@ -4861,8 +4861,8 @@
(c-name "g_vsprintf")
(return-type "gint")
(parameters
- '("gchar*" "string")
- '("gchar*" "format")
+ '("const-gchar*" "string")
+ '("const-gchar*" "format")
'("va_list" "args")
)
)
@@ -5453,7 +5453,7 @@
(c-name "g_bookmark_file_load_from_data_dirs")
(return-type "gboolean")
(parameters
- '("gchar*" "file")
+ '("const-gchar*" "file")
'("gchar**" "full_path")
'("GError**" "error")
)
@@ -5464,7 +5464,7 @@
(c-name "g_bookmark_file_load_from_file")
(return-type "gboolean")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("GError**" "error")
)
)
@@ -5633,7 +5633,7 @@
(c-name "g_bookmark_file_to_file")
(return-type "gboolean")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("GError**" "error")
)
)
@@ -6328,7 +6328,7 @@
(c-name "g_date_strftime")
(return-type "gsize")
(parameters
- '("gchar*" "s")
+ '("const-gchar*" "s")
'("gsize" "slen")
'("const-gchar*" "format")
'("const-GDate*" "date")
@@ -6763,7 +6763,7 @@
(define-method read_name
(of-object "GDir")
(c-name "g_dir_read_name")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-method rewind
@@ -6776,7 +6776,7 @@
(c-name "g_dir_make_tmp")
(return-type "gchar*")
(parameters
- '("gchar*" "tmpl")
+ '("const-gchar*" "tmpl")
'("GError**" "error")
)
)
@@ -7370,11 +7370,11 @@
)
)
-(define-function g_iconv
+(define-method
+ (of-object "GIConv")
(c-name "g_iconv")
(return-type "gsize")
(parameters
- '("GIConv" "converter")
'("gchar**" "inbuf")
'("gsize*" "inbytes_left")
'("gchar**" "outbuf")
@@ -7382,12 +7382,10 @@
)
)
-(define-function g_iconv_close
+(define-method close
+ (of-object "GIConv")
(c-name "g_iconv_close")
(return-type "gint")
- (parameters
- '("GIConv" "converter")
- )
)
(define-function g_iconv_open
@@ -7403,7 +7401,7 @@
(c-name "g_io_channel_new_file")
(return-type "GIOChannel*")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("const-gchar*" "mode")
'("GError**" "error")
)
@@ -7488,7 +7486,7 @@
(c-name "g_io_channel_read")
(return-type "GIOError")
(parameters
- '("gchar*" "buf")
+ '("const-gchar*" "buf")
'("gsize" "count")
'("gsize*" "bytes_read")
)
@@ -7671,6 +7669,7 @@
(of-object "GIOChannel")
(c-name "g_io_channel_write_chars")
(return-type "GIOStatus")
+
(parameters
'("const-gchar*" "buf")
'("gssize" "count")
@@ -7948,7 +7947,7 @@
(c-name "g_key_file_load_from_data_dirs")
(return-type "gboolean")
(parameters
- '("gchar*" "file")
+ '("const-gchar*" "file")
'("gchar**" "full_path")
'("GKeyFileFlags" "flags")
'("GError**" "error")
@@ -7960,7 +7959,7 @@
(c-name "g_key_file_load_from_dirs")
(return-type "gboolean")
(parameters
- '("gchar*" "file")
+ '("const-gchar*" "file")
'("const-gchar**" "search_dirs")
'("gchar**" "full_path")
'("GKeyFileFlags" "flags")
@@ -7973,7 +7972,7 @@
(c-name "g_key_file_load_from_file")
(return-type "gboolean")
(parameters
- '("gchar*" "file")
+ '("const-gchar*" "file")
'("GKeyFileFlags" "flags")
'("GError**" "error")
)
@@ -8148,7 +8147,7 @@
'("const-gchar*" "group_name")
'("const-gchar*" "key")
'("const-gchar*" "locale")
- '("gchar*" "list")
+ '("const-gchar*" "list")
'("gsize" "length")
)
)
@@ -8171,7 +8170,7 @@
(parameters
'("const-gchar*" "group_name")
'("const-gchar*" "key")
- '("gchar*" "list")
+ '("const-gchar*" "list")
'("gsize" "length")
)
)
@@ -8760,7 +8759,7 @@
(c-name "g_mapped_file_new")
(return-type "GMappedFile*")
(parameters
- '("gchar*" "filename")
+ '("const-gchar*" "filename")
'("gboolean" "writable")
'("GError**" "error")
)
@@ -9245,7 +9244,7 @@
(c-name "g_once_init_enter")
(return-type "gboolean")
(parameters
- '("void*" "location")
+ '("const-void*" "location")
)
)
@@ -9253,7 +9252,7 @@
(c-name "g_once_init_leave")
(return-type "void")
(parameters
- '("void*" "location")
+ '("const-void*" "location")
'("gsize" "result")
)
)
@@ -10296,7 +10295,7 @@
(c-name "g_regex_match_all_full")
(return-type "gboolean")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
'("gssize" "string_len")
'("gint" "start_position")
'("GRegexMatchFlags" "match_options")
@@ -10310,7 +10309,7 @@
(c-name "g_regex_match_full")
(return-type "gboolean")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
'("gssize" "string_len")
'("gint" "start_position")
'("GRegexMatchFlags" "match_options")
@@ -10344,7 +10343,7 @@
(c-name "g_regex_replace_eval")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
'("gssize" "string_len")
'("gint" "start_position")
'("GRegexMatchFlags" "match_options")
@@ -10426,7 +10425,7 @@
(c-name "g_regex_escape_string")
(return-type "gchar*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
'("gint" "length")
)
)
@@ -12399,7 +12398,7 @@
(c-name "g_variant_new_bytestring")
(return-type "GVariant*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
)
)
@@ -12577,7 +12576,7 @@
(c-name "g_variant_new_take_string")
(return-type "GVariant*")
(parameters
- '("gchar*" "string")
+ '("const-gchar*" "string")
)
)
@@ -12742,7 +12741,7 @@
(define-method get_bytestring
(of-object "GVariant")
(c-name "g_variant_get_bytestring")
- (return-type "gchar*")
+ (return-type "const-gchar*")
)
(define-method get_bytestring_array
@@ -17546,7 +17545,7 @@
(c-name "g_value_set_string_take_ownership")
(return-type "void")
(parameters
- '("gchar*" "v_string")
+ '("const-gchar*" "v_string")
)
)
@@ -17627,7 +17626,7 @@
(c-name "g_value_take_string")
(return-type "void")
(parameters
- '("gchar*" "v_string")
+ '("const-gchar*" "v_string")
)
)
diff --git a/glib/src/glib_functions.defs.patch b/glib/src/glib_functions.defs.patch
index f026393..b29107c 100644
--- a/glib/src/glib_functions.defs.patch
+++ b/glib/src/glib_functions.defs.patch
@@ -1,51 +1,12 @@
--- a/glib/src/glib_functions.defs
+++ b/glib/src/glib_functions.defs
-@@ -7672,7 +7672,7 @@
- (c-name "g_io_channel_write_chars")
- (return-type "GIOStatus")
- (parameters
-+ '("const-gchar*" "buf")
-- '("gchar*" "buf")
- '("gssize" "count")
- '("gsize*" "bytes_written")
- '("GError**" "error")
-
-@@ -7961,7 +7961,7 @@
+@@ -7960,7 +7960,7 @@
(return-type "gboolean")
(parameters
- '("gchar*" "file")
+ '("const-gchar*" "file")
+ '("const-gchar**" "search_dirs")
- '("gchar**" "search_dirs")
'("gchar**" "full_path")
'("GKeyFileFlags" "flags")
'("GError**" "error")
-@@ -10330,7 +10330,7 @@
- (c-name "g_regex_replace")
- (return-type "gchar*")
- (parameters
-+ '("const-gchar*" "string")
-- '("gchar*" "string")
- '("gssize" "string_len")
- '("gint" "start_position")
- '("const-gchar*" "replacement")
-
-@@ -10359,7 +10359,7 @@
- (c-name "g_regex_replace_literal")
- (return-type "gchar*")
- (parameters
-+ '("const-gchar*" "string")
-- '("gchar*" "string")
- '("gssize" "string_len")
- '("gint" "start_position")
- '("const-gchar*" "replacement")
-
-@@ -10383,7 +10383,7 @@
- (c-name "g_regex_split_full")
- (return-type "gchar**")
- (parameters
-+ '("const-gchar*" "string")
-- '("gchar*" "string")
- '("gssize" "string_len")
- '("gint" "start_position")
- '("GRegexMatchFlags" "match_options")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]