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 <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
Gurchetan Singh
2024-08-23 16:06:57 -07:00
committed by Marge Bot
parent b1882801b6
commit a73d1b2b01

View File

@@ -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;