summaryrefslogtreecommitdiff
path: root/libnm/nm-access-point.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-10-18 08:12:01 +0200
committerThomas Haller <thaller@redhat.com>2019-10-22 10:58:52 +0200
commit57aa5e2a9df99eb6e6286ae0726cf9f40c5992e6 (patch)
tree971e3714bc3aaba7c257b719c43725f017db7974 /libnm/nm-access-point.h
parent35b024acaa3a74fc7b8c2fbccd1a5708bfe5cfa8 (diff)
downloadNetworkManager-57aa5e2a9df99eb6e6286ae0726cf9f40c5992e6.tar.gz
libnm: hide GObject structs from public API and embed private data
These types are all subclasses of NMObject. These instances are commonly created by NMClient itself. It makes no sense that a user would instantiate the type. Much less does it make sense to subclass them. Hide the object and class structures from public API. This is an API and ABI break, but of something that is very likely unused. This is mainly done to embed the private structure in the object itself. This has benefits for performance and debugability. But most importantly, we can obtain a static offset where to access the private data. That means, we can use the information to access the data pointer generically, as we will need later. This is not done for the internal types NMManager, NMRemoteSettings, and NMDnsManager. These types will be dropped later.
Diffstat (limited to 'libnm/nm-access-point.h')
-rw-r--r--libnm/nm-access-point.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/libnm/nm-access-point.h b/libnm/nm-access-point.h
index 58b9cfc683..5f7c315028 100644
--- a/libnm/nm-access-point.h
+++ b/libnm/nm-access-point.h
@@ -39,16 +39,7 @@ G_BEGIN_DECLS
/**
* NMAccessPoint:
*/
-struct _NMAccessPoint {
- NMObject parent;
-};
-
-typedef struct {
- NMObjectClass parent;
-
- /*< private >*/
- gpointer padding[4];
-} NMAccessPointClass;
+typedef struct _NMAccessPointClass NMAccessPointClass;
GType nm_access_point_get_type (void);