summaryrefslogtreecommitdiff
path: root/simpleperf/IOEventLoop.h
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2021-01-11 17:35:57 -0800
committerYabin Cui <yabinc@google.com>2021-01-11 17:50:30 -0800
commitfaa7b928abeb04bd46c7f66213a79caf450016de (patch)
treec3c5004e7b95017eee1daf6c9e7c4583736c1610 /simpleperf/IOEventLoop.h
parentc1cc718bcc6965536d5c6be8bc9e65f6690ecacc (diff)
downloadextras-faa7b928abeb04bd46c7f66213a79caf450016de.tar.gz
simpleperf: move all source files into simpleperf namespace
Bug: none Test: run simpleperf_unit_test Change-Id: I348028ee5bea90ce908bc240fc5efc22c4cd540f
Diffstat (limited to 'simpleperf/IOEventLoop.h')
-rw-r--r--simpleperf/IOEventLoop.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/simpleperf/IOEventLoop.h b/simpleperf/IOEventLoop.h
index 6f78d789..f0192969 100644
--- a/simpleperf/IOEventLoop.h
+++ b/simpleperf/IOEventLoop.h
@@ -24,9 +24,12 @@
#include <memory>
#include <vector>
+struct event_base;
+
+namespace simpleperf {
+
struct IOEvent;
typedef IOEvent* IOEventRef;
-struct event_base;
// IOEventLoop is a class wrapper of libevent, it monitors events happened,
// and calls the corresponding callbacks. Possible events are: file ready to
@@ -87,4 +90,6 @@ class IOEventLoop {
bool in_loop_;
};
+} // namespace simpleperf
+
#endif // SIMPLE_PERF_IOEVENT_LOOP_H_