1 //===-- ConnectionSharedMemory.h --------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_ConnectionSharedMemory_h_
11 #define liblldb_ConnectionSharedMemory_h_
17 // Other libraries and framework includes
19 #include "lldb/Core/Connection.h"
20 #include "lldb/Core/DataBufferMemoryMap.h"
22 namespace lldb_private {
24 class ConnectionSharedMemory :
29 ConnectionSharedMemory ();
32 ~ConnectionSharedMemory ();
37 virtual lldb::ConnectionStatus
38 BytesAvailable (uint32_t timeout_usec, Error *error_ptr);
40 virtual lldb::ConnectionStatus
41 Connect (const char *s, Error *error_ptr);
43 virtual lldb::ConnectionStatus
44 Disconnect (Error *error_ptr);
49 uint32_t timeout_usec,
50 lldb::ConnectionStatus &status,
54 Write (const void *src, size_t src_len, lldb::ConnectionStatus &status, Error *error_ptr);
56 lldb::ConnectionStatus
57 Open (bool create, const char *name, size_t size, Error *error_ptr);
62 int m_fd; // One buffer that contains all we need
63 DataBufferMemoryMap m_mmap;
65 DISALLOW_COPY_AND_ASSIGN (ConnectionSharedMemory);
68 } // namespace lldb_private
70 #endif // liblldb_ConnectionSharedMemory_h_