diff options
author | Dan Winship <danw@gnome.org> | 2012-02-08 12:56:52 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-02-15 11:42:15 -0500 |
commit | 839eab556419b6af5046e44361bdcf14fe028d27 (patch) | |
tree | b9183f7d2cc207e7741960a2120756043a95f847 /src/nm-manager.h | |
parent | 0b57cc68fd4a146c9fe255f14c667ab306266c0c (diff) | |
download | NetworkManager-839eab556419b6af5046e44361bdcf14fe028d27.tar.gz |
Use glib-mkenums to generate enum types
Rather than generating enum classes by hand (and complaining in each
file that "this should really be standard"), use glib-mkenums.
Unfortunately, we need a very new version of glib-mkenums in order to
deal with NM's naming conventions and to fix a few other bugs, so just
import that into the source tree temporarily.
Also, to simplify the use of glib-mkenums, import Makefile.glib from
https://bugzilla.gnome.org/654395.
To avoid having to run glib-mkenums for every subdirectory of src/,
add a new "generated" directory, and put the generated enums files
there.
Finally, use Makefile.glib for marshallers too, and generate separate
ones for libnm-glib and NetworkManager.
Diffstat (limited to 'src/nm-manager.h')
-rw-r--r-- | src/nm-manager.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nm-manager.h b/src/nm-manager.h index f2c0e5b5b9..c3c08e462b 100644 --- a/src/nm-manager.h +++ b/src/nm-manager.h @@ -35,6 +35,18 @@ #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)) +typedef enum { + NM_MANAGER_ERROR_UNKNOWN_CONNECTION = 0, + NM_MANAGER_ERROR_UNKNOWN_DEVICE, + NM_MANAGER_ERROR_UNMANAGED_DEVICE, + NM_MANAGER_ERROR_SYSTEM_CONNECTION, + NM_MANAGER_ERROR_PERMISSION_DENIED, + NM_MANAGER_ERROR_CONNECTION_NOT_ACTIVE, + NM_MANAGER_ERROR_ALREADY_ASLEEP_OR_AWAKE, + NM_MANAGER_ERROR_ALREADY_ENABLED_OR_DISABLED, + NM_MANAGER_ERROR_UNSUPPORTED_CONNECTION_TYPE, +} NMManagerError; + #define NM_MANAGER_VERSION "version" #define NM_MANAGER_STATE "state" #define NM_MANAGER_NETWORKING_ENABLED "networking-enabled" |