[libsoup] Make SoupConnection a final type



commit 641838fbb79a879b5d84847ff7bceb16c342dade
Author: Patrick Griffis <pgriffis igalia com>
Date:   Wed Oct 28 12:55:11 2020 -0500

    Make SoupConnection a final type

 libsoup/soup-connection.c | 6 +++++-
 libsoup/soup-connection.h | 9 +--------
 2 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/libsoup/soup-connection.c b/libsoup/soup-connection.c
index 3357ebb4..d9f3af52 100644
--- a/libsoup/soup-connection.c
+++ b/libsoup/soup-connection.c
@@ -15,6 +15,10 @@
 #include "soup-socket-private.h"
 #include "soup-private-enum-types.h"
 
+struct _SoupConnection {
+        GObject parent_instance;
+};
+
 typedef struct {
        SoupSocket  *socket;
        SoupSocketProperties *socket_props;
@@ -167,7 +171,7 @@ soup_connection_class_init (SoupConnectionClass *connection_class)
                g_signal_new ("disconnected",
                              G_OBJECT_CLASS_TYPE (object_class),
                              G_SIGNAL_RUN_FIRST,
-                             G_STRUCT_OFFSET (SoupConnectionClass, disconnected),
+                             0,
                              NULL, NULL,
                              NULL,
                              G_TYPE_NONE, 0);
diff --git a/libsoup/soup-connection.h b/libsoup/soup-connection.h
index afb5a4e5..9f613a15 100644
--- a/libsoup/soup-connection.h
+++ b/libsoup/soup-connection.h
@@ -13,14 +13,7 @@
 G_BEGIN_DECLS
 
 #define SOUP_TYPE_CONNECTION (soup_connection_get_type ())
-G_DECLARE_DERIVABLE_TYPE (SoupConnection, soup_connection, SOUP, CONNECTION, GObject)
-
-struct _SoupConnectionClass {
-       GObjectClass parent_class;
-
-       /* signals */
-       void (*disconnected)    (SoupConnection *);
-};
+G_DECLARE_FINAL_TYPE (SoupConnection, soup_connection, SOUP, CONNECTION, GObject)
 
 typedef enum {
        SOUP_CONNECTION_NEW,


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