diff options
| author | Jeremy Bicha <jbicha@ubuntu.com> | 2018-02-08 17:55:49 -0500 |
|---|---|---|
| committer | Jeremy Bicha <jbicha@ubuntu.com> | 2018-02-08 17:55:49 -0500 |
| commit | f1c906035c6ea7eb635664835c153aed553dc2e5 (patch) | |
| tree | 7b870b6cef1f902486dc706084124c6964b342a6 /src/nm-active-connection.h | |
| parent | d6158994abe7b2be73443f933ed7fdcc40954c24 (diff) | |
| parent | d0408a3e3b1cc6effec321d098008ef0c4acf91b (diff) | |
Merge tag 'debian/1.10.4-1' into bionic
network-manager Debian release 1.10.4-1
Diffstat (limited to 'src/nm-active-connection.h')
| -rw-r--r-- | src/nm-active-connection.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nm-active-connection.h b/src/nm-active-connection.h index 5562b42f..5ede2b04 100644 --- a/src/nm-active-connection.h +++ b/src/nm-active-connection.h @@ -24,6 +24,8 @@ #include "nm-exported-object.h" #include "nm-connection.h" +#include "nm-utils/c-list.h" + #define NM_TYPE_ACTIVE_CONNECTION (nm_active_connection_get_type ()) #define NM_ACTIVE_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_ACTIVE_CONNECTION, NMActiveConnection)) #define NM_ACTIVE_CONNECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_ACTIVE_CONNECTION, NMActiveConnectionClass)) @@ -71,6 +73,10 @@ struct _NMActiveConnectionPrivate; struct _NMActiveConnection { NMExportedObject parent; struct _NMActiveConnectionPrivate *_priv; + + /* active connection can be tracked in a list by NMManager. This is + * the list node. */ + CList active_connections_lst; }; typedef struct { @@ -131,14 +137,10 @@ void nm_active_connection_set_specific_object (NMActiveConnection *self const char *specific_object); void nm_active_connection_set_default (NMActiveConnection *self, + int addr_family, gboolean is_default); -gboolean nm_active_connection_get_default (NMActiveConnection *self); - -void nm_active_connection_set_default6 (NMActiveConnection *self, - gboolean is_default6); - -gboolean nm_active_connection_get_default6 (NMActiveConnection *self); +gboolean nm_active_connection_get_default (NMActiveConnection *self, int addr_family); NMActiveConnectionState nm_active_connection_get_state (NMActiveConnection *self); |