From a73d1b2b01da69e0d55d7afd6900b33f86c3ad1e Mon Sep 17 00:00:00 2001 From: Gurchetan Singh Date: Fri, 23 Aug 2024 16:06:57 -0700 Subject: [PATCH] gfxstream: add processPipeInit and connect to IOStream This adds processPipeInit() and connect() functions to the IOStream base class. This will allow for better abstraction of the pipe streams. Reviewed-by: Aaron Ruby Acked-by: Yonggang Luo Acked-by: Adam Jackson Part-of: --- .../guest/iostream/include/gfxstream/guest/IOStream.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gfxstream/guest/iostream/include/gfxstream/guest/IOStream.h b/src/gfxstream/guest/iostream/include/gfxstream/guest/IOStream.h index a23f90dfa9e..4778ead9c02 100644 --- a/src/gfxstream/guest/iostream/include/gfxstream/guest/IOStream.h +++ b/src/gfxstream/guest/iostream/include/gfxstream/guest/IOStream.h @@ -50,6 +50,9 @@ public: return m_bufsize < len ? len : m_bufsize; } + virtual int connect(const char* serviceName = nullptr) { return 0; } + virtual uint64_t processPipeInit() { return 0; } + virtual void *allocBuffer(size_t minSize) = 0; virtual int commitBuffer(size_t size) = 0; virtual const unsigned char *readFully( void *buf, size_t len) = 0;