[libsoup] Make SoupAuthManager a final type
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] Make SoupAuthManager a final type
- Date: Thu, 29 Oct 2020 21:46:45 +0000 (UTC)
commit 438019c1ba4be1960694967ff8dbc0e7e72d5b52
Author: Patrick Griffis <pgriffis igalia com>
Date: Thu Oct 29 16:46:31 2020 -0500
Make SoupAuthManager a final type
libsoup/auth/soup-auth-manager.c | 5 ++++-
libsoup/auth/soup-auth-manager.h | 10 +---------
2 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/libsoup/auth/soup-auth-manager.c b/libsoup/auth/soup-auth-manager.c
index 3e1000f2..aca7143e 100644
--- a/libsoup/auth/soup-auth-manager.c
+++ b/libsoup/auth/soup-auth-manager.c
@@ -58,6 +58,9 @@ enum {
static guint signals[LAST_SIGNAL] = { 0 };
+struct _SoupAuthManager {
+ GObject parent_instance;
+};
typedef struct {
SoupSession *session;
@@ -139,7 +142,7 @@ soup_auth_manager_class_init (SoupAuthManagerClass *auth_manager_class)
g_signal_new ("authenticate",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
- G_STRUCT_OFFSET (SoupAuthManagerClass, authenticate),
+ 0,
NULL, NULL,
NULL,
G_TYPE_NONE, 3,
diff --git a/libsoup/auth/soup-auth-manager.h b/libsoup/auth/soup-auth-manager.h
index c17c921c..d442a43e 100644
--- a/libsoup/auth/soup-auth-manager.h
+++ b/libsoup/auth/soup-auth-manager.h
@@ -12,15 +12,7 @@ G_BEGIN_DECLS
#define SOUP_TYPE_AUTH_MANAGER (soup_auth_manager_get_type ())
SOUP_AVAILABLE_IN_2_4
-G_DECLARE_DERIVABLE_TYPE (SoupAuthManager, soup_auth_manager, SOUP, AUTH_MANAGER, GObject)
-
-struct _SoupAuthManagerClass {
- GObjectClass parent_class;
-
- void (*authenticate) (SoupAuthManager *manager, SoupMessage *msg,
- SoupAuth *auth, gboolean retrying);
- gpointer padding[4];
-};
+G_DECLARE_FINAL_TYPE (SoupAuthManager, soup_auth_manager, SOUP, AUTH_MANAGER, GObject)
SOUP_AVAILABLE_IN_2_4
void soup_auth_manager_use_auth (SoupAuthManager *manager,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]