From: Andrea Zagli Date: Sun, 9 Aug 2015 09:13:51 +0000 (+0200) Subject: Some functions declared as deprecated. X-Git-Tag: v0.1.0~19^2 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=23d9243f629f3d29232998058b7180f32aa51292;p=libzakcgi Some functions declared as deprecated. --- diff --git a/src/main.c b/src/main.c index 3bc5bc7..0065548 100644 --- a/src/main.c +++ b/src/main.c @@ -1057,6 +1057,7 @@ static GHashTable * * Returns: */ +G_DEPRECATED_FOR (zak_cgi_main_get_stdin_field) GHashTable *zak_cgi_main_parse_stdin (const gchar *buf, const gchar *boundary) { @@ -1110,6 +1111,12 @@ zak_cgi_main_stdin_foreach (ZakCgiMain *zakcgimain, GHFunc func, gpointer user_d g_hash_table_foreach (ht, func, user_data); } +/** + * zak_cgi_main_redirect: + * @zakcgimain: + * @url: + * + */ void zak_cgi_main_redirect (ZakCgiMain *zakcgimain, const gchar *url) { diff --git a/src/main.h b/src/main.h index 10e6b3b..e24b71e 100644 --- a/src/main.h +++ b/src/main.h @@ -56,14 +56,18 @@ ZakCgiMain *zak_cgi_main_new (void); void zak_cgi_main_out (const gchar *header, const gchar *body); +G_DEPRECATED_FOR (zak_cgi_main_get_env_field) GHashTable *zak_cgi_main_get_env (ZakCgiMain *zakcgimain); GValue *zak_cgi_main_get_env_field (ZakCgiMain *zakcgimain, const gchar *field); void zak_cgi_main_env_foreach (ZakCgiMain *zakcgimain, GHFunc func, gpointer user_data); +G_DEPRECATED_FOR (zak_cgi_main_env_foreach) gchar *zak_cgi_main_dump_env (ZakCgiMain *zakcgimain); +G_DEPRECATED_FOR (zak_cgi_main_get_cookie) GHashTable *zak_cgi_main_get_cookies (ZakCgiMain *zakcgimain); GValue *zak_cgi_main_get_cookie (ZakCgiMain *zakcgimain, const gchar *cookie); void zak_cgi_main_cookies_foreach (ZakCgiMain *zakcgimain, GHFunc func, gpointer user_data); +G_DEPRECATED_FOR (zak_cgi_main_cookies_foreach) gchar *zak_cgi_main_dump_cookies (ZakCgiMain *zakcgimain); gchar *zak_cgi_main_set_cookie (const gchar *name, @@ -74,6 +78,7 @@ gchar *zak_cgi_main_set_cookie (const gchar *name, gboolean secure, gboolean http_only); +G_DEPRECATED_FOR (zak_cgi_main_get_parameter) GHashTable *zak_cgi_main_get_parameters (ZakCgiMain *zakcgimain, const gchar *query_string); gchar *zak_cgi_main_get_parameter (ZakCgiMain *zakcgimain, const gchar *param); void zak_cgi_main_parameters_foreach (ZakCgiMain *zakcgimain, GHFunc func, gpointer user_data); @@ -95,6 +100,7 @@ GType zak_cgi_file_get_type (); gchar *zak_cgi_main_get_stdin (ZakCgiMain *zakcgimain); +G_DEPRECATED_FOR (zak_cgi_main_get_stdin_field) GHashTable *zak_cgi_main_parse_stdin (const gchar *buf, const gchar *boundary); GValue *zak_cgi_main_get_stdin_field (ZakCgiMain *zakcgimain, const gchar *field); void zak_cgi_main_stdin_foreach (ZakCgiMain *zakcgimain, GHFunc func, gpointer user_data); diff --git a/tests/env.c b/tests/env.c index 6c726c7..77552bb 100644 --- a/tests/env.c +++ b/tests/env.c @@ -133,6 +133,7 @@ main (int argc, char *argv[]) g_string_append_printf (str, "\n"); env = zak_cgi_main_get_stdin (zakcgimain); + zak_cgi_main_parse_stdin (env, NULL); /*syslog (LOG_MAKEPRI(LOG_SYSLOG, LOG_DEBUG), "stdin: %s", env);*/ if (env != NULL) {