/*
- * Copyright (C) 2017 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2017-2020 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
static void solipa_zak_form_element_validator_codfisc_finalize (GObject *gobject);
static gboolean solipa_zak_form_element_validator_codfisc_xml_parsing (ZakFormElementValidator *validator, xmlNode *xnode);
-static gboolean solipa_zak_form_element_validator_codfisc_validate (ZakFormElementValidator *validator_codfisc, const gchar *value);
+static gboolean solipa_zak_form_element_validator_codfisc_validate (ZakFormElementValidator *validator_codfisc, GValue *value);
struct _SolipaZakFormElementValidatorCodfisc
{
static gboolean
solipa_zak_form_element_validator_codfisc_validate (ZakFormElementValidator *validator,
- const gchar *value)
+ GValue *value)
{
SolipaZakFormElementValidatorCodfiscPrivate *priv = SOLIPA_ZAK_FORM_ELEMENT_VALIDATOR_CODFISC_GET_PRIVATE (validator);
g_return_val_if_fail (value != NULL, FALSE);
+ g_return_val_if_fail (G_VALUE_HOLDS_STRING (value), FALSE);
- return solipa_chk_codice_fiscale (value, priv->empty_good);
+ return solipa_chk_codice_fiscale (g_value_get_string (value), priv->empty_good);
}
/*
- * Copyright (C) 2017 Andrea Zagli <azagli@libero.it>
+ * Copyright (C) 2017-2020 Andrea Zagli <azagli@libero.it>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
static void solipa_zak_form_element_validator_piva_finalize (GObject *gobject);
static gboolean solipa_zak_form_element_validator_piva_xml_parsing (ZakFormElementValidator *validator, xmlNode *xnode);
-static gboolean solipa_zak_form_element_validator_piva_validate (ZakFormElementValidator *validator_piva, const gchar *value);
+static gboolean solipa_zak_form_element_validator_piva_validate (ZakFormElementValidator *validator_piva, GValue *value);
struct _SolipaZakFormElementValidatorPiva
{
static gboolean
solipa_zak_form_element_validator_piva_validate (ZakFormElementValidator *validator,
- const gchar *value)
+ GValue *value)
{
SolipaZakFormElementValidatorPivaPrivate *priv = SOLIPA_ZAK_FORM_ELEMENT_VALIDATOR_PIVA_GET_PRIVATE (validator);
g_return_val_if_fail (value != NULL, FALSE);
+ g_return_val_if_fail (G_VALUE_HOLDS_STRING (value), FALSE);
- return solipa_chk_partita_iva (value, priv->empty_good);
+ return solipa_chk_partita_iva (g_value_get_string (value), priv->empty_good);
}