diff options
| author | Sjoerd Simons <sjoerd@luon.net> | 2013-10-25 21:20:58 +0200 |
|---|---|---|
| committer | Sjoerd Simons <sjoerd@luon.net> | 2013-10-25 21:20:58 +0200 |
| commit | a4256940da049f91bbbea5e53e469a59ea9c10f7 (patch) | |
| tree | 2211c102aea3a33f34f960f48c8b8a55daccd97b /src/nm-policy.h | |
| parent | 8d275584fc94f398f0a7c990dcd057533d9a5856 (diff) | |
Imported Upstream version 0.9.8.8 upstream/0.9.8.8
Diffstat (limited to 'src/nm-policy.h')
| -rw-r--r-- | src/nm-policy.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/src/nm-policy.h b/src/nm-policy.h index c00c3ded..6e83182a 100644 --- a/src/nm-policy.h +++ b/src/nm-policy.h @@ -25,9 +25,34 @@ #include "nm-manager.h" #include "nm-settings.h" -typedef struct NMPolicy NMPolicy; +#define NM_TYPE_POLICY (nm_policy_get_type ()) +#define NM_POLICY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_POLICY, NMPolicy)) +#define NM_POLICY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_POLICY, NMPolicyClass)) +#define NM_IS_POLICY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_POLICY)) +#define NM_IS_POLICY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_POLICY)) +#define NM_POLICY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_POLICY, NMPolicyClass)) + +#define NM_POLICY_DEFAULT_IP4_DEVICE "default-ip4-device" +#define NM_POLICY_DEFAULT_IP6_DEVICE "default-ip6-device" +#define NM_POLICY_ACTIVATING_IP4_DEVICE "activating-ip4-device" +#define NM_POLICY_ACTIVATING_IP6_DEVICE "activating-ip6-device" + +typedef struct { + GObject parent; +} NMPolicy; + +typedef struct { + GObjectClass parent; + +} NMPolicyClass; + +GType nm_policy_get_type (void); NMPolicy *nm_policy_new (NMManager *manager, NMSettings *settings); -void nm_policy_destroy (NMPolicy *policy); + +NMDevice *nm_policy_get_default_ip4_device (NMPolicy *policy); +NMDevice *nm_policy_get_default_ip6_device (NMPolicy *policy); +NMDevice *nm_policy_get_activating_ip4_device (NMPolicy *policy); +NMDevice *nm_policy_get_activating_ip6_device (NMPolicy *policy); #endif /* NM_POLICY_H */ |