summaryrefslogtreecommitdiff
path: root/methods/connect.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-06-27 20:47:47 +0200
committerJulian Andres Klode <jak@debian.org>2017-06-28 15:52:38 +0200
commitb4afd84a59578965120f175b410ea325d60bcb58 (patch)
treefad26361de88d15f46509bf1a7f903c50fd8a73e /methods/connect.h
parent3cb78eef6fd8dcfa964c4ebb83db71efc8cabd64 (diff)
methods: connect: Change PkgAcqMethod to aptMethod
This will allow us to access ConfigFind() and stuff which makes it possible for us to implement TLS support. Gbp-Dch: ignore
Diffstat (limited to 'methods/connect.h')
-rw-r--r--methods/connect.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/methods/connect.h b/methods/connect.h
index bbe1bb35d..44473a07c 100644
--- a/methods/connect.h
+++ b/methods/connect.h
@@ -12,10 +12,11 @@
#include <string>
-class pkgAcqMethod;
+class aptMethod;
+
+bool Connect(std::string To, int Port, const char *Service, int DefPort,
+ int &Fd, unsigned long TimeOut, aptMethod *Owner);
-bool Connect(std::string To,int Port,const char *Service,int DefPort,
- int &Fd,unsigned long TimeOut,pkgAcqMethod *Owner);
void RotateDNS();
#endif