From e5e0f0050f4c16dd6d4089e40e20d932f874dfd1 Mon Sep 17 00:00:00 2001 From: Adrian Muzyka Date: Wed, 18 Sep 2024 09:59:09 +0200 Subject: [PATCH] RDK-51273: Add IAnalytics interface --- interfaces/IAnalytics.h | 27 +++++++++++++++++++++++++++ interfaces/Ids.h | 4 +++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 interfaces/IAnalytics.h diff --git a/interfaces/IAnalytics.h b/interfaces/IAnalytics.h new file mode 100644 index 00000000..f4f489fe --- /dev/null +++ b/interfaces/IAnalytics.h @@ -0,0 +1,27 @@ +#pragma once + +#include "Module.h" + +// @stubgen:include + +namespace WPEFramework { +namespace Exchange { + + struct EXTERNAL IAnalytics : virtual public Core::IUnknown { + enum { ID = ID_ANALYTICS }; + + virtual ~IAnalytics() override = default; + + virtual uint32_t SendEvent(const string& eventName /* @in */, + const string& eventVersion /* @in */, + const string& eventSource /* @in */, + const string& eventSourceVersion /* @in */, + RPC::IStringIterator* const& cetList /* @in */, + const uint64_t& epochTimestamp /* @in */, + const uint64_t& uptimeTimestamp /* @in */, + const string& eventPayload /* @in */ ) = 0; + virtual uint32_t SetSessionId(const string& id /* @in */) = 0; + virtual uint32_t SetTimeReady() = 0; + }; +} +} diff --git a/interfaces/Ids.h b/interfaces/Ids.h index e132d4fa..5679ae18 100644 --- a/interfaces/Ids.h +++ b/interfaces/Ids.h @@ -372,7 +372,9 @@ namespace Exchange { ID_TESTAUTOMATIONMEMORY = RPC::IDS::ID_EXTERNAL_INTERFACE_OFFSET + 0x4F0, ID_TESTAUTOMATIONCOMRPC = ID_TESTAUTOMATIONMEMORY + 1, - ID_TESTAUTOMATIONCOMRPCINTERNAL = ID_TESTAUTOMATIONMEMORY + 2 + ID_TESTAUTOMATIONCOMRPCINTERNAL = ID_TESTAUTOMATIONMEMORY + 2, + + ID_ANALYTICS = RPC::IDS::ID_EXTERNAL_INTERFACE_OFFSET + 0x500 }; }