[network-manager-openconnect/lr/libnm: 6/9] auth-dialog: port to libnm



commit 337aba30839cc4c73e2de7121b52077ff964e008
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Fri Jul 24 18:06:40 2015 +0200

    auth-dialog: port to libnm

 auth-dialog/Makefile.am |    4 ++--
 auth-dialog/main.c      |    5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/auth-dialog/Makefile.am b/auth-dialog/Makefile.am
index 4545bbc..1d6ad5a 100644
--- a/auth-dialog/Makefile.am
+++ b/auth-dialog/Makefile.am
@@ -1,7 +1,7 @@
 libexec_PROGRAMS = nm-openconnect-auth-dialog
 
 nm_openconnect_auth_dialog_CPPFLAGS = \
-       $(LIBNM_GLIB_CFLAGS) \
+       $(LIBNM_CFLAGS) \
        $(GLIB_CFLAGS) \
        $(GTK_CFLAGS) \
        $(OPENCONNECT_CFLAGS) \
@@ -21,7 +21,7 @@ nm_openconnect_auth_dialog_SOURCES = \
 
 nm_openconnect_auth_dialog_LDADD = \
        $(GTK_LIBS) \
-       $(LIBNM_GLIB_LIBS) \
+       $(LIBNM_LIBS) \
        $(OPENCONNECT_LIBS) \
        $(LIBXML_LIBS) \
        $(LIBSECRET_LIBS)
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 2602e2b..9744988 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -40,7 +40,8 @@
 #include <glib/gi18n.h>
 #include <glib-unix.h>
 
-#include <nm-vpn-plugin-utils.h>
+#include <NetworkManager.h>
+#include <nm-vpn-service-plugin.h>
 
 #define SECRET_API_SUBJECT_TO_CHANGE
 #include <libsecret/secret.h>
@@ -1628,7 +1629,7 @@ int main (int argc, char **argv)
                return 1;
        }
 
-       if (!nm_vpn_plugin_utils_read_vpn_details (0, &options, &secrets)) {
+       if (!nm_vpn_service_plugin_read_vpn_details (0, &options, &secrets)) {
                fprintf (stderr, "Failed to read '%s' (%s) data and secrets from stdin.\n",
                         vpn_name, vpn_uuid);
                return 1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]