]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/events/ChangeCommentEvent.hxx
Implement InformationManager / Comment and ChangeCommentEvent
[frida/frida.git] / src / core / events / ChangeCommentEvent.hxx
diff --git a/src/core/events/ChangeCommentEvent.hxx b/src/core/events/ChangeCommentEvent.hxx
new file mode 100644 (file)
index 0000000..de8d5c3
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef INCLUDE__ChangeCommentEvent_hxx_
+#define INCLUDE__ChangeCommentEvent_hxx_
+
+#include <string>
+
+class Comment;
+class Function;
+
+class ChangeCommentEvent {
+public:
+       ChangeCommentEvent(uint64_t address, Function* function, Comment* comment)
+               : address(address), function(function), comment(comment) {}
+       ChangeCommentEvent(uint64_t address, Comment* comment)
+               : address(address), function(NULL), comment(comment) {}
+
+       uint64_t address;
+       Function* function;
+       Comment* comment;
+};
+
+#endif /* INCLUDE__ChangeCommentEvent_hxx_ */