From: nishi Date: Sat, 27 Jan 2024 05:46:37 +0000 (+0000) Subject: breaking changes X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=de2cde9bde8701650541edabfe467f1ec6dff640;p=libw3.git breaking changes git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@110 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Example/interactive/interactive.c b/Example/interactive/interactive.c index 2c3c906..79b16ac 100644 --- a/Example/interactive/interactive.c +++ b/Example/interactive/interactive.c @@ -50,7 +50,7 @@ void access_site(const char* url) { datalen = 0; W3_Set_Method(w3, "GET"); W3_Set_Path(w3, u->path); - W3_Enable_Redirect(w3); + W3_HTTP_Enable_Redirect(w3); W3_On(w3, "status", (void*)status_handler); W3_On(w3, "header", (void*)header_handler); W3_On(w3, "data", (void*)data_handler); diff --git a/Library/HTTP.c b/Library/HTTP.c index 6849c16..494412d 100644 --- a/Library/HTTP.c +++ b/Library/HTTP.c @@ -287,4 +287,4 @@ void __W3_HTTP_Request(struct W3* w3) { if(redir != NULL) free(redir); } -void W3_Enable_Redirect(struct W3* w3) { __W3_Add_Prop(w3, "HTTP_REDIRECT", "YES"); } +void W3_HTTP_Enable_Redirect(struct W3* w3) { __W3_Add_Prop(w3, "HTTP_REDIRECT", "YES"); } diff --git a/Library/W3HTTP.h b/Library/W3HTTP.h index a915839..da34458 100644 --- a/Library/W3HTTP.h +++ b/Library/W3HTTP.h @@ -9,7 +9,7 @@ extern "C" { #include "W3Core.h" void __W3_HTTP_Request(struct W3* w3); -void W3_Enable_Redirect(struct W3* w3); +void W3_HTTP_Enable_Redirect(struct W3* w3); #ifdef __cplusplus } diff --git a/W3Version.h.p b/W3Version.h.p index 6e9df11..982fb3f 100644 --- a/W3Version.h.p +++ b/W3Version.h.p @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "1.6D" \ +#define LIBW3_VERSION "2.0" \ SUFFIX #ifdef __cplusplus