aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/src/IProfilingConnection.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'profiling/client/src/IProfilingConnection.hpp')
-rw-r--r--profiling/client/src/IProfilingConnection.hpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/profiling/client/src/IProfilingConnection.hpp b/profiling/client/src/IProfilingConnection.hpp
new file mode 100644
index 0000000000..9a25854b7f
--- /dev/null
+++ b/profiling/client/src/IProfilingConnection.hpp
@@ -0,0 +1,36 @@
+//
+// Copyright © 2017 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include <client/include/ILocalPacketHandler.hpp>
+
+#include <common/include/Packet.hpp>
+
+#include <cstdint>
+
+namespace arm
+{
+
+namespace pipe
+{
+
+class IProfilingConnection
+{
+public:
+ virtual ~IProfilingConnection() {}
+
+ virtual bool IsOpen() const = 0;
+
+ virtual void Close() = 0;
+
+ virtual bool WritePacket(const unsigned char* buffer, uint32_t length) = 0;
+
+ virtual arm::pipe::Packet ReadPacket(uint32_t timeout) = 0;
+};
+
+} // namespace pipe
+
+} // namespace arm