[vala/0.34] gio-2.0: Use metadata instead of custom definitions for DBusMessage



commit 2466876871b356f8ceb053bea12bd36215dbb048
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sat Sep 24 11:01:13 2016 +0200

    gio-2.0: Use metadata instead of custom definitions for DBusMessage

 vapi/gio-2.0.vapi                 |    4 ++--
 vapi/metadata/Gio-2.0-custom.vala |   13 -------------
 vapi/metadata/Gio-2.0.metadata    |    6 ++----
 3 files changed, 4 insertions(+), 19 deletions(-)
---
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 9a16fd7..eca04fe 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -739,7 +739,7 @@ namespace GLib {
                [Version (since = "2.32")]
                public static GLib.DBusMenuModel @get (GLib.DBusConnection connection, string bus_name, 
string object_path);
        }
-       [CCode (cheader_filename = "gio/gio.h")]
+       [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_message_get_type ()")]
        [Version (since = "2.26")]
        public class DBusMessage : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -770,7 +770,7 @@ namespace GLib {
                public unowned GLib.UnixFDList get_unix_fd_list ();
                public void @lock ();
                [CCode (has_construct_function = false)]
-               public DBusMessage.method_call (string name, string path, string interface_, string method);
+               public DBusMessage.method_call (string? name, string path, string? interface_, string method);
                [CCode (has_construct_function = false)]
                [PrintfFormat]
                public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, 
string error_message_format, ...);
diff --git a/vapi/metadata/Gio-2.0-custom.vala b/vapi/metadata/Gio-2.0-custom.vala
index 32beefd..8262e87 100644
--- a/vapi/metadata/Gio-2.0-custom.vala
+++ b/vapi/metadata/Gio-2.0-custom.vala
@@ -42,19 +42,6 @@ namespace GLib {
                public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, 
GLib.DBusSendMessageFlags flags, int timeout_msec, uint32 *out_serial = null, GLib.Cancellable? cancellable = 
null) throws GLib.IOError;
        }
 
-       public class DBusMessage : GLib.Object {
-               [CCode (has_construct_function = false)]
-               public DBusMessage.method_call (string name, string path, string interface_, string method);
-               [PrintfFormat, CCode (has_construct_function = false)]
-               public DBusMessage.method_error (GLib.DBusMessage method_call_message, string error_name, 
string error_message_format, ...);
-               [CCode (has_construct_function = false)]
-               public DBusMessage.method_error_literal (GLib.DBusMessage method_call_message, string 
error_name, string error_message);
-               [CCode (has_construct_function = false)]
-               public DBusMessage.method_error_valist (GLib.DBusMessage method_call_message, string 
error_name, string error_message_format, va_list var_args); 
-               [CCode (has_construct_function = false)]
-               public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
-       }
-
        [CCode (cheader_filename = "gio/gio.h", type_id = "g_dbus_object_manager_client_get_type ()")]
        public class DBusObjectManagerClient : GLib.Object, GLib.AsyncInitable, GLib.DBusObjectManager, 
GLib.Initable {
                [CCode (cname = "g_dbus_object_manager_client_new", finish_function = 
"g_dbus_object_manager_client_new_finish")]
diff --git a/vapi/metadata/Gio-2.0.metadata b/vapi/metadata/Gio-2.0.metadata
index 1257ce3..df3b73a 100644
--- a/vapi/metadata/Gio-2.0.metadata
+++ b/vapi/metadata/Gio-2.0.metadata
@@ -99,6 +99,8 @@ DBusConnection
 DBusInterfaceSkeleton
   .get_vtable skip=false nullable unowned=false
 DBusMessage
+  .new_* skip=false symbol_type="constructor"
+  .new_method_error printf_format
   .get_header_fields type="uchar[]"
   .print.indent default=0
 DBus*Info
@@ -314,10 +316,6 @@ AsyncInitable
 DBusConnection
   .register_object skip
 
-// Bug #: Construct methods not detected as such
-DBusMessage
-  .new_method_* skip
-
 // Bug #: Reparenting instance method breaks arguments
 Socket
   .connection_factory_create_connection skip // parent="GLib.SocketConnection" 
name="factory_create_connection"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]