RDKEMW-19134: Stubbing the t2 client apis #388
Open
yogeswaransky wants to merge 2 commits into
Open
Conversation
Signed-off-by: Yogeswaran K <yogeswaransky@gmail.com>
Contributor
There was a problem hiding this comment.
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.cimplementation in#if 0 ... #endif(effectively disabling it). - Added no-op stub implementations of
t2_init,t2_uninit,t2_event_s,t2_event_f, andt2_event_dthat currently always succeed. - (Within the disabled block) moved mutex/message-bus initialization into
t2_initand removed per-callinitMutex()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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.