]> saetta.ns0.it Git - zakform/libzakform/commitdiff
Removed cgi from namespace.
authorAndrea Zagli <azagli@libero.it>
Sun, 25 Oct 2015 05:52:12 +0000 (06:52 +0100)
committerAndrea Zagli <azagli@libero.it>
Sun, 25 Oct 2015 05:52:12 +0000 (06:52 +0100)
src/formelementfiltertrim.c
src/formelementfiltertrim.h
src/formelementifilter.c
src/formelementifilter.h
src/formelementivalidator.c
src/formelementivalidator.h
src/formelementvalidatornotempty.c
src/formelementvalidatornotempty.h
src/formelementvalidatorregex.c
src/formelementvalidatorregex.h

index 8c3fa6aed6fad29234655aa509f7040f31c8c011..1ee5b2983b071f392bfe48dd0296beafdc5d60e3 100644 (file)
 #include "formelementifilter.h"
 #include "formelementfiltertrim.h"
 
-static void zak_cgi_form_element_filter_trim_class_init (ZakCgiFormElementFilterTrimClass *class);
-static void zak_cgi_form_element_filter_trim_interface_init (ZakCgiFormElementIFilterInterface *iface);
-static void zak_cgi_form_element_filter_trim_init (ZakCgiFormElementFilterTrim *zak_cgi_form_element);
+static void zak_form_element_filter_trim_class_init (ZakFormElementFilterTrimClass *class);
+static void zak_form_element_filter_trim_interface_init (ZakFormElementIFilterInterface *iface);
+static void zak_form_element_filter_trim_init (ZakFormElementFilterTrim *zak_form_element);
 
-static void zak_cgi_form_element_filter_trim_set_property (GObject *object,
+static void zak_form_element_filter_trim_set_property (GObject *object,
                                guint property_id,
                                const GValue *value,
                                GParamSpec *pspec);
-static void zak_cgi_form_element_filter_trim_get_property (GObject *object,
+static void zak_form_element_filter_trim_get_property (GObject *object,
                                guint property_id,
                                GValue *value,
                                GParamSpec *pspec);
 
-static void zak_cgi_form_element_filter_trim_dispose (GObject *gobject);
-static void zak_cgi_form_element_filter_trim_finalize (GObject *gobject);
+static void zak_form_element_filter_trim_dispose (GObject *gobject);
+static void zak_form_element_filter_trim_finalize (GObject *gobject);
 
-static GValue *zak_cgi_form_element_filter_trim_filter (ZakCgiFormElementIFilter *filter_trim, GValue *value);
+static GValue *zak_form_element_filter_trim_filter (ZakFormElementIFilter *filter_trim, GValue *value);
 
-struct _ZakCgiFormElementFilterTrim
+struct _ZakFormElementFilterTrim
 {
        GObject parent_instance;
 
        /* Other members, including private data. */
 };
 
-#define ZAK_CGI_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_CGI_TYPE_FORM_ELEMENT_FILTER_TRIM, ZakCgiFormElementFilterTrimPrivate))
+#define ZAK_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_TYPE_FORM_ELEMENT_FILTER_TRIM, ZakFormElementFilterTrimPrivate))
 
-typedef struct _ZakCgiFormElementFilterTrimPrivate ZakCgiFormElementFilterTrimPrivate;
-struct _ZakCgiFormElementFilterTrimPrivate
+typedef struct _ZakFormElementFilterTrimPrivate ZakFormElementFilterTrimPrivate;
+struct _ZakFormElementFilterTrimPrivate
        {
                gpointer nothing;
        };
 
-G_DEFINE_TYPE_WITH_CODE (ZakCgiFormElementFilterTrim, zak_cgi_form_element_filter_trim, G_TYPE_OBJECT,
-                                                G_IMPLEMENT_INTERFACE (ZAK_CGI_TYPE_FORM_ELEMENT_IFILTER,
-                                                                                               zak_cgi_form_element_filter_trim_interface_init))
+G_DEFINE_TYPE_WITH_CODE (ZakFormElementFilterTrim, zak_form_element_filter_trim, G_TYPE_OBJECT,
+                                                G_IMPLEMENT_INTERFACE (ZAK_TYPE_FORM_ELEMENT_IFILTER,
+                                                                                               zak_form_element_filter_trim_interface_init))
 
 static void
-zak_cgi_form_element_filter_trim_class_init (ZakCgiFormElementFilterTrimClass *class)
+zak_form_element_filter_trim_class_init (ZakFormElementFilterTrimClass *class)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (class);
 
-       object_class->set_property = zak_cgi_form_element_filter_trim_set_property;
-       object_class->get_property = zak_cgi_form_element_filter_trim_get_property;
-       object_class->dispose = zak_cgi_form_element_filter_trim_dispose;
-       object_class->finalize = zak_cgi_form_element_filter_trim_finalize;
+       object_class->set_property = zak_form_element_filter_trim_set_property;
+       object_class->get_property = zak_form_element_filter_trim_get_property;
+       object_class->dispose = zak_form_element_filter_trim_dispose;
+       object_class->finalize = zak_form_element_filter_trim_finalize;
 
-       g_type_class_add_private (object_class, sizeof (ZakCgiFormElementFilterTrimPrivate));
+       g_type_class_add_private (object_class, sizeof (ZakFormElementFilterTrimPrivate));
 }
 
 static void
-zak_cgi_form_element_filter_trim_interface_init (ZakCgiFormElementIFilterInterface *iface)
+zak_form_element_filter_trim_interface_init (ZakFormElementIFilterInterface *iface)
 {
-       iface->filter = zak_cgi_form_element_filter_trim_filter;
+       iface->filter = zak_form_element_filter_trim_filter;
 }
 
 static void
-zak_cgi_form_element_filter_trim_init (ZakCgiFormElementFilterTrim *zak_cgi_form_element)
+zak_form_element_filter_trim_init (ZakFormElementFilterTrim *zak_form_element)
 {
-       ZakCgiFormElementFilterTrimPrivate *priv = ZAK_CGI_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementFilterTrimPrivate *priv = ZAK_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_form_element);
 }
 
 /**
- * zak_cgi_form_element_filter_trim_new:
+ * zak_form_element_filter_trim_new:
  *
- * Returns: the newly created #ZakCgiFormElementFilterTrim object.
+ * Returns: the newly created #ZakFormElementFilterTrim object.
  */
-ZakCgiFormElementFilterTrim
-*zak_cgi_form_element_filter_trim_new ()
+ZakFormElementFilterTrim
+*zak_form_element_filter_trim_new ()
 {
-       ZakCgiFormElementFilterTrim *zak_cgi_form_element_filter_trim;
+       ZakFormElementFilterTrim *zak_form_element_filter_trim;
 
-       zak_cgi_form_element_filter_trim = ZAK_CGI_FORM_ELEMENT_FILTER_TRIM (g_object_new (zak_cgi_form_element_filter_trim_get_type (), NULL));
+       zak_form_element_filter_trim = ZAK_FORM_ELEMENT_FILTER_TRIM (g_object_new (zak_form_element_filter_trim_get_type (), NULL));
 
-       return zak_cgi_form_element_filter_trim;
+       return zak_form_element_filter_trim;
 }
 
 /* PRIVATE */
 static void
-zak_cgi_form_element_filter_trim_set_property (GObject *object,
+zak_form_element_filter_trim_set_property (GObject *object,
                    guint property_id,
                    const GValue *value,
                    GParamSpec *pspec)
 {
-       ZakCgiFormElementFilterTrim *zak_cgi_form_element = (ZakCgiFormElementFilterTrim *)object;
-       ZakCgiFormElementFilterTrimPrivate *priv = ZAK_CGI_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementFilterTrim *zak_form_element = (ZakFormElementFilterTrim *)object;
+       ZakFormElementFilterTrimPrivate *priv = ZAK_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_form_element);
 
        switch (property_id)
                {
@@ -119,13 +119,13 @@ zak_cgi_form_element_filter_trim_set_property (GObject *object,
 }
 
 static void
-zak_cgi_form_element_filter_trim_get_property (GObject *object,
+zak_form_element_filter_trim_get_property (GObject *object,
                    guint property_id,
                    GValue *value,
                    GParamSpec *pspec)
 {
-       ZakCgiFormElementFilterTrim *zak_cgi_form_element = (ZakCgiFormElementFilterTrim *)object;
-       ZakCgiFormElementFilterTrimPrivate *priv = ZAK_CGI_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementFilterTrim *zak_form_element = (ZakFormElementFilterTrim *)object;
+       ZakFormElementFilterTrimPrivate *priv = ZAK_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_form_element);
 
        switch (property_id)
                {
@@ -136,10 +136,10 @@ zak_cgi_form_element_filter_trim_get_property (GObject *object,
 }
 
 static void
-zak_cgi_form_element_filter_trim_dispose (GObject *gobject)
+zak_form_element_filter_trim_dispose (GObject *gobject)
 {
-       ZakCgiFormElementFilterTrim *zak_cgi_form_element = (ZakCgiFormElementFilterTrim *)gobject;
-       ZakCgiFormElementFilterTrimPrivate *priv = ZAK_CGI_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementFilterTrim *zak_form_element = (ZakFormElementFilterTrim *)gobject;
+       ZakFormElementFilterTrimPrivate *priv = ZAK_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_form_element);
 
 
 
@@ -148,10 +148,10 @@ zak_cgi_form_element_filter_trim_dispose (GObject *gobject)
 }
 
 static void
-zak_cgi_form_element_filter_trim_finalize (GObject *gobject)
+zak_form_element_filter_trim_finalize (GObject *gobject)
 {
-       ZakCgiFormElementFilterTrim *zak_cgi_form_element = (ZakCgiFormElementFilterTrim *)gobject;
-       ZakCgiFormElementFilterTrimPrivate *priv = ZAK_CGI_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementFilterTrim *zak_form_element = (ZakFormElementFilterTrim *)gobject;
+       ZakFormElementFilterTrimPrivate *priv = ZAK_FORM_ELEMENT_FILTER_TRIM_GET_PRIVATE (zak_form_element);
 
 
 
@@ -160,8 +160,8 @@ zak_cgi_form_element_filter_trim_finalize (GObject *gobject)
 }
 
 static GValue
-*zak_cgi_form_element_filter_trim_filter (ZakCgiFormElementIFilter *filter_trim,
-                                                                                 GValue *value)
+*zak_form_element_filter_trim_filter (ZakFormElementIFilter *filter_trim,
+                                                                         GValue *value)
 {
        GValue *ret;
        gchar *_value;
index 7b84a0da9faa663504b2d1682b3cff26f3f45f00..cc666fe321933fe4323432131bfddc20326074b7 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef __ZAK_CGI_FORM_ELEMENT_FILTER_TRIM_H__
-#define __ZAK_CGI_FORM_ELEMENT_FILTER_TRIM_H__
+#ifndef __ZAK_FORM_ELEMENT_FILTER_TRIM_H__
+#define __ZAK_FORM_ELEMENT_FILTER_TRIM_H__
 
 
 #include <glib-object.h>
 G_BEGIN_DECLS
 
 
-#define ZAK_CGI_TYPE_FORM_ELEMENT_FILTER_TRIM zak_cgi_form_element_filter_trim_get_type ()
-G_DECLARE_FINAL_TYPE (ZakCgiFormElementFilterTrim, zak_cgi_form_element_filter_trim, ZAK_CGI, FORM_ELEMENT_FILTER_TRIM, GObject)
+#define ZAK_TYPE_FORM_ELEMENT_FILTER_TRIM zak_form_element_filter_trim_get_type ()
+G_DECLARE_FINAL_TYPE (ZakFormElementFilterTrim, zak_form_element_filter_trim, ZAK_FORM, ELEMENT_FILTER_TRIM, GObject)
 
-ZakCgiFormElementFilterTrim *zak_cgi_form_element_filter_trim_new (void);
+ZakFormElementFilterTrim *zak_form_element_filter_trim_new (void);
 
 
 G_END_DECLS
 
 
-#endif /* __ZAK_CGI_FORM_ELEMENT_FILTER_TRIM_H__ */
+#endif /* __ZAK_FORM_ELEMENT_FILTER_TRIM_H__ */
index 2061084a87093118af9d820ba0cdb94307324b74..30a7259e72976cccf7f9177b6946f7d2fd69b125 100644 (file)
 
 #include "formelementifilter.h"
 
-G_DEFINE_INTERFACE (ZakCgiFormElementIFilter, zak_cgi_form_element_ifilter, G_TYPE_OBJECT);
+G_DEFINE_INTERFACE (ZakFormElementIFilter, zak_form_element_ifilter, G_TYPE_OBJECT);
 
 static void
-zak_cgi_form_element_ifilter_default_init (ZakCgiFormElementIFilterInterface *iface)
+zak_form_element_ifilter_default_init (ZakFormElementIFilterInterface *iface)
 {
     /* add properties and signals to the interface here */
 }
 
 GValue
-*zak_cgi_form_element_ifilter_filter (ZakCgiFormElementIFilter *self, GValue *value)
+*zak_form_element_ifilter_filter (ZakFormElementIFilter *self, GValue *value)
 {
-       g_return_val_if_fail (ZAK_CGI_IS_FORM_ELEMENT_IFILTER (self), NULL);
+       g_return_val_if_fail (ZAK_FORM_IS_ELEMENT_IFILTER (self), NULL);
 
-       return ZAK_CGI_FORM_ELEMENT_IFILTER_GET_IFACE (self)->filter (self, value);
+       return ZAK_FORM_ELEMENT_IFILTER_GET_IFACE (self)->filter (self, value);
 }
index fb8a09fa2ddb8a33e05172e66f3e5d9921956a80..10676bed265ec2fc07c6599a304039c9cd7a5daa 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef __ZAK_CGI_FORM_ELEMENT_IFILTER_H__
-#define __ZAK_CGI_FORM_ELEMENT_IFILTER_H__
+#ifndef __ZAK_FORM_ELEMENT_IFILTER_H__
+#define __ZAK_FORM_ELEMENT_IFILTER_H__
 
 #include <glib-object.h>
 
 G_BEGIN_DECLS
 
 
-#define ZAK_CGI_TYPE_FORM_ELEMENT_IFILTER zak_cgi_form_element_ifilter_get_type ()
-G_DECLARE_INTERFACE (ZakCgiFormElementIFilter, zak_cgi_form_element_ifilter, ZAK_CGI, FORM_ELEMENT_IFILTER, GObject)
+#define ZAK_TYPE_FORM_ELEMENT_IFILTER zak_form_element_ifilter_get_type ()
+G_DECLARE_INTERFACE (ZakFormElementIFilter, zak_form_element_ifilter, ZAK_FORM, ELEMENT_IFILTER, GObject)
 
-struct _ZakCgiFormElementIFilterInterface
+struct _ZakFormElementIFilterInterface
 {
        GTypeInterface parent_iface;
 
-       GValue *(*filter) (ZakCgiFormElementIFilter *self, GValue *value);
+       GValue *(*filter) (ZakFormElementIFilter *self, GValue *value);
 };
 
-GValue *zak_cgi_form_element_ifilter_filter (ZakCgiFormElementIFilter *self, GValue *value);
+GValue *zak_form_element_ifilter_filter (ZakFormElementIFilter *self, GValue *value);
 
 
 G_END_DECLS
 
 
-#endif /* __ZAK_CGI_FOR_ELEMENT_IFILTER_H__ */
+#endif /* __ZAK_FORM_ELEMENT_IFILTER_H__ */
index 9fb1207be91e9cfd579aeb66bb2da7a48dc1f9fb..1b8bc6c34919346cd2b9c036a3eb2dbad496c6b6 100644 (file)
 
 #include "formelementivalidator.h"
 
-G_DEFINE_INTERFACE (ZakCgiFormElementIValidator, zak_cgi_form_element_ivalidator, G_TYPE_OBJECT);
+G_DEFINE_INTERFACE (ZakFormElementIValidator, zak_form_element_ivalidator, G_TYPE_OBJECT);
 
 static void
-zak_cgi_form_element_ivalidator_default_init (ZakCgiFormElementIValidatorInterface *iface)
+zak_form_element_ivalidator_default_init (ZakFormElementIValidatorInterface *iface)
 {
     /* add properties and signals to the interface here */
 }
 
 gboolean
-zak_cgi_form_element_ivalidator_validate (ZakCgiFormElementIValidator *self, GValue *value)
+zak_form_element_ivalidator_validate (ZakFormElementIValidator *self, GValue *value)
 {
-       g_return_val_if_fail (ZAK_CGI_IS_FORM_ELEMENT_IVALIDATOR (self), FALSE);
+       g_return_val_if_fail (ZAK_FORM_IS_ELEMENT_IVALIDATOR (self), FALSE);
 
-       return ZAK_CGI_FORM_ELEMENT_IVALIDATOR_GET_IFACE (self)->validate (self, value);
+       return ZAK_FORM_ELEMENT_IVALIDATOR_GET_IFACE (self)->validate (self, value);
 }
index cbce9151467f6f0f569f36d67f2d2b5021e31e31..c0d76ec2b68df9cb5a3e530c4c1428c90bf09e34 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef __ZAK_CGI_FORM_ELEMENT_IVALIDATOR_H__
-#define __ZAK_CGI_FORM_ELEMENT_IVALIDATOR_H__
+#ifndef __ZAK_FORM_ELEMENT_IVALIDATOR_H__
+#define __ZAK_FORM_ELEMENT_IVALIDATOR_H__
 
 #include <glib-object.h>
 
 G_BEGIN_DECLS
 
 
-#define ZAK_CGI_TYPE_FORM_ELEMENT_IVALIDATOR zak_cgi_form_element_ivalidator_get_type ()
-G_DECLARE_INTERFACE (ZakCgiFormElementIValidator, zak_cgi_form_element_ivalidator, ZAK_CGI, FORM_ELEMENT_IVALIDATOR, GObject)
+#define ZAK_TYPE_FORM_ELEMENT_IVALIDATOR zak_form_element_ivalidator_get_type ()
+G_DECLARE_INTERFACE (ZakFormElementIValidator, zak_form_element_ivalidator, ZAK_FORM, ELEMENT_IVALIDATOR, GObject)
 
-struct _ZakCgiFormElementIValidatorInterface
+struct _ZakFormElementIValidatorInterface
 {
        GTypeInterface parent_iface;
 
-       gboolean (*validate) (ZakCgiFormElementIValidator *self, GValue *value);
+       gboolean (*validate) (ZakFormElementIValidator *self, GValue *value);
 };
 
-gboolean zak_cgi_form_element_ivalidator_validate (ZakCgiFormElementIValidator *self, GValue *value);
+gboolean zak_form_element_ivalidator_validate (ZakFormElementIValidator *self, GValue *value);
 
 
 G_END_DECLS
 
 
-#endif /* __ZAK_CGI_FOR_ELEMENT_IVALIDATOR_H__ */
+#endif /* __ZAK_FORM_ELEMENT_IVALIDATOR_H__ */
index c2e1a8dc2802578c6f97365cd23d6be84b85155f..37ef0e85d8b27753f1e9e9ec7a1f4e5217578a46 100644 (file)
 #include "formelementivalidator.h"
 #include "formelementvalidatornotempty.h"
 
-static void zak_cgi_form_element_validator_notempty_class_init (ZakCgiFormElementValidatorNotemptyClass *class);
-static void zak_cgi_form_element_validator_notempty_interface_init (ZakCgiFormElementIValidatorInterface *iface);
-static void zak_cgi_form_element_validator_notempty_init (ZakCgiFormElementValidatorNotempty *zak_cgi_form_element);
+static void zak_form_element_validator_notempty_class_init (ZakFormElementValidatorNotemptyClass *class);
+static void zak_form_element_validator_notempty_interface_init (ZakFormElementIValidatorInterface *iface);
+static void zak_form_element_validator_notempty_init (ZakFormElementValidatorNotempty *zak_form_element);
 
-static void zak_cgi_form_element_validator_notempty_set_property (GObject *object,
+static void zak_form_element_validator_notempty_set_property (GObject *object,
                                guint property_id,
                                const GValue *value,
                                GParamSpec *pspec);
-static void zak_cgi_form_element_validator_notempty_get_property (GObject *object,
+static void zak_form_element_validator_notempty_get_property (GObject *object,
                                guint property_id,
                                GValue *value,
                                GParamSpec *pspec);
 
-static void zak_cgi_form_element_validator_notempty_dispose (GObject *gobject);
-static void zak_cgi_form_element_validator_notempty_finalize (GObject *gobject);
+static void zak_form_element_validator_notempty_dispose (GObject *gobject);
+static void zak_form_element_validator_notempty_finalize (GObject *gobject);
 
-static gboolean zak_cgi_form_element_validator_notempty_validate (ZakCgiFormElementIValidator *validator_notempty, GValue *value);
+static gboolean zak_form_element_validator_notempty_validate (ZakFormElementIValidator *validator_notempty, GValue *value);
 
-struct _ZakCgiFormElementValidatorNotempty
+struct _ZakFormElementValidatorNotempty
 {
        GObject parent_instance;
 
        /* Other members, including private data. */
 };
 
-#define ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_CGI_TYPE_FORM_ELEMENT_VALIDATOR_NOTEMPTY, ZakCgiFormElementValidatorNotemptyPrivate))
+#define ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_TYPE_FORM_ELEMENT_VALIDATOR_NOTEMPTY, ZakFormElementValidatorNotemptyPrivate))
 
-typedef struct _ZakCgiFormElementValidatorNotemptyPrivate ZakCgiFormElementValidatorNotemptyPrivate;
-struct _ZakCgiFormElementValidatorNotemptyPrivate
+typedef struct _ZakFormElementValidatorNotemptyPrivate ZakFormElementValidatorNotemptyPrivate;
+struct _ZakFormElementValidatorNotemptyPrivate
        {
                gpointer nothing;
        };
 
-G_DEFINE_TYPE_WITH_CODE (ZakCgiFormElementValidatorNotempty, zak_cgi_form_element_validator_notempty, G_TYPE_OBJECT,
-                                                G_IMPLEMENT_INTERFACE (ZAK_CGI_TYPE_FORM_ELEMENT_IVALIDATOR,
-                                                                                               zak_cgi_form_element_validator_notempty_interface_init))
+G_DEFINE_TYPE_WITH_CODE (ZakFormElementValidatorNotempty, zak_form_element_validator_notempty, G_TYPE_OBJECT,
+                                                G_IMPLEMENT_INTERFACE (ZAK_TYPE_FORM_ELEMENT_IVALIDATOR,
+                                                                                               zak_form_element_validator_notempty_interface_init))
 
 static void
-zak_cgi_form_element_validator_notempty_class_init (ZakCgiFormElementValidatorNotemptyClass *class)
+zak_form_element_validator_notempty_class_init (ZakFormElementValidatorNotemptyClass *class)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (class);
 
-       object_class->set_property = zak_cgi_form_element_validator_notempty_set_property;
-       object_class->get_property = zak_cgi_form_element_validator_notempty_get_property;
-       object_class->dispose = zak_cgi_form_element_validator_notempty_dispose;
-       object_class->finalize = zak_cgi_form_element_validator_notempty_finalize;
+       object_class->set_property = zak_form_element_validator_notempty_set_property;
+       object_class->get_property = zak_form_element_validator_notempty_get_property;
+       object_class->dispose = zak_form_element_validator_notempty_dispose;
+       object_class->finalize = zak_form_element_validator_notempty_finalize;
 
-       g_type_class_add_private (object_class, sizeof (ZakCgiFormElementValidatorNotemptyPrivate));
+       g_type_class_add_private (object_class, sizeof (ZakFormElementValidatorNotemptyPrivate));
 }
 
 static void
-zak_cgi_form_element_validator_notempty_interface_init (ZakCgiFormElementIValidatorInterface *iface)
+zak_form_element_validator_notempty_interface_init (ZakFormElementIValidatorInterface *iface)
 {
-       iface->validate = zak_cgi_form_element_validator_notempty_validate;
+       iface->validate = zak_form_element_validator_notempty_validate;
 }
 
 static void
-zak_cgi_form_element_validator_notempty_init (ZakCgiFormElementValidatorNotempty *zak_cgi_form_element)
+zak_form_element_validator_notempty_init (ZakFormElementValidatorNotempty *zak_form_element)
 {
-       ZakCgiFormElementValidatorNotemptyPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorNotemptyPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_form_element);
 }
 
 /**
- * zak_cgi_form_element_validator_notempty_new:
+ * zak_form_element_validator_notempty_new:
  *
- * Returns: the newly created #ZakCgiFormElementValidatorNotempty object.
+ * Returns: the newly created #ZakFormElementValidatorNotempty object.
  */
-ZakCgiFormElementValidatorNotempty
-*zak_cgi_form_element_validator_notempty_new ()
+ZakFormElementValidatorNotempty
+*zak_form_element_validator_notempty_new ()
 {
-       ZakCgiFormElementValidatorNotempty *zak_cgi_form_element_validator_notempty;
+       ZakFormElementValidatorNotempty *zak_form_element_validator_notempty;
 
-       zak_cgi_form_element_validator_notempty = ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY (g_object_new (zak_cgi_form_element_validator_notempty_get_type (), NULL));
+       zak_form_element_validator_notempty = ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY (g_object_new (zak_form_element_validator_notempty_get_type (), NULL));
 
-       return zak_cgi_form_element_validator_notempty;
+       return zak_form_element_validator_notempty;
 }
 
 /* PRIVATE */
 static void
-zak_cgi_form_element_validator_notempty_set_property (GObject *object,
+zak_form_element_validator_notempty_set_property (GObject *object,
                    guint property_id,
                    const GValue *value,
                    GParamSpec *pspec)
 {
-       ZakCgiFormElementValidatorNotempty *zak_cgi_form_element = (ZakCgiFormElementValidatorNotempty *)object;
-       ZakCgiFormElementValidatorNotemptyPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorNotempty *zak_form_element = (ZakFormElementValidatorNotempty *)object;
+       ZakFormElementValidatorNotemptyPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_form_element);
 
        switch (property_id)
                {
@@ -119,13 +119,13 @@ zak_cgi_form_element_validator_notempty_set_property (GObject *object,
 }
 
 static void
-zak_cgi_form_element_validator_notempty_get_property (GObject *object,
+zak_form_element_validator_notempty_get_property (GObject *object,
                    guint property_id,
                    GValue *value,
                    GParamSpec *pspec)
 {
-       ZakCgiFormElementValidatorNotempty *zak_cgi_form_element = (ZakCgiFormElementValidatorNotempty *)object;
-       ZakCgiFormElementValidatorNotemptyPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorNotempty *zak_form_element = (ZakFormElementValidatorNotempty *)object;
+       ZakFormElementValidatorNotemptyPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_form_element);
 
        switch (property_id)
                {
@@ -136,10 +136,10 @@ zak_cgi_form_element_validator_notempty_get_property (GObject *object,
 }
 
 static void
-zak_cgi_form_element_validator_notempty_dispose (GObject *gobject)
+zak_form_element_validator_notempty_dispose (GObject *gobject)
 {
-       ZakCgiFormElementValidatorNotempty *zak_cgi_form_element = (ZakCgiFormElementValidatorNotempty *)gobject;
-       ZakCgiFormElementValidatorNotemptyPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorNotempty *zak_form_element = (ZakFormElementValidatorNotempty *)gobject;
+       ZakFormElementValidatorNotemptyPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_form_element);
 
 
 
@@ -148,10 +148,10 @@ zak_cgi_form_element_validator_notempty_dispose (GObject *gobject)
 }
 
 static void
-zak_cgi_form_element_validator_notempty_finalize (GObject *gobject)
+zak_form_element_validator_notempty_finalize (GObject *gobject)
 {
-       ZakCgiFormElementValidatorNotempty *zak_cgi_form_element = (ZakCgiFormElementValidatorNotempty *)gobject;
-       ZakCgiFormElementValidatorNotemptyPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorNotempty *zak_form_element = (ZakFormElementValidatorNotempty *)gobject;
+       ZakFormElementValidatorNotemptyPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_GET_PRIVATE (zak_form_element);
 
 
 
@@ -160,7 +160,7 @@ zak_cgi_form_element_validator_notempty_finalize (GObject *gobject)
 }
 
 static gboolean
-zak_cgi_form_element_validator_notempty_validate (ZakCgiFormElementIValidator *validator_notempty,
+zak_form_element_validator_notempty_validate (ZakFormElementIValidator *validator_notempty,
                                                                                  GValue *value)
 {
        gboolean ret;
index 3cda157ae81eb2977ffa88657c50f8118117f694..d96c40749d76d38f1180b52e0dbabbb32bfe4ab6 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef __ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY_H__
-#define __ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY_H__
+#ifndef __ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_H__
+#define __ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_H__
 
 
 #include <glib-object.h>
 G_BEGIN_DECLS
 
 
-#define ZAK_CGI_TYPE_FORM_ELEMENT_VALIDATOR_NOTEMPTY zak_cgi_form_element_validator_notempty_get_type ()
-G_DECLARE_FINAL_TYPE (ZakCgiFormElementValidatorNotempty, zak_cgi_form_element_validator_notempty, ZAK_CGI, FORM_ELEMENT_VALIDATOR_NOTEMPTY, GObject)
+#define ZAK_TYPE_FORM_ELEMENT_VALIDATOR_NOTEMPTY zak_form_element_validator_notempty_get_type ()
+G_DECLARE_FINAL_TYPE (ZakFormElementValidatorNotempty, zak_form_element_validator_notempty, ZAK_FORM, ELEMENT_VALIDATOR_NOTEMPTY, GObject)
 
-ZakCgiFormElementValidatorNotempty *zak_cgi_form_element_validator_notempty_new (void);
+ZakFormElementValidatorNotempty *zak_form_element_validator_notempty_new (void);
 
 
 G_END_DECLS
 
 
-#endif /* __ZAK_CGI_FORM_ELEMENT_VALIDATOR_NOTEMPTY_H__ */
+#endif /* __ZAK_FORM_ELEMENT_VALIDATOR_NOTEMPTY_H__ */
index 3ea9ba14accd519bb9e60d05564c8e46f983e1ca..94fd0fc7088254f4f466e5b7e0a40cb081c36a51 100644 (file)
 #include "formelementivalidator.h"
 #include "formelementvalidatorregex.h"
 
-static void zak_cgi_form_element_validator_regex_class_init (ZakCgiFormElementValidatorRegexClass *class);
-static void zak_cgi_form_element_validator_regex_interface_init (ZakCgiFormElementIValidatorInterface *iface);
-static void zak_cgi_form_element_validator_regex_init (ZakCgiFormElementValidatorRegex *zak_cgi_form_element);
+static void zak_form_element_validator_regex_class_init (ZakFormElementValidatorRegexClass *class);
+static void zak_form_element_validator_regex_interface_init (ZakFormElementIValidatorInterface *iface);
+static void zak_form_element_validator_regex_init (ZakFormElementValidatorRegex *zak_form_element);
 
-static void zak_cgi_form_element_validator_regex_set_property (GObject *object,
+static void zak_form_element_validator_regex_set_property (GObject *object,
                                guint property_id,
                                const GValue *value,
                                GParamSpec *pspec);
-static void zak_cgi_form_element_validator_regex_get_property (GObject *object,
+static void zak_form_element_validator_regex_get_property (GObject *object,
                                guint property_id,
                                GValue *value,
                                GParamSpec *pspec);
 
-static void zak_cgi_form_element_validator_regex_dispose (GObject *gobject);
-static void zak_cgi_form_element_validator_regex_finalize (GObject *gobject);
+static void zak_form_element_validator_regex_dispose (GObject *gobject);
+static void zak_form_element_validator_regex_finalize (GObject *gobject);
 
-static gboolean zak_cgi_form_element_validator_regex_validate (ZakCgiFormElementIValidator *validator_regex, GValue *value);
+static gboolean zak_form_element_validator_regex_validate (ZakFormElementIValidator *validator_regex, GValue *value);
 
-struct _ZakCgiFormElementValidatorRegex
+struct _ZakFormElementValidatorRegex
 {
        GObject parent_instance;
 
        /* Other members, including private data. */
 };
 
-#define ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_CGI_TYPE_FORM_ELEMENT_VALIDATOR_REGEX, ZakCgiFormElementValidatorRegexPrivate))
+#define ZAK_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_TYPE_FORM_ELEMENT_VALIDATOR_REGEX, ZakFormElementValidatorRegexPrivate))
 
-typedef struct _ZakCgiFormElementValidatorRegexPrivate ZakCgiFormElementValidatorRegexPrivate;
-struct _ZakCgiFormElementValidatorRegexPrivate
+typedef struct _ZakFormElementValidatorRegexPrivate ZakFormElementValidatorRegexPrivate;
+struct _ZakFormElementValidatorRegexPrivate
        {
                gchar *regex;
        };
 
-G_DEFINE_TYPE_WITH_CODE (ZakCgiFormElementValidatorRegex, zak_cgi_form_element_validator_regex, G_TYPE_OBJECT,
-                                                G_IMPLEMENT_INTERFACE (ZAK_CGI_TYPE_FORM_ELEMENT_IVALIDATOR,
-                                                                                               zak_cgi_form_element_validator_regex_interface_init))
+G_DEFINE_TYPE_WITH_CODE (ZakFormElementValidatorRegex, zak_form_element_validator_regex, G_TYPE_OBJECT,
+                                                G_IMPLEMENT_INTERFACE (ZAK_TYPE_FORM_ELEMENT_IVALIDATOR,
+                                                                                               zak_form_element_validator_regex_interface_init))
 
 static void
-zak_cgi_form_element_validator_regex_class_init (ZakCgiFormElementValidatorRegexClass *class)
+zak_form_element_validator_regex_class_init (ZakFormElementValidatorRegexClass *class)
 {
        GObjectClass *object_class = G_OBJECT_CLASS (class);
 
-       object_class->set_property = zak_cgi_form_element_validator_regex_set_property;
-       object_class->get_property = zak_cgi_form_element_validator_regex_get_property;
-       object_class->dispose = zak_cgi_form_element_validator_regex_dispose;
-       object_class->finalize = zak_cgi_form_element_validator_regex_finalize;
+       object_class->set_property = zak_form_element_validator_regex_set_property;
+       object_class->get_property = zak_form_element_validator_regex_get_property;
+       object_class->dispose = zak_form_element_validator_regex_dispose;
+       object_class->finalize = zak_form_element_validator_regex_finalize;
 
-       g_type_class_add_private (object_class, sizeof (ZakCgiFormElementValidatorRegexPrivate));
+       g_type_class_add_private (object_class, sizeof (ZakFormElementValidatorRegexPrivate));
 }
 
 static void
-zak_cgi_form_element_validator_regex_interface_init (ZakCgiFormElementIValidatorInterface *iface)
+zak_form_element_validator_regex_interface_init (ZakFormElementIValidatorInterface *iface)
 {
-       iface->validate = zak_cgi_form_element_validator_regex_validate;
+       iface->validate = zak_form_element_validator_regex_validate;
 }
 
 static void
-zak_cgi_form_element_validator_regex_init (ZakCgiFormElementValidatorRegex *zak_cgi_form_element)
+zak_form_element_validator_regex_init (ZakFormElementValidatorRegex *zak_form_element)
 {
-       ZakCgiFormElementValidatorRegexPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorRegexPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_form_element);
 
        priv->regex = NULL;
 }
 
 /**
- * zak_cgi_form_element_validator_regex_new:
+ * zak_form_element_validator_regex_new:
  * @regex:
  *
- * Returns: the newly created #ZakCgiFormElementValidatorRegex object.
+ * Returns: the newly created #ZakFormElementValidatorRegex object.
  */
-ZakCgiFormElementValidatorRegex
-*zak_cgi_form_element_validator_regex_new (const gchar *regex)
+ZakFormElementValidatorRegex
+*zak_form_element_validator_regex_new (const gchar *regex)
 {
-       ZakCgiFormElementValidatorRegex *zak_cgi_form_element_validator_regex;
+       ZakFormElementValidatorRegex *zak_form_element_validator_regex;
 
-       zak_cgi_form_element_validator_regex = ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX (g_object_new (zak_cgi_form_element_validator_regex_get_type (), NULL));
+       zak_form_element_validator_regex = ZAK_FORM_ELEMENT_VALIDATOR_REGEX (g_object_new (zak_form_element_validator_regex_get_type (), NULL));
 
-       ZakCgiFormElementValidatorRegexPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_cgi_form_element_validator_regex);
+       ZakFormElementValidatorRegexPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_form_element_validator_regex);
 
        if (regex != NULL)
                {
                        priv->regex = g_strdup (regex);
                }
 
-       return zak_cgi_form_element_validator_regex;
+       return zak_form_element_validator_regex;
 }
 
 /* PRIVATE */
 static void
-zak_cgi_form_element_validator_regex_set_property (GObject *object,
+zak_form_element_validator_regex_set_property (GObject *object,
                    guint property_id,
                    const GValue *value,
                    GParamSpec *pspec)
 {
-       ZakCgiFormElementValidatorRegex *zak_cgi_form_element = (ZakCgiFormElementValidatorRegex *)object;
-       ZakCgiFormElementValidatorRegexPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorRegex *zak_form_element = (ZakFormElementValidatorRegex *)object;
+       ZakFormElementValidatorRegexPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_form_element);
 
        switch (property_id)
                {
@@ -131,13 +131,13 @@ zak_cgi_form_element_validator_regex_set_property (GObject *object,
 }
 
 static void
-zak_cgi_form_element_validator_regex_get_property (GObject *object,
+zak_form_element_validator_regex_get_property (GObject *object,
                    guint property_id,
                    GValue *value,
                    GParamSpec *pspec)
 {
-       ZakCgiFormElementValidatorRegex *zak_cgi_form_element = (ZakCgiFormElementValidatorRegex *)object;
-       ZakCgiFormElementValidatorRegexPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorRegex *zak_form_element = (ZakFormElementValidatorRegex *)object;
+       ZakFormElementValidatorRegexPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_form_element);
 
        switch (property_id)
                {
@@ -148,10 +148,10 @@ zak_cgi_form_element_validator_regex_get_property (GObject *object,
 }
 
 static void
-zak_cgi_form_element_validator_regex_dispose (GObject *gobject)
+zak_form_element_validator_regex_dispose (GObject *gobject)
 {
-       ZakCgiFormElementValidatorRegex *zak_cgi_form_element = (ZakCgiFormElementValidatorRegex *)gobject;
-       ZakCgiFormElementValidatorRegexPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorRegex *zak_form_element = (ZakFormElementValidatorRegex *)gobject;
+       ZakFormElementValidatorRegexPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_form_element);
 
 
 
@@ -160,10 +160,10 @@ zak_cgi_form_element_validator_regex_dispose (GObject *gobject)
 }
 
 static void
-zak_cgi_form_element_validator_regex_finalize (GObject *gobject)
+zak_form_element_validator_regex_finalize (GObject *gobject)
 {
-       ZakCgiFormElementValidatorRegex *zak_cgi_form_element = (ZakCgiFormElementValidatorRegex *)gobject;
-       ZakCgiFormElementValidatorRegexPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_cgi_form_element);
+       ZakFormElementValidatorRegex *zak_form_element = (ZakFormElementValidatorRegex *)gobject;
+       ZakFormElementValidatorRegexPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (zak_form_element);
 
 
 
@@ -172,7 +172,7 @@ zak_cgi_form_element_validator_regex_finalize (GObject *gobject)
 }
 
 static gboolean
-zak_cgi_form_element_validator_regex_validate (ZakCgiFormElementIValidator *validator_regex,
+zak_form_element_validator_regex_validate (ZakFormElementIValidator *validator_regex,
                                                                                           GValue *value)
 {
        gboolean ret;
@@ -180,7 +180,7 @@ zak_cgi_form_element_validator_regex_validate (ZakCgiFormElementIValidator *vali
        GRegex *regex;
        GError *error;
 
-       ZakCgiFormElementValidatorRegexPrivate *priv = ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (validator_regex);
+       ZakFormElementValidatorRegexPrivate *priv = ZAK_FORM_ELEMENT_VALIDATOR_REGEX_GET_PRIVATE (validator_regex);
 
        if (G_VALUE_HOLDS (value, G_TYPE_STRING))
                {
index d93b05d92907d75f1c09c7963bda8bd082a18a70..2d7808f230701e615077dd7a680cbf783c5326ba 100644 (file)
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef __ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_H__
-#define __ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_H__
+#ifndef __ZAK_FORM_ELEMENT_VALIDATOR_REGEX_H__
+#define __ZAK_FORM_ELEMENT_VALIDATOR_REGEX_H__
 
 
 #include <glib-object.h>
 G_BEGIN_DECLS
 
 
-#define ZAK_CGI_TYPE_FORM_ELEMENT_VALIDATOR_REGEX zak_cgi_form_element_validator_regex_get_type ()
-G_DECLARE_FINAL_TYPE (ZakCgiFormElementValidatorRegex, zak_cgi_form_element_validator_regex, ZAK_CGI, FORM_ELEMENT_VALIDATOR_REGEX, GObject)
+#define ZAK_TYPE_FORM_ELEMENT_VALIDATOR_REGEX zak_form_element_validator_regex_get_type ()
+G_DECLARE_FINAL_TYPE (ZakFormElementValidatorRegex, zak_form_element_validator_regex, ZAK_FORM, ELEMENT_VALIDATOR_REGEX, GObject)
 
-ZakCgiFormElementValidatorRegex *zak_cgi_form_element_validator_regex_new (const gchar *regex);
+ZakFormElementValidatorRegex *zak_form_element_validator_regex_new (const gchar *regex);
 
 
 G_END_DECLS
 
 
-#endif /* __ZAK_CGI_FORM_ELEMENT_VALIDATOR_REGEX_H__ */
+#endif /* __ZAK_FORM_ELEMENT_VALIDATOR_REGEX_H__ */