Skip to content

RDKEMW-19134: Stubbing the t2 client apis #388

Open
yogeswaransky wants to merge 2 commits into
support/1.9from
topic/RDKEMW-19134
Open

RDKEMW-19134: Stubbing the t2 client apis #388
yogeswaransky wants to merge 2 commits into
support/1.9from
topic/RDKEMW-19134

Conversation

@yogeswaransky

Copy link
Copy Markdown
Contributor

No description provided.

@yogeswaransky yogeswaransky requested a review from a team as a code owner June 26, 2026 12:48
Copilot AI review requested due to automatic review settings June 26, 2026 12:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR stubs out the Telemetry 2.0 client-facing bus-message sender APIs by compiling out the existing implementation and replacing it with no-op t2_* functions.

Changes:

  • Wrapped the existing telemetry_busmessage_sender.c implementation in #if 0 ... #endif (effectively disabling it).
  • Added no-op stub implementations of t2_init, t2_uninit, t2_event_s, t2_event_f, and t2_event_d that currently always succeed.
  • (Within the disabled block) moved mutex/message-bus initialization into t2_init and removed per-call initMutex() calls from event senders.

#include "t2log_wrapper.h"
#include "telemetry_busmessage_internal.h"

#if 0
Comment on lines +932 to +939
void t2_init(char *component)
{
(void)component;
}

void t2_uninit(void)
{
}
Comment on lines +941 to +946
T2ERROR t2_event_s(const char* marker, const char* value)
{
(void)marker;
(void)value;
return T2ERROR_SUCCESS;
}
Comment on lines +948 to +953
T2ERROR t2_event_f(const char* marker, double value)
{
(void)marker;
(void)value;
return T2ERROR_SUCCESS;
}
Comment on lines +955 to +960
T2ERROR t2_event_d(const char* marker, int value)
{
(void)marker;
(void)value;
return T2ERROR_SUCCESS;
} No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants