diff options
author | Dan Williams <dcbw@redhat.com> | 2010-05-22 08:55:30 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-05-22 09:51:22 -0700 |
commit | fa70542c618665cf203a2b71fa0e504f759f7902 (patch) | |
tree | 0628eaab6011cedd8b644406d6c5fef269d231f5 /src/nm-manager.h | |
parent | c1b3b137d977f97f101751d0aea80e5a8d595962 (diff) | |
download | NetworkManager-fa70542c618665cf203a2b71fa0e504f759f7902.tar.gz |
core: add networking enable/disable knob distinct from sleep/wake (rh #589108) (bgo #346615)
Since forever we've used sleep/wake as the way to implement
Networking Enabled. When the state file was introduced to make the
networking and wifi states persistent, we ran into a bug where
a failed suspend (like if the machine ran out of power while
suspended) would result in networking being disabled on reboot
since suspend/resume used the same knob as enable/disable.
This patch adds a distinct call for enable/disable networking
which changes the state file, while sleep/wake no longer change
the state file.
Diffstat (limited to 'src/nm-manager.h')
-rw-r--r-- | src/nm-manager.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/nm-manager.h b/src/nm-manager.h index 1090409a9b..0f4d72f2fd 100644 --- a/src/nm-manager.h +++ b/src/nm-manager.h @@ -16,7 +16,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Copyright (C) 2007 - 2008 Novell, Inc. - * Copyright (C) 2007 - 2008 Red Hat, Inc. + * Copyright (C) 2007 - 2010 Red Hat, Inc. */ #ifndef NM_MANAGER_H @@ -35,6 +35,14 @@ #define NM_IS_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_MANAGER)) #define NM_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_MANAGER, NMManagerClass)) +#define NM_MANAGER_STATE "state" +#define NM_MANAGER_NETWORKING_ENABLED "networking-enabled" +#define NM_MANAGER_WIRELESS_ENABLED "wireless-enabled" +#define NM_MANAGER_WIRELESS_HARDWARE_ENABLED "wireless-hardware-enabled" +#define NM_MANAGER_WWAN_ENABLED "wwan-enabled" +#define NM_MANAGER_WWAN_HARDWARE_ENABLED "wwan-hardware-enabled" +#define NM_MANAGER_ACTIVE_CONNECTIONS "active-connections" + /* Not exported */ #define NM_MANAGER_HOSTNAME "hostname" #define NM_MANAGER_SLEEPING "sleeping" |