Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
curl.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2021, 2023 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __UTILS_CURL_H__
11#define __UTILS_CURL_H__
12
13#include <stdbool.h>
14
15#include <gtk/gtk.h>
16
31char *
32z_curl_get_page_contents (const char * url, int timeout, GError ** error);
33
40char *
42
55int
57 const char * url,
58 const char * data,
59 int timeout,
60 GError ** error,
61 ...) G_GNUC_NULL_TERMINATED;
62
63char *
64z_curl_get_page_contents_finish (GAsyncResult * res, GError ** error);
65
66void
67z_curl_get_page_contents_async (
68 const char * url,
69 int timeout_sec,
70 GAsyncReadyCallback callback,
71 gpointer callback_data);
72
77#endif
char * z_curl_get_page_contents_default(const char *url)
Returns the contents of the page in a newly allocated string.
char * z_curl_get_page_contents(const char *url, int timeout, GError **error)
Returns the contents of the page in a newly allocated string.
int z_curl_post_json_no_auth(const char *url, const char *data, int timeout, GError **error,...) G_GNUC_NULL_TERMINATED
Posts the given JSON to the URL without any authentication.