mastodont-c/include/mastodont_fetch.h
me@ow.nekobit.net 940138f370 Fetch functions, cleanup code
FossilOrigin-Name: 174e1794cad7f4a236ca0728d57ae821fe27d29bc5ef04e3435af51048345a26
2022-01-21 03:45:22 +00:00

30 lines
1 KiB
C

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser 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 Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include <cjson/cJSON.h>
#include <mastodont_types.h>
struct mastodont_fetch_results
{
char* response;
size_t size;
};
void mastodont_fetch_results_cleanup(struct mastodont_fetch_results* res);
int mastodont_fetch_curl(mastodont_t* mstdnt,
char* url,
struct mastodont_fetch_results* results);
/*cJSON* mastodont_call_json();*/