X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Fplugins%2Flitehtml_viewer%2Fhttp.h;h=d533dc59d172f18c42ffb21bf0031630812403e5;hp=4c4b03f725171387d94003bc274b3e0204bcc4c3;hb=HEAD;hpb=0a5c4155c189513caba6e2d79b1bf3b0643f169c diff --git a/src/plugins/litehtml_viewer/http.h b/src/plugins/litehtml_viewer/http.h index 4c4b03f72..89e06e643 100644 --- a/src/plugins/litehtml_viewer/http.h +++ b/src/plugins/litehtml_viewer/http.h @@ -1,3 +1,20 @@ +/* + * Claws Mail -- A GTK based, lightweight, and fast e-mail client + * Copyright(C) 2019 the Claws Mail Team + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * This program 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 General Public License for more details. + * You should have received a copy of the GNU General Public License + * along with this program; if not, write tothe Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + #include #include #include @@ -11,8 +28,7 @@ class http { CURL* curl; - static gchar* response_data; - static size_t response_size; + GInputStream* stream; public: http(); @@ -21,8 +37,7 @@ public: GInputStream *load_url(const gchar *url, GError **error); private: - static size_t curl_write_data(char* ptr, size_t size, size_t nmemb, void* data); - static void destroy_giostream(gpointer data); + void destroy_giostream(); };