From 6046495ae5ca4f69661a616e1d5b1009a3bf2002 Mon Sep 17 00:00:00 2001 From: Stefan Laner Date: Wed, 24 Jul 2013 10:56:52 +0200 Subject: Introduced type CommonAPI::ClientId to identify callers on stub side. This is a prerequisite for selective broadcasts. Change-Id: If258704035145a57723e2309d4181b6f78f1edee --- src/CommonAPI/types.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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_ -- cgit v1.2.1