From 6d148fa0d439fb87d7b85b037d537e422329096e Mon Sep 17 00:00:00 2001
From: Andrea Zagli <azagli@libero.it>
Date: Mon, 27 Jul 2015 18:08:44 +0200
Subject: [PATCH] Added ZakCgiTag::img (refs #945).

---
 src/tag.c   | 18 ++++++++++++++++++
 src/tag.h   |  3 +++
 tests/tag.c |  2 ++
 3 files changed, 23 insertions(+)

diff --git a/src/tag.c b/src/tag.c
index b8f14a9..6511658 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -136,3 +136,21 @@ gchar
 
 	return zak_cgi_tag_tag_valist (name, id, ap);
 }
+
+/**
+ * zak_cgi_tag_img:
+ * @name:
+ * @id:
+ *
+ * Returns:
+ */
+gchar
+*zak_cgi_tag_img (const gchar *id,
+				  ...)
+{
+	va_list ap;
+
+	va_start (ap, id);
+
+	return zak_cgi_tag_tag_valist ("img", id, ap);
+}
diff --git a/src/tag.h b/src/tag.h
index 1d3ba7e..5e29a3f 100644
--- a/src/tag.h
+++ b/src/tag.h
@@ -29,5 +29,8 @@ gchar *zak_cgi_tag_tag (const gchar *name,
 						const gchar *id,
 						...);
 
+gchar *zak_cgi_tag_img (const gchar *id,
+						...);
+
 
 #endif /* __ZAK_CGI_TAG_H__ */
diff --git a/tests/tag.c b/tests/tag.c
index cfaf81a..5999391 100644
--- a/tests/tag.c
+++ b/tests/tag.c
@@ -27,5 +27,7 @@ main (int argc, char *argv[])
 									  "content", "the content of the text area",
 									  NULL));
 
+	g_message ("%s", zak_cgi_tag_img ("theimage", "src", "pippo.png", NULL));
+
 	return 0;
 }
-- 
2.49.0