-
Simon McVittie authored
To test this mechanism, it's useful to have a set of libraries that implement a predictable interface between distributions. Use a small subset of the real libcurl API. Helps: steamrt/tasks#119 Signed-off-by:
Simon McVittie <smcv@collabora.com>
Simon McVittie authoredTo test this mechanism, it's useful to have a set of libraries that implement a predictable interface between distributions. Use a small subset of the real libcurl API. Helps: steamrt/tasks#119 Signed-off-by:
Simon McVittie <smcv@collabora.com>
mock-curl.c 573 B
/*
* Copyright © 2021 Collabora Ltd.
* SPDX-License-Identifier: MIT
*
* A stand-in for a host OS copy of libcurl with the ABI used upstream.
*
* To make the behaviour of this mock library consistent with how libcurl
* will actually behave, we need to import at least one symbol from glibc;
* see ../scout/mock-curl.c for details.
*/
#include <unistd.h>
__attribute__((__visibility__("default"))) const char *curl_version (void);
const char *
curl_version (void)
{
(void) access ("4", F_OK);
return "mockup of libcurl from host OS with CURL_*_4 symbols";
}