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 "gtk_wrapper.h"
14
29char *
30z_curl_get_page_contents (const char * url, int timeout, GError ** error);
31
38char *
40
53int
55 const char * url,
56 const char * data,
57 int timeout,
58 GError ** error,
59 ...) G_GNUC_NULL_TERMINATED;
60
61char *
62z_curl_get_page_contents_finish (GAsyncResult * res, GError ** error);
63
64void
65z_curl_get_page_contents_async (
66 const char * url,
67 int timeout_sec,
68 GAsyncReadyCallback callback,
69 gpointer callback_data);
70
75#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.