From ef00bd7af5b2bc0625df58482eacb4c2873c3647 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 26 Apr 2016 12:26:12 +0200 Subject: convert EDSP to be based on FileFd instead of FILE* I doubt there is any non-src:apt usage of these interfaces. --- apt-pkg/contrib/fileutl.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apt-pkg/contrib') diff --git a/apt-pkg/contrib/fileutl.h b/apt-pkg/contrib/fileutl.h index f33f7804b..13e9c610f 100644 --- a/apt-pkg/contrib/fileutl.h +++ b/apt-pkg/contrib/fileutl.h @@ -23,6 +23,9 @@ #include #include +#ifdef APT_PKG_EXPOSE_STRING_VIEW +#include +#endif #include #include @@ -89,6 +92,9 @@ class FileFd char* ReadLine(char *To, unsigned long long const Size); bool Flush(); bool Write(const void *From,unsigned long long Size); +#ifdef APT_PKG_EXPOSE_STRING_VIEW + APT_HIDDEN bool Write(APT::StringView From) { return Write(From.data(), From.size()); } +#endif bool static Write(int Fd, const void *From, unsigned long long Size); bool Seek(unsigned long long To); bool Skip(unsigned long long To); -- cgit v1.2.3