12 #ifndef ZYPP_EXTERNALDATASOURCE_H 13 #define ZYPP_EXTERNALDATASOURCE_H 22 namespace externalprogram {
56 bool send(
const char *buffer,
size_t length );
62 bool send( std::string s );
70 size_t receive(
char *buffer,
size_t length );
76 std::string receiveLine();
108 void setBlocking(
bool mode );
129 #endif // ZYPP_EXTERNALDATASOURCE_H Bidirectional stream to external data.
FILE * outputFile() const
Return the output stream.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
std::pair< ReceiveUpToResult, std::string > receiveUpto(FILE *file, char c, timeout_type timeout, bool failOnUnblockError)
constexpr std::string_view FILE("file")
FILE * inputFile() const
Return the input stream.
Easy-to use interface to the ZYPP dependency resolver.