diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2022-04-26 22:22:46 +0200 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2024-11-22 12:40:10 +0000 |
| commit | d9601bce6e1fa61cbb3dc4d66e5492f9885eef8f (patch) | |
| tree | 0793055150f1fe7a34c2eed69d97263220bfb3cd /apt-pkg/contrib/proxy.h | |
| parent | eb1e6fc4973a844adbea0297c6425b00f64e8b7b (diff) | |
Allow AutoDetectProxy to work with more than just http(s)
It is a bit unfair for third-party methods wrapping e.g. http to not
have access to such tools, same for our old ftp and e.g. our tor even
if in practice this isn't used much even for http.
At least that is one less FIXME in the code.
Diffstat (limited to 'apt-pkg/contrib/proxy.h')
| -rw-r--r-- | apt-pkg/contrib/proxy.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/contrib/proxy.h b/apt-pkg/contrib/proxy.h index f6d70ea8b..2a4c19fc8 100644 --- a/apt-pkg/contrib/proxy.h +++ b/apt-pkg/contrib/proxy.h @@ -9,8 +9,10 @@ #ifndef PKGLIB_PROXY_H #define PKGLIB_PROXY_H +#include <apt-pkg/macros.h> + class URI; APT_PUBLIC bool AutoDetectProxy(URI &URL); - +APT_HIDDEN bool CanURIBeAccessedViaProxy(URI const &URL); #endif |
