[glibmm] Update the methods .defs.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] Update the methods .defs.
- Date: Wed, 13 Jun 2012 10:31:08 +0000 (UTC)
commit 4ba9e7a95d35309a7d517e3cdc7e8eea86dd5724
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Jun 13 12:31:01 2012 +0200
Update the methods .defs.
* gio/src/gio_methods.defs:
* glib/src/glib_functions.defs:
* glib/src/gobject_functions.defs: Used the gen_scripts.
ChangeLog | 8 +
gio/src/gio_methods.defs | 364 +++++++++++++++++++++++++++++++++++++--
glib/src/glib_functions.defs | 10 +
glib/src/gobject_functions.defs | 6 +
4 files changed, 377 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 06a81d5..57c4b2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2012-06-13 Murray Cumming <murrayc murrayc com>
+ Update the methods .defs.
+
+ * gio/src/gio_methods.defs:
+ * glib/src/glib_functions.defs:
+ * glib/src/gobject_functions.defs: Used the gen_scripts.
+
+2012-06-13 Murray Cumming <murrayc murrayc com>
+
Updated the enums .defs.
* gio/src/gio_enums.defs:
diff --git a/gio/src/gio_methods.defs b/gio/src/gio_methods.defs
index e7973e1..9fa65f1 100644
--- a/gio/src/gio_methods.defs
+++ b/gio/src/gio_methods.defs
@@ -1114,6 +1114,19 @@
)
)
+(define-enum RecordType
+ (in-module "GResolver")
+ (c-name "GResolverRecordType")
+ (gtype-id "G_TYPE_RESOLVER_RECORD_TYPE")
+ (values
+ '("srv" "G_RESOLVER_RECORD_SRV")
+ '("mx" "G_RESOLVER_RECORD_MX")
+ '("txt" "G_RESOLVER_RECORD_TXT")
+ '("soa" "G_RESOLVER_RECORD_SOA")
+ '("ns" "G_RESOLVER_RECORD_NS")
+ )
+)
+
(define-enum Error
(in-module "GResource")
(c-name "GResourceError")
@@ -1606,6 +1619,15 @@
)
)
+(define-enum DBusFlags
+ (in-module "GTest")
+ (c-name "GTestDBusFlags")
+ (gtype-id "G_TYPE_TEST_DBUS_FLAGS")
+ (values
+ '("none" "G_TEST_DBUS_NONE")
+ )
+)
+
(define-flags BindFlags
(in-module "GSettings")
(c-name "GSettingsBindFlags")
@@ -2057,6 +2079,12 @@
)
)
+(define-method get_supported_types
+ (of-object "GAppInfo")
+ (c-name "g_app_info_get_supported_types")
+ (return-type "const-char**")
+)
+
(define-method can_delete
(of-object "GAppInfo")
(c-name "g_app_info_can_delete")
@@ -2336,6 +2364,18 @@
)
)
+(define-method get_dbus_connection
+ (of-object "GApplication")
+ (c-name "g_application_get_dbus_connection")
+ (return-type "GDBusConnection*")
+)
+
+(define-method get_dbus_object_path
+ (of-object "GApplication")
+ (c-name "g_application_get_dbus_object_path")
+ (return-type "const-gchar*")
+)
+
(define-method get_inactivity_timeout
(of-object "GApplication")
(c-name "g_application_get_inactivity_timeout")
@@ -3628,6 +3668,15 @@
)
)
+(define-method allow_mechanism
+ (of-object "GDBusAuthObserver")
+ (c-name "g_dbus_auth_observer_allow_mechanism")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "mechanism")
+ )
+)
+
;; From gdbusconnection.h
@@ -3773,6 +3822,12 @@
(return-type "GCredentials*")
)
+(define-method get_last_serial
+ (of-object "GDBusConnection")
+ (c-name "g_dbus_connection_get_last_serial")
+ (return-type "guint32")
+)
+
(define-method get_exit_on_close
(of-object "GDBusConnection")
(c-name "g_dbus_connection_get_exit_on_close")
@@ -4113,6 +4168,14 @@
+;; From gdbus-daemon-generated.h
+
+
+
+;; From gdbusdaemon.h
+
+
+
;; From gdbuserror.h
(define-function g_dbus_error_quark
@@ -6048,6 +6111,12 @@
)
)
+(define-method get_startup_wm_class
+ (of-object "GDesktopAppInfo")
+ (c-name "g_desktop_app_info_get_startup_wm_class")
+ (return-type "const-char*")
+)
+
(define-function g_desktop_app_info_new
(c-name "g_desktop_app_info_new")
(is-constructor-of "GDesktopAppInfo")
@@ -9101,6 +9170,17 @@
)
)
+(define-method read_bytes
+ (of-object "GInputStream")
+ (c-name "g_input_stream_read_bytes")
+ (return-type "GBytes*")
+ (parameters
+ '("gsize" "count")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
(define-method skip
(of-object "GInputStream")
(c-name "g_input_stream_skip")
@@ -9146,6 +9226,29 @@
)
)
+(define-method read_bytes_async
+ (of-object "GInputStream")
+ (c-name "g_input_stream_read_bytes_async")
+ (return-type "none")
+ (parameters
+ '("gsize" "count")
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method read_bytes_finish
+ (of-object "GInputStream")
+ (c-name "g_input_stream_read_bytes_finish")
+ (return-type "GBytes*")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
(define-method skip_async
(of-object "GInputStream")
(c-name "g_input_stream_skip_async")
@@ -9361,6 +9464,11 @@
(return-type "GType")
)
+(define-function g_resolver_record_type_get_type
+ (c-name "g_resolver_record_type_get_type")
+ (return-type "GType")
+)
+
(define-function g_resource_error_get_type
(c-name "g_resource_error_get_type")
(return-type "GType")
@@ -9561,6 +9669,11 @@
(return-type "GType")
)
+(define-function g_test_dbus_flags_get_type
+ (c-name "g_test_dbus_flags_get_type")
+ (return-type "GType")
+)
+
(define-function g_settings_bind_flags_get_type
(c-name "g_settings_bind_flags_get_type")
(return-type "GType")
@@ -10038,6 +10151,14 @@
)
)
+(define-function g_memory_input_stream_new_from_bytes
+ (c-name "g_memory_input_stream_new_from_bytes")
+ (return-type "GInputStream*")
+ (parameters
+ '("GBytes*" "bytes")
+ )
+)
+
(define-method add_data
(of-object "GMemoryInputStream")
(c-name "g_memory_input_stream_add_data")
@@ -10049,6 +10170,15 @@
)
)
+(define-method add_bytes
+ (of-object "GMemoryInputStream")
+ (c-name "g_memory_input_stream_add_bytes")
+ (return-type "none")
+ (parameters
+ '("GBytes*" "bytes")
+ )
+)
+
;; From gmemoryoutputstream.h
@@ -10094,6 +10224,12 @@
(return-type "gpointer")
)
+(define-method steal_as_bytes
+ (of-object "GMemoryOutputStream")
+ (c-name "g_memory_output_stream_steal_as_bytes")
+ (return-type "GBytes*")
+)
+
;; From gmenuexporter.h
@@ -11141,6 +11277,17 @@
)
)
+(define-method write_bytes
+ (of-object "GOutputStream")
+ (c-name "g_output_stream_write_bytes")
+ (return-type "gssize")
+ (parameters
+ '("GBytes*" "bytes")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
(define-method splice
(of-object "GOutputStream")
(c-name "g_output_stream_splice")
@@ -11197,6 +11344,29 @@
)
)
+(define-method write_bytes_async
+ (of-object "GOutputStream")
+ (c-name "g_output_stream_write_bytes_async")
+ (return-type "none")
+ (parameters
+ '("GBytes*" "bytes")
+ '("int" "io_priority")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method write_bytes_finish
+ (of-object "GOutputStream")
+ (c-name "g_output_stream_write_bytes_finish")
+ (return-type "gssize")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
(define-method splice_async
(of-object "GOutputStream")
(c-name "g_output_stream_splice_async")
@@ -11434,21 +11604,12 @@
(return-type "gssize")
(parameters
'("void*" "buffer")
- '("gsize" "size")
+ '("gsize" "count")
'("GCancellable*" "cancellable")
'("GError**" "error")
)
)
-(define-function g_pollable_source_new
- (c-name "g_pollable_source_new")
- (is-constructor-of "GPollableSource")
- (return-type "GSource*")
- (parameters
- '("GObject*" "pollable_stream")
- )
-)
-
;; From gpollableoutputstream.h
@@ -11485,7 +11646,70 @@
(return-type "gssize")
(parameters
'("const-void*" "buffer")
- '("gsize" "size")
+ '("gsize" "count")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+
+
+;; From gpollableutils.h
+
+(define-function g_pollable_source_new
+ (c-name "g_pollable_source_new")
+ (is-constructor-of "GPollableSource")
+ (return-type "GSource*")
+ (parameters
+ '("GObject*" "pollable_stream")
+ )
+)
+
+(define-function g_pollable_source_new_full
+ (c-name "g_pollable_source_new_full")
+ (return-type "GSource*")
+ (parameters
+ '("gpointer" "pollable_stream")
+ '("GSource*" "child_source")
+ '("GCancellable*" "cancellable")
+ )
+)
+
+(define-function g_pollable_stream_read
+ (c-name "g_pollable_stream_read")
+ (return-type "gssize")
+ (parameters
+ '("GInputStream*" "stream")
+ '("void*" "buffer")
+ '("gsize" "count")
+ '("gboolean" "blocking")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-function g_pollable_stream_write
+ (c-name "g_pollable_stream_write")
+ (return-type "gssize")
+ (parameters
+ '("GOutputStream*" "stream")
+ '("const-void*" "buffer")
+ '("gsize" "count")
+ '("gboolean" "blocking")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-function g_pollable_stream_write_all
+ (c-name "g_pollable_stream_write_all")
+ (return-type "gboolean")
+ (parameters
+ '("GOutputStream*" "stream")
+ '("const-void*" "buffer")
+ '("gsize" "count")
+ '("gboolean" "blocking")
+ '("gsize*" "bytes_written")
'("GCancellable*" "cancellable")
'("GError**" "error")
)
@@ -11534,6 +11758,12 @@
(return-type "const-gchar*")
)
+(define-method get_destination_protocol
+ (of-object "GProxyAddress")
+ (c-name "g_proxy_address_get_destination_protocol")
+ (return-type "const-gchar*")
+)
+
(define-method get_destination_hostname
(of-object "GProxyAddress")
(c-name "g_proxy_address_get_destination_hostname")
@@ -11558,6 +11788,12 @@
(return-type "const-gchar*")
)
+(define-method get_uri
+ (of-object "GProxyAddress")
+ (c-name "g_proxy_address_get_uri")
+ (return-type "const-gchar*")
+)
+
;; From gproxy.h
@@ -11835,6 +12071,41 @@
)
)
+(define-method lookup_records
+ (of-object "GResolver")
+ (c-name "g_resolver_lookup_records")
+ (return-type "GList*")
+ (parameters
+ '("const-gchar*" "rrname")
+ '("GResolverRecordType" "record_type")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-method lookup_records_async
+ (of-object "GResolver")
+ (c-name "g_resolver_lookup_records_async")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "rrname")
+ '("GResolverRecordType" "record_type")
+ '("GCancellable*" "cancellable")
+ '("GAsyncReadyCallback" "callback")
+ '("gpointer" "user_data")
+ )
+)
+
+(define-method lookup_records_finish
+ (of-object "GResolver")
+ (c-name "g_resolver_lookup_records_finish")
+ (return-type "GList*")
+ (parameters
+ '("GAsyncResult*" "result")
+ '("GError**" "error")
+ )
+)
+
(define-function g_resolver_free_targets
(c-name "g_resolver_free_targets")
(return-type "none")
@@ -12877,6 +13148,15 @@
(return-type "gboolean")
)
+(define-method set_check_cancellable
+ (of-object "GSimpleAsyncResult")
+ (c-name "g_simple_async_result_set_check_cancellable")
+ (return-type "none")
+ (parameters
+ '("GCancellable*" "check_cancellable")
+ )
+)
+
(define-method get_source_tag
(of-object "GSimpleAsyncResult")
(c-name "g_simple_async_result_get_source_tag")
@@ -14340,6 +14620,68 @@
+;; From gtestdbus.h
+
+(define-function g_test_dbus_get_type
+ (c-name "g_test_dbus_get_type")
+ (return-type "GType")
+)
+
+(define-function g_test_dbus_new
+ (c-name "g_test_dbus_new")
+ (is-constructor-of "GTestDbus")
+ (return-type "GTestDBus*")
+ (parameters
+ '("GTestDBusFlags" "flags")
+ )
+)
+
+(define-method get_flags
+ (of-object "GTestDBus")
+ (c-name "g_test_dbus_get_flags")
+ (return-type "GTestDBusFlags")
+)
+
+(define-method get_bus_address
+ (of-object "GTestDBus")
+ (c-name "g_test_dbus_get_bus_address")
+ (return-type "const-gchar*")
+)
+
+(define-method add_service_dir
+ (of-object "GTestDBus")
+ (c-name "g_test_dbus_add_service_dir")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "path")
+ )
+)
+
+(define-method up
+ (of-object "GTestDBus")
+ (c-name "g_test_dbus_up")
+ (return-type "none")
+)
+
+(define-method stop
+ (of-object "GTestDBus")
+ (c-name "g_test_dbus_stop")
+ (return-type "none")
+)
+
+(define-method down
+ (of-object "GTestDBus")
+ (c-name "g_test_dbus_down")
+ (return-type "none")
+)
+
+(define-function g_test_dbus_unset
+ (c-name "g_test_dbus_unset")
+ (return-type "none")
+)
+
+
+
;; From gthemedicon.h
(define-function g_themed_icon_get_type
diff --git a/glib/src/glib_functions.defs b/glib/src/glib_functions.defs
index 4da0924..18737bc 100644
--- a/glib/src/glib_functions.defs
+++ b/glib/src/glib_functions.defs
@@ -562,6 +562,7 @@
'("stderr-to-dev-null" "G_SPAWN_STDERR_TO_DEV_NULL")
'("child-inherits-stdin" "G_SPAWN_CHILD_INHERITS_STDIN")
'("file-and-argv-zero" "G_SPAWN_FILE_AND_ARGV_ZERO")
+ '("search-path-from-envp" "G_SPAWN_SEARCH_PATH_FROM_ENVP")
)
)
@@ -6904,6 +6905,15 @@
)
)
+(define-function g_clear_pointer
+ (c-name "g_clear_pointer")
+ (return-type "none")
+ (parameters
+ '("gpointer*" "pp")
+ '("GDestroyNotify" "destroy")
+ )
+)
+
(define-function g_malloc
(c-name "g_malloc")
(return-type "gpointer")
diff --git a/glib/src/gobject_functions.defs b/glib/src/gobject_functions.defs
index f90d47b..2d54613 100644
--- a/glib/src/gobject_functions.defs
+++ b/glib/src/gobject_functions.defs
@@ -2567,6 +2567,12 @@
)
)
+(define-method ensure
+ (of-object "GType")
+ (c-name "g_type_ensure")
+ (return-type "none")
+)
+
(define-method get_plugin
(of-object "GType")
(c-name "g_type_get_plugin")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]