Introduced type CommonAPI::ClientId to identify callers on stub side.
authorStefan Laner <laner@itestra.de>
Wed, 24 Jul 2013 08:56:52 +0000 (10:56 +0200)
committerStefan Laner <laner@itestra.de>
Wed, 24 Jul 2013 12:41:43 +0000 (14:41 +0200)
This is a prerequisite for selective broadcasts.

Change-Id: If258704035145a57723e2309d4181b6f78f1edee

src/CommonAPI/types.h

index ae2836e..f8663f1 100644 (file)
@@ -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_