summaryrefslogtreecommitdiff
path: root/src/CommonAPI/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/CommonAPI/types.h')
-rw-r--r--src/CommonAPI/types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/CommonAPI/types.h b/src/CommonAPI/types.h
index ae2836e..f8663f1 100644
--- a/src/CommonAPI/types.h
+++ b/src/CommonAPI/types.h
@@ -51,6 +51,17 @@ struct Version {
uint32_t Minor;
};
+/**
+ * \brief Identifies a client sending a call to a stub.
+ *
+ * The ClientId is used to identify the caller within a stub.
+ * The ClientId is supposed to be added by the middleware and can be compared using the == operator.
+ */
+class ClientId {
+public:
+ virtual ~ClientId() { }
+ virtual bool operator==(ClientId& clientIdToCompare) = 0;
+};
} // namespace CommonAPI
#endif // COMMONAPI_TYPES_H_