aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-04-16 11:01:11 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-04-16 11:01:22 +0200
commit29cfcecb1b2d829848b1b530810a1b85155cc879 (patch)
treee30be2d3a7a4caf0cdc41cb0f145e8076807f3ab /src
parent660d57b5b01ec0bb683d96366d0cfeb149c43780 (diff)
downloadremote-logon-service-29cfcecb1b2d829848b1b530810a1b85155cc879.tar.gz
remote-logon-service-29cfcecb1b2d829848b1b530810a1b85155cc879.tar.bz2
remote-logon-service-29cfcecb1b2d829848b1b530810a1b85155cc879.zip
Port to libnm (from libnm-glib).
Diffstat (limited to 'src')
-rw-r--r--src/uccs-server.c4
-rw-r--r--src/uccs-server.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/uccs-server.c b/src/uccs-server.c
index c37e181..69c716b 100644
--- a/src/uccs-server.c
+++ b/src/uccs-server.c
@@ -115,7 +115,7 @@ uccs_server_init (UccsServer *self)
if (g_strcmp0(g_getenv("DBUS_TEST_RUNNER"), "1")) {
if (global_client == NULL) {
- global_client = nm_client_new();
+ global_client = nm_client_new(NULL, NULL);
if (global_client != NULL) {
g_object_add_weak_pointer(G_OBJECT(global_client), (gpointer *)&global_client);
@@ -346,7 +346,7 @@ nm_state_changed (NMClient *client, const GParamSpec *pspec, gpointer user_data)
g_return_if_fail(IS_UCCS_SERVER(user_data));
UccsServer * server = UCCS_SERVER(user_data);
- if (server->nm_client == NULL || !nm_client_get_manager_running(server->nm_client)) {
+ if (server->nm_client == NULL || !nm_client_get_nm_running(server->nm_client)) {
server->last_network = NM_STATE_DISCONNECTED;
} else {
server->last_network = nm_client_get_state(server->nm_client);
diff --git a/src/uccs-server.h b/src/uccs-server.h
index d9782af..4b54f51 100644
--- a/src/uccs-server.h
+++ b/src/uccs-server.h
@@ -22,7 +22,7 @@
#define __UCCS_SERVER_H__
#include <glib-object.h>
-#include <libnm-glib/nm-client.h>
+#include <libnm/NetworkManager.h>
#include <libsoup/soup.h>
#include "server.h"