1c2e07ca4b
Fix D-Bus response codes to correspond with NetworkManager. (rhbz#693873)
29 lines
879 B
Diff
29 lines
879 B
Diff
diff -up ypbind-mt-1.32/src/ypbind_dbus_nm.c.dbus ypbind-mt-1.32/src/ypbind_dbus_nm.c
|
|
--- ypbind-mt-1.32/src/ypbind_dbus_nm.c.dbus 2011-04-07 14:55:56.251110287 +0200
|
|
+++ ypbind-mt-1.32/src/ypbind_dbus_nm.c 2011-04-07 16:47:17.747108590 +0200
|
|
@@ -42,13 +42,19 @@
|
|
#define NM_DBUS_VPN_SIGNAL_STATE_CHANGE "StateChange"
|
|
|
|
typedef enum NMState {
|
|
- NM_STATE_UNKNOWN = 0,
|
|
- NM_STATE_ASLEEP,
|
|
- NM_STATE_CONNECTING,
|
|
- NM_STATE_CONNECTED,
|
|
- NM_STATE_DISCONNECTED
|
|
+ NM_STATE_UNKNOWN = 0,
|
|
+ NM_STATE_ASLEEP = 10,
|
|
+ NM_STATE_DISCONNECTED = 20,
|
|
+ NM_STATE_DISCONNECTING = 30,
|
|
+ NM_STATE_CONNECTING = 40,
|
|
+ NM_STATE_CONNECTED_LOCAL = 50,
|
|
+ NM_STATE_CONNECTED_SITE = 60,
|
|
+ NM_STATE_CONNECTED_GLOBAL = 70
|
|
} NMState;
|
|
|
|
+/* For backwards compat */
|
|
+#define NM_STATE_CONNECTED NM_STATE_CONNECTED_GLOBAL
|
|
+
|
|
#endif
|
|
|
|
#define DBUS_MESSAGE_MATCH \
|