File networkmanager-defines.patch of Package openlmi-networking

diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-openlmi-networking-0.1.1/src/activeconnection_nm.c ./src/activeconnection_nm.c
--- ../orig-openlmi-networking-0.1.1/src/activeconnection_nm.c	2013-08-07 08:28:28.000000000 +0200
+++ ./src/activeconnection_nm.c	2013-10-01 10:04:46.470136795 +0200
@@ -34,6 +34,9 @@
 #include "network_private.h"
 #include "errors.h"
 
+/* value taken from upstream: http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/include/NetworkManager.h */
+#define NM_ACTIVE_CONNECTION_STATE_DEACTIVATED 4
+
 LMIResult active_connection_read_properties(ActiveConnection *activeConnection, GHashTable *properties);
 void active_connection_changed_cb(void *proxy, GHashTable *properties, ActiveConnection *activeConnection);
 
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs ../orig-openlmi-networking-0.1.1/src/port_nm.c ./src/port_nm.c
--- ../orig-openlmi-networking-0.1.1/src/port_nm.c	2013-08-07 08:28:28.000000000 +0200
+++ ./src/port_nm.c	2013-10-01 10:03:03.730124597 +0200
@@ -31,6 +31,11 @@
 #include "network_private.h"
 #include "errors.h"
 
+/* values taken from upstream: http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/include/NetworkManager.h */
+#define NM_DEVICE_STATE_REASON_MODEM_MANAGER_UNAVAILABLE 52
+#define NM_DEVICE_STATE_REASON_SSID_NOT_FOUND 53
+#define NM_DEVICE_STATE_REASON_SECONDARY_CONNECTION_FAILED 54
+
 typedef struct PortPriv {
     DBusGProxy *proxy;
     DBusGProxy *subproxy;
openSUSE Build Service is sponsored by