]> saetta.ns0.it Git - libzakcgi/commitdiff
Empty class files.
authorAndrea Zagli <azagli@libero.it>
Mon, 15 Jun 2015 16:37:13 +0000 (18:37 +0200)
committerAndrea Zagli <azagli@libero.it>
Mon, 15 Jun 2015 16:37:13 +0000 (18:37 +0200)
configure.ac
src/Makefile.am
src/main.c [new file with mode: 0644]
src/main.h [new file with mode: 0644]
src/url.c [new file with mode: 0644]
src/url.h [new file with mode: 0644]
src/zakcgimain.c [deleted file]
src/zakcgimain.h [deleted file]

index 3b8d82efd3820dd6af202029a3be486345f6546f..3a2b52f9edbd57a85628a9e76763c2962758f581 100644 (file)
@@ -3,7 +3,7 @@
 
 AC_PREREQ(2.65)
 AC_INIT([libzakcgi], [0.0.1], [azagli@libero.it])
-AC_CONFIG_SRCDIR([src/zakcgimain.c])
+AC_CONFIG_SRCDIR([src/main.c])
 AC_CONFIG_HEADER([config.h])
 
 AM_INIT_AUTOMAKE(-Wall)
@@ -30,7 +30,8 @@ AC_PROG_LIBTOOL
 AC_PROG_RANLIB
 
 # Checks for libraries.
-PKG_CHECK_MODULES(ZAKCGI, [glib-2.0 >= 2.36])
+PKG_CHECK_MODULES(ZAKCGI, [glib-2.0 >= 2.36
+                           gobject-2.0 >= 2.36])
 
 AC_SUBST(ZAKCGI_CFLAGS)
 AC_SUBST(ZAKCGI_LIBS)
index e58d6fe50d94575c8b563d40ec6b6677a5eee18e..eebe153ceec81d6befa080151eb333cfa78e41d2 100644 (file)
@@ -5,11 +5,13 @@ AM_CPPFLAGS = $(ZAKCGI_CFLAGS) \
 
 lib_LTLIBRARIES = libzakcgi.la
 
-libzakcgi_la_SOURCES = zakcgimain.c
+libzakcgi_la_SOURCES = main.c \
+                       url.c
 
 libzakcgi_la_LDFLAGS = -no-undefined
 
 libzakcgi_include_HEADERS = libzakcgi.h \
-                            zakcgimain.h
+                            main.h \
+                            url.h
 
 libzakcgi_includedir = $(includedir)/libzakcgi
diff --git a/src/main.c b/src/main.c
new file mode 100644 (file)
index 0000000..dca4f0d
--- /dev/null
@@ -0,0 +1,143 @@
+/*
+ * Copyright (C) 2015 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
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
+#include "main.h"
+
+static void zak_cgi_main_class_init (ZakCgiMainClass *class);
+static void zak_cgi_main_init (ZakCgiMain *zak_cgi_main);
+
+static void zak_cgi_main_set_property (GObject *object,
+                               guint property_id,
+                               const GValue *value,
+                               GParamSpec *pspec);
+static void zak_cgi_main_get_property (GObject *object,
+                               guint property_id,
+                               GValue *value,
+                               GParamSpec *pspec);
+
+static void zak_cgi_main_dispose (GObject *gobject);
+static void zak_cgi_main_finalize (GObject *gobject);
+
+#define ZAK_CGI_MAIN_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_CGI_TYPE_MAIN, ZakCgiMainPrivate))
+
+typedef struct _ZakCgiMainPrivate ZakCgiMainPrivate;
+struct _ZakCgiMainPrivate
+       {
+       };
+
+G_DEFINE_TYPE (ZakCgiMain, zak_cgi_main, G_TYPE_OBJECT)
+
+static void
+zak_cgi_main_class_init (ZakCgiMainClass *class)
+{
+       GObjectClass *object_class = G_OBJECT_CLASS (class);
+
+       object_class->set_property = zak_cgi_main_set_property;
+       object_class->get_property = zak_cgi_main_get_property;
+       object_class->dispose = zak_cgi_main_dispose;
+       object_class->finalize = zak_cgi_main_finalize;
+
+       g_type_class_add_private (object_class, sizeof (ZakCgiMainPrivate));
+}
+
+static void
+zak_cgi_main_init (ZakCgiMain *zak_cgi_main)
+{
+       ZakCgiMainPrivate *priv = ZAK_CGI_MAIN_GET_PRIVATE (zak_cgi_main);
+
+}
+
+/**
+ * zak_cgi_main_new:
+ *
+ * Returns: the newly created #ZakCgiMain object.
+ */
+ZakCgiMain
+*zak_cgi_main_new (void)
+{
+       ZakCgiMain *zak_cgi_main;
+       ZakCgiMainPrivate *priv;
+
+       zak_cgi_main = ZAK_CGI_MAIN (g_object_new (zak_cgi_main_get_type (), NULL));
+
+       priv = ZAK_CGI_MAIN_GET_PRIVATE (zak_cgi_main);
+
+
+       return zak_cgi_main;
+}
+
+/* PRIVATE */
+static void
+zak_cgi_main_set_property (GObject *object,
+                   guint property_id,
+                   const GValue *value,
+                   GParamSpec *pspec)
+{
+       ZakCgiMain *zak_cgi_main = (ZakCgiMain *)object;
+       ZakCgiMainPrivate *priv = ZAK_CGI_MAIN_GET_PRIVATE (zak_cgi_main);
+
+       switch (property_id)
+               {
+                       default:
+                               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+                               break;
+               }
+}
+
+static void
+zak_cgi_main_get_property (GObject *object,
+                   guint property_id,
+                   GValue *value,
+                   GParamSpec *pspec)
+{
+       ZakCgiMain *zak_cgi_main = (ZakCgiMain *)object;
+       ZakCgiMainPrivate *priv = ZAK_CGI_MAIN_GET_PRIVATE (zak_cgi_main);
+
+       switch (property_id)
+               {
+                       default:
+                               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+                               break;
+               }
+}
+
+static void
+zak_cgi_main_dispose (GObject *gobject)
+{
+       ZakCgiMain *zak_cgi_main = (ZakCgiMain *)gobject;
+       ZakCgiMainPrivate *priv = ZAK_CGI_MAIN_GET_PRIVATE (zak_cgi_main);
+
+
+       GObjectClass *parent_class = g_type_class_peek_parent (G_OBJECT_GET_CLASS (gobject));
+       parent_class->dispose (gobject);
+}
+
+static void
+zak_cgi_main_finalize (GObject *gobject)
+{
+       ZakCgiMain *zak_cgi_main = (ZakCgiMain *)gobject;
+       ZakCgiMainPrivate *priv = ZAK_CGI_MAIN_GET_PRIVATE (zak_cgi_main);
+
+
+       GObjectClass *parent_class = g_type_class_peek_parent (G_OBJECT_GET_CLASS (gobject));
+       parent_class->finalize (gobject);
+}
diff --git a/src/main.h b/src/main.h
new file mode 100644 (file)
index 0000000..6672062
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2015 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
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifndef __ZAK_CGI_MAIN_H__
+#define __ZAK_CGI_MAIN_H__
+
+
+#include <glib-object.h>
+
+
+G_BEGIN_DECLS
+
+
+#define ZAK_CGI_TYPE_MAIN                 (zak_cgi_main_get_type ())
+#define ZAK_CGI_MAIN(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_CGI_TYPE_MAIN, ZakCgiMain))
+#define ZAK_CGI_MAIN_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), ZAK_CGI_TYPE_MAIN, ZakCgiMainClass))
+#define ZAK_CGI_IS_MAIN(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZAK_CGI_TYPE_MAIN))
+#define ZAK_CGI_IS_MAIN_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), ZAK_CGI_TYPE_MAIN))
+#define ZAK_CGI_MAIN_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), ZAK_CGI_TYPE_MAIN, ZakCgiMainClass))
+
+typedef struct _ZakCgiMain ZakCgiMain;
+typedef struct _ZakCgiMainClass ZakCgiMainClass;
+
+struct _ZakCgiMain
+       {
+               GObject parent_instance;
+       };
+
+struct _ZakCgiMainClass
+       {
+               GObjectClass parent_class;
+       };
+
+GType zak_cgi_main_get_type (void);
+
+
+ZakCgiMain *zak_cgi_main_new (void);
+
+
+G_END_DECLS
+
+
+#endif /* __ZAK_CGI_MAIN_H__ */
diff --git a/src/url.c b/src/url.c
new file mode 100644 (file)
index 0000000..0a871c5
--- /dev/null
+++ b/src/url.c
@@ -0,0 +1,143 @@
+/*
+ * Copyright (C) 2015 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
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifdef HAVE_CONFIG_H
+       #include <config.h>
+#endif
+
+#include "url.h"
+
+static void zak_cgi_url_class_init (ZakCgiUrlClass *class);
+static void zak_cgi_url_init (ZakCgiUrl *zak_cgi_url);
+
+static void zak_cgi_url_set_property (GObject *object,
+                               guint property_id,
+                               const GValue *value,
+                               GParamSpec *pspec);
+static void zak_cgi_url_get_property (GObject *object,
+                               guint property_id,
+                               GValue *value,
+                               GParamSpec *pspec);
+
+static void zak_cgi_url_dispose (GObject *gobject);
+static void zak_cgi_url_finalize (GObject *gobject);
+
+#define ZAK_CGI_URL_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ZAK_CGI_TYPE_URL, ZakCgiUrlPrivate))
+
+typedef struct _ZakCgiUrlPrivate ZakCgiUrlPrivate;
+struct _ZakCgiUrlPrivate
+       {
+       };
+
+G_DEFINE_TYPE (ZakCgiUrl, zak_cgi_url, G_TYPE_OBJECT)
+
+static void
+zak_cgi_url_class_init (ZakCgiUrlClass *class)
+{
+       GObjectClass *object_class = G_OBJECT_CLASS (class);
+
+       object_class->set_property = zak_cgi_url_set_property;
+       object_class->get_property = zak_cgi_url_get_property;
+       object_class->dispose = zak_cgi_url_dispose;
+       object_class->finalize = zak_cgi_url_finalize;
+
+       g_type_class_add_private (object_class, sizeof (ZakCgiUrlPrivate));
+}
+
+static void
+zak_cgi_url_init (ZakCgiUrl *zak_cgi_url)
+{
+       ZakCgiUrlPrivate *priv = ZAK_CGI_URL_GET_PRIVATE (zak_cgi_url);
+
+}
+
+/**
+ * zak_cgi_url_new:
+ *
+ * Returns: the newly created #ZakCgiUrl object.
+ */
+ZakCgiUrl
+*zak_cgi_url_new (void)
+{
+       ZakCgiUrl *zak_cgi_url;
+       ZakCgiUrlPrivate *priv;
+
+       zak_cgi_url = ZAK_CGI_URL (g_object_new (zak_cgi_url_get_type (), NULL));
+
+       priv = ZAK_CGI_URL_GET_PRIVATE (zak_cgi_url);
+
+
+       return zak_cgi_url;
+}
+
+/* PRIVATE */
+static void
+zak_cgi_url_set_property (GObject *object,
+                   guint property_id,
+                   const GValue *value,
+                   GParamSpec *pspec)
+{
+       ZakCgiUrl *zak_cgi_url = (ZakCgiUrl *)object;
+       ZakCgiUrlPrivate *priv = ZAK_CGI_URL_GET_PRIVATE (zak_cgi_url);
+
+       switch (property_id)
+               {
+                       default:
+                               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+                               break;
+               }
+}
+
+static void
+zak_cgi_url_get_property (GObject *object,
+                   guint property_id,
+                   GValue *value,
+                   GParamSpec *pspec)
+{
+       ZakCgiUrl *zak_cgi_url = (ZakCgiUrl *)object;
+       ZakCgiUrlPrivate *priv = ZAK_CGI_URL_GET_PRIVATE (zak_cgi_url);
+
+       switch (property_id)
+               {
+                       default:
+                               G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
+                               break;
+               }
+}
+
+static void
+zak_cgi_url_dispose (GObject *gobject)
+{
+       ZakCgiUrl *zak_cgi_url = (ZakCgiUrl *)gobject;
+       ZakCgiUrlPrivate *priv = ZAK_CGI_URL_GET_PRIVATE (zak_cgi_url);
+
+
+       GObjectClass *parent_class = g_type_class_peek_parent (G_OBJECT_GET_CLASS (gobject));
+       parent_class->dispose (gobject);
+}
+
+static void
+zak_cgi_url_finalize (GObject *gobject)
+{
+       ZakCgiUrl *zak_cgi_url = (ZakCgiUrl *)gobject;
+       ZakCgiUrlPrivate *priv = ZAK_CGI_URL_GET_PRIVATE (zak_cgi_url);
+
+
+       GObjectClass *parent_class = g_type_class_peek_parent (G_OBJECT_GET_CLASS (gobject));
+       parent_class->finalize (gobject);
+}
diff --git a/src/url.h b/src/url.h
new file mode 100644 (file)
index 0000000..01dfb61
--- /dev/null
+++ b/src/url.h
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2015 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
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifndef __ZAK_CGI_URL_H__
+#define __ZAK_CGI_URL_H__
+
+
+#include <glib-object.h>
+
+
+G_BEGIN_DECLS
+
+
+#define ZAK_CGI_TYPE_URL                 (zak_cgi_url_get_type ())
+#define ZAK_CGI_URL(obj)                 (G_TYPE_CHECK_INSTANCE_CAST ((obj), ZAK_CGI_TYPE_URL, ZakCgiUrl))
+#define ZAK_CGI_URL_CLASS(klass)         (G_TYPE_CHECK_CLASS_CAST ((klass), ZAK_CGI_TYPE_URL, ZakCgiUrlClass))
+#define ZAK_CGI_IS_URL(obj)              (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ZAK_CGI_TYPE_URL))
+#define ZAK_CGI_IS_URL_CLASS(klass)      (G_TYPE_CHECK_CLASS_TYPE ((klass), ZAK_CGI_TYPE_URL))
+#define ZAK_CGI_URL_GET_CLASS(obj)       (G_TYPE_INSTANCE_GET_CLASS ((obj), ZAK_CGI_TYPE_URL, ZakCgiUrlClass))
+
+typedef struct _ZakCgiUrl ZakCgiUrl;
+typedef struct _ZakCgiUrlClass ZakCgiUrlClass;
+
+struct _ZakCgiUrl
+       {
+               GObject parent_instance;
+       };
+
+struct _ZakCgiUrlClass
+       {
+               GObjectClass parent_class;
+       };
+
+GType zak_cgi_url_get_type (void);
+
+
+ZakCgiUrl *zak_cgi_url_new (void);
+
+
+G_END_DECLS
+
+
+#endif /* __ZAK_CGI_URL_H__ */
diff --git a/src/zakcgimain.c b/src/zakcgimain.c
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/src/zakcgimain.h b/src/zakcgimain.h
deleted file mode 100644 (file)
index e69de29..0000000