From: Andrea Zagli Date: Mon, 27 Jul 2015 16:08:44 +0000 (+0200) Subject: Added ZakCgiTag::img (refs #945). X-Git-Tag: v0.0.1~13 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=6d148fa0d439fb87d7b85b037d537e422329096e;p=libzakcgi Added ZakCgiTag::img (refs #945). --- 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; }