summaryrefslogtreecommitdiff
path: root/src/nm-policy.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-04-04 13:58:44 +0200
committerThomas Haller <thaller@redhat.com>2016-04-04 15:47:22 +0200
commit6a08085d2703d7d8e9fadf47a1f8187f23a3e706 (patch)
tree312281ef90a3c0fcc858b5997c5797c8feccb2b3 /src/nm-policy.h
parent7e3d090acb149fc49926c81f67a4215ac0e8fba9 (diff)
downloadNetworkManager-6a08085d2703d7d8e9fadf47a1f8187f23a3e706.tar.gz
policy: embed pointer to private data into NMPolicy
Instead of a G_TYPE_INSTANCE_GET_PRIVATE() call every time, fetching the private data becomes a pointer dereference. As only one instance of NMPolicy exists, this costs us only one additional pointer of memory.
Diffstat (limited to 'src/nm-policy.h')
-rw-r--r--src/nm-policy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nm-policy.h b/src/nm-policy.h
index 4d504cdd9d..476ddf1dbe 100644
--- a/src/nm-policy.h
+++ b/src/nm-policy.h
@@ -38,8 +38,11 @@
#define NM_POLICY_ACTIVATING_IP4_DEVICE "activating-ip4-device"
#define NM_POLICY_ACTIVATING_IP6_DEVICE "activating-ip6-device"
+struct _NMPolicyPrivate;
+
struct _NMPolicy {
GObject parent;
+ struct _NMPolicyPrivate *priv;
};
typedef struct {