[gnome-online-accounts] dlna-server-manager: Use G_DECLARE_FINAL_TYPE
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] dlna-server-manager: Use G_DECLARE_FINAL_TYPE
- Date: Wed, 31 May 2017 14:41:06 +0000 (UTC)
commit fa5fe3a59cd3542ae63584ad529db789512ed7c7
Author: Debarshi Ray <debarshir gnome org>
Date: Wed May 31 12:28:51 2017 +0200
dlna-server-manager: Use G_DECLARE_FINAL_TYPE
src/goabackend/goadlnaservermanager.c | 5 -----
src/goabackend/goadlnaservermanager.h | 14 +-------------
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/src/goabackend/goadlnaservermanager.c b/src/goabackend/goadlnaservermanager.c
index 72ff3cf..027e72a 100644
--- a/src/goabackend/goadlnaservermanager.c
+++ b/src/goabackend/goadlnaservermanager.c
@@ -30,11 +30,6 @@ struct _GoaDlnaServerManager
GHashTable *servers;
};
-struct _GoaDlnaServerManagerClass
-{
- GObjectClass parent_class;
-};
-
enum
{
SERVER_FOUND,
diff --git a/src/goabackend/goadlnaservermanager.h b/src/goabackend/goadlnaservermanager.h
index b061346..ad36a49 100644
--- a/src/goabackend/goadlnaservermanager.h
+++ b/src/goabackend/goadlnaservermanager.h
@@ -24,19 +24,7 @@
G_BEGIN_DECLS
#define GOA_TYPE_DLNA_SERVER_MANAGER (goa_dlna_server_manager_get_type ())
-
-#define GOA_DLNA_SERVER_MANAGER(obj) \
- (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
- GOA_TYPE_DLNA_SERVER_MANAGER, GoaDlnaServerManager))
-
-#define GOA_IS_DLNA_SERVER_MANAGER(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
- GOA_TYPE_DLNA_SERVER_MANAGER))
-
-typedef struct _GoaDlnaServerManager GoaDlnaServerManager;
-typedef struct _GoaDlnaServerManagerClass GoaDlnaServerManagerClass;
-
-GType goa_dlna_server_manager_get_type (void) G_GNUC_CONST;
+G_DECLARE_FINAL_TYPE (GoaDlnaServerManager, goa_dlna_server_manager, GOA, DLNA_SERVER_MANAGER, GObject);
GoaDlnaServerManager *goa_dlna_server_manager_dup_singleton (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]