From: Andrea Zagli Date: Mon, 7 Sep 2015 14:57:12 +0000 (+0200) Subject: Changes due to libzakauthe name and namespace changes. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=b2ff273b96d3f8d67dca2cedca4fa3f9a16aa4c8;p=solipa%2Futenti Changes due to libzakauthe name and namespace changes. --- diff --git a/.gitignore b/.gitignore index b431ed6..e475958 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ stamp-h1 .anjuta* *exe *bak +compile \ No newline at end of file diff --git a/configure.ac b/configure.ac index f300050..ffe2e8a 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,10 @@ AC_INIT([utenti], [0.0.3], [azagli@libero.it]) AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_HEADER([config.h]) -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE(-Wall) + +m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) + AM_MAINTAINER_MODE AC_CANONICAL_SYSTEM @@ -17,7 +20,7 @@ AC_PROG_CXX # Checks for libraries. PKG_CHECK_MODULES(UTENTI, [gtk+-3.0 >= 3.0.0 - libaute >= 0.3.0]) + libzakauthe >= 0.5.0]) AC_SUBST(UTENTI_CFLAGS) AC_SUBST(UTENTI_LIBS) diff --git a/src/main.c b/src/main.c index ce2e19f..364bf70 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Andrea Zagli + * Copyright (C) 2010-2015 Andrea Zagli * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ #include -#include +#include static GtkBuilder *gtkbuilder; static gchar *guidir; @@ -75,7 +75,7 @@ main (int argc, char **argv) { GError *error; - Aute *aute; + ZakAuthe *aute; gchar **aute_params; gsize n_aute_params; GSList *sl_aute_params; @@ -119,12 +119,12 @@ main (int argc, char **argv) g_strfreev (aute_params); /* autenticazione */ - aute = aute_new (); - aute_set_config (aute, sl_aute_params); + aute = zak_authe_new (); + zak_authe_set_config (aute, sl_aute_params); while (TRUE) { - utente = aute_autentica (aute); + utente = zak_authe_authe (aute); if (utente == NULL) { @@ -132,7 +132,7 @@ main (int argc, char **argv) } else if (g_strcmp0 (utente, "") == 0) { - return 0; + return 0; } else { @@ -176,7 +176,7 @@ main (int argc, char **argv) vbx_body_child = NULL; - GtkWidget *wgui = aute_get_management_gui (aute); + GtkWidget *wgui = zak_authe_get_management_gui (aute); if (wgui != NULL) { utenti_set_vbx_body_child (wgui);