diff options
author | Stefan Laner <laner@itestra.de> | 2013-07-24 10:56:52 +0200 |
---|---|---|
committer | Stefan Laner <laner@itestra.de> | 2013-07-24 14:41:43 +0200 |
commit | 6046495ae5ca4f69661a616e1d5b1009a3bf2002 (patch) | |
tree | 965acf0d8d74bcaf47bdff193a49097e75f73c1e /src/CommonAPI | |
parent | 4accbb4a2c1bcefe15c7aa3e698c0ff79ed8fdac (diff) | |
download | genivi-common-api-runtime-6046495ae5ca4f69661a616e1d5b1009a3bf2002.tar.gz |
Introduced type CommonAPI::ClientId to identify callers on stub side.
This is a prerequisite for selective broadcasts.
Change-Id: If258704035145a57723e2309d4181b6f78f1edee
Diffstat (limited to 'src/CommonAPI')
-rw-r--r-- | src/CommonAPI/types.h | 11 |
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_ |