Separated PortQueue and PortMessage into separate files.
Added read methods to PortMessage git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3594 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -30,29 +30,7 @@
|
||||
#include <OS.h>
|
||||
#include <queue>
|
||||
|
||||
class PortMessage
|
||||
{
|
||||
public:
|
||||
PortMessage(const int32 &code, const void *buffer, const ssize_t &buffersize,
|
||||
const bool ©);
|
||||
PortMessage(void);
|
||||
~PortMessage(void);
|
||||
|
||||
status_t ReadFromPort(const port_id &port, const bigtime_t &timeout=B_INFINITE_TIMEOUT);
|
||||
status_t WriteToPort(const port_id &port);
|
||||
|
||||
void SetCode(const int32 &code);
|
||||
void SetBuffer(const void *buffer, const ssize_t &size, const bool ©=false);
|
||||
|
||||
int32 Code(void) { return _code; }
|
||||
void *Buffer(void) { return _buffer; }
|
||||
ssize_t BufferSize(void) { return _buffersize; }
|
||||
|
||||
private:
|
||||
int32 _code;
|
||||
void *_buffer;
|
||||
ssize_t _buffersize;
|
||||
};
|
||||
class PortMessage;
|
||||
|
||||
class PortQueue
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user