summaryrefslogtreecommitdiffstats
path: root/include/binder/request_id.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/binder/request_id.h')
-rw-r--r--include/binder/request_id.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/binder/request_id.h b/include/binder/request_id.h
index c41ff3c..71a2edd 100644
--- a/include/binder/request_id.h
+++ b/include/binder/request_id.h
@@ -25,6 +25,14 @@ namespace binder {
struct RequestId : public AutoParcelable<RequestId> {
int64_t request_id;
+
+ constexpr bool operator==(const RequestId& other) const {
+ return request_id == other.request_id;
+ }
+
+ constexpr bool operator!=(const RequestId& other) const {
+ return !(*this == other);
+ }
};
IORAP_INTROSPECT_ADAPT_STRUCT(RequestId, request_id);