+if HAVE_LIBZAKCONFI
+ ZAKCONFI_GIR=ZakConfi-1.0
+else
+ ZAKCONFI_GIR=
+endif
+
AM_CPPFLAGS = $(LIBZAKAUTHE_CFLAGS) \
$(LIBZAKCONFI_CFLAGS) \
-DLIB_ZAK_AUTHE_PLUGINS_DIR=\""$(libdir)/$(PACKAGE)/plugins"\"
libzakauthe_include_HEADERS = libzakauthe.h \
authe.h \
authepluggable.h
+
+CLEANFILES =
+
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS =
+INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
+
+if HAVE_INTROSPECTION
+introspection_sources = $(libzakauthe_la_SOURCES) $(libzakauthe_include_HEADERS)
+
+ZakAuthe-1.0.gir: libzakauthe.la
+ZakAuthe_1_0_gir_INCLUDES = GObject-2.0 Peas-1.0 Gtk-3.0 $(ZAKCONFI_GIR)
+ZakAuthe_1_0_gir_CFLAGS = $(AM_CPPFLAGS)
+ZakAuthe_1_0_gir_LIBS = libzakauthe.la
+ZakAuthe_1_0_gir_FILES = $(introspection_sources)
+INTROSPECTION_GIRS += ZakAuthe-1.0.gir
+
+girdir = $(datadir)/gir-1.0
+gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibdir = $(libdir)/girepository-1.0
+typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+CLEANFILES += $(gir_DATA) $(typelib_DATA)
+endif
ZakAuthe
*zak_authe_new ()
{
- return ZAK_AUTHE (g_object_new (zak_authe_get_type (), NULL));
+ ZakAuthe *zakauthe;
+
+ zakauthe = ZAK_AUTHE (g_object_new (zak_authe_get_type (), NULL));
+
+ return zakauthe;
}
/*
* zak_authe_set_config:
- * @aute: an #ZakAuthe object.
+ * @zakauthe: an #ZakAuthe object.
* @parameters: a #GSList of config parameters.
*
*/
gboolean
-zak_authe_set_config (ZakAuthe *aute, GSList *parameters)
+zak_authe_set_config (ZakAuthe *zakauthe, GSList *parameters)
{
gboolean ret;
const GList *lst_plugins;
- ZakAuthePrivate *priv = ZAK_AUTHE_GET_PRIVATE (aute);
+ ZakAuthePrivate *priv = ZAK_AUTHE_GET_PRIVATE (zakauthe);
g_return_val_if_fail (parameters != NULL && parameters->data != NULL, FALSE);
if (ZAK_IS_CONFI ((ZakConfi *)g_slist_nth_data (priv->parameters, 1)))
{
priv->confi = ZAK_CONFI ((ZakConfi *)g_slist_nth_data (priv->parameters, 1));
- module_name = zak_authe_get_pluggable_from_confi (aute);
+ module_name = zak_authe_get_pluggable_from_confi (zakauthe);
}
}
#endif
/**
* zak_authe_authe:
- * @aute:
+ * @zakauthe:
*
* Returns: the user name if authentication is successfull;
* empty string ("") if it is clicked the "Cancel" button; #NULL on error.
*/
gchar
-*zak_authe_authe (ZakAuthe *aute)
+*zak_authe_authe (ZakAuthe *zakauthe)
{
gchar *ret;
- ZakAuthePrivate *priv = ZAK_AUTHE_GET_PRIVATE (aute);
+ ZakAuthePrivate *priv = ZAK_AUTHE_GET_PRIVATE (zakauthe);
g_return_val_if_fail (priv->pluggable != NULL, NULL);
/**
* zak_authe_get_password:
- * @aute:
+ * @zakauthe:
* @password:
*
* Returns: il nome utente se l'autenticazione va a buon fine;
* Nel parametro @password ritorna la password inserita.
*/
gchar
-*zak_authe_get_password (ZakAuthe *aute, gchar **password)
+*zak_authe_get_password (ZakAuthe *zakauthe, gchar **password)
{
gchar *ret;
- ZakAuthePrivate *priv = ZAK_AUTHE_GET_PRIVATE (aute);
+ ZakAuthePrivate *priv = ZAK_AUTHE_GET_PRIVATE (zakauthe);
g_return_val_if_fail (priv->pluggable != NULL, NULL);
/**
* zak_authe_authe_nogui:
- * @zakaute:
+ * @zakauthe:
* @username:
* @password:
* @new_password:
/**
* zak_authe_get_management_gui:
- * @aute:
+ * @zakauthe:
*
*/
GtkWidget
-*zak_authe_get_management_gui (ZakAuthe *aute)
+*zak_authe_get_management_gui (ZakAuthe *zakauthe)
{
GtkWidget *ret;
- ZakAuthePrivate *priv = ZAK_AUTHE_GET_PRIVATE (aute);
+ ZakAuthePrivate *priv = ZAK_AUTHE_GET_PRIVATE (zakauthe);
g_return_val_if_fail (priv->pluggable != NULL, NULL);