-
Notifications
You must be signed in to change notification settings - Fork 14
RDKEMW-6718 : Add support for plugin specific error codes in entservices-apis #455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
ssitar583
wants to merge
48
commits into
develop
Choose a base branch
from
topic/RDKEMW-6718
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 11 commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
336a8a7
RDKEMW-6718 : Create entservices-errorcodes.h
ssitar583 158a61c
RDKEMW-6718:Rename entservices-errorcodes.h to entservices_errorcodes.h
ssitar583 7f9ac2e
Update IHdcpProfile.h
ssitar583 c676833
Update entservices_errorcodes.h
ssitar583 e503450
Update entservices_errorcodes.h
ssitar583 5326630
Update entservices_errorcodes.h
ssitar583 6983fed
Merge pull request #461 from rdkcentral/develop
ssitar583 ebde8d0
Update entservices_errorcodes.h
ssitar583 9530b30
Update entservices_errorcodes.h
ssitar583 8bd4a95
Merge pull request #474 from rdkcentral/develop
ssitar583 d5c3960
Update IPowerManager.h
ssitar583 a768366
Merge pull request #481 from rdkcentral/develop
ssitar583 5aa3c23
Update IPowerManager.h
ssitar583 3ec7f0b
Update entservices_errorcodes.h
ssitar583 43966f0
Update entservices_errorcodes.h
ssitar583 608ce08
Update entservices_errorcodes.h
ssitar583 8ffd7f5
Merge pull request #492 from rdkcentral/develop
ssitar583 33b6913
Update entservices_errorcodes.h
ssitar583 aeb1eff
Update IFirmwareUpdate.h
ssitar583 af58cfb
Update entservices_errorcodes.h
ssitar583 9ffb073
Update IHdcpProfile.h
ssitar583 a8bdb3f
Update IUSBDevice.h
ssitar583 cb053a5
Update entservices_errorcodes.h
ssitar583 f088b57
Update entservices_errorcodes.h
ssitar583 331ea67
Create entservices_errorcodes.cpp
ssitar583 853a71d
Update CMakeLists.txt
ssitar583 ff68cf0
Merge pull request #496 from rdkcentral/develop
ssitar583 df9ca5d
Update entservices_errorcodes.cpp
ssitar583 7d77efa
Update entservices_errorcodes.h
ssitar583 785401c
Update IUSBDevice.h
ssitar583 d920bc9
Update IFirmwareUpdate.h
ssitar583 bffa18a
Update entservices_errorcodes.h
ssitar583 8013476
Update Module.h
ssitar583 74bc006
Update IPowerManager.h
ssitar583 29b0b93
Update entservices_errorcodes.h
ssitar583 d313ec1
Update entservices_errorcodes.h
ssitar583 d422786
Update entservices_errorcodes.h
ssitar583 34d223e
Update entservices_errorcodes.h
ssitar583 de6a4cd
Update entservices_errorcodes.h
ssitar583 8d219c0
Update entservices_errorcodes.cpp
ssitar583 9139cbe
Update CMakeLists.txt
ssitar583 ae5d1f3
Update CMakeLists.txt
ssitar583 4ada220
Update CMakeLists.txt
ssitar583 8da7632
Merge pull request #499 from rdkcentral/develop
ssitar583 78c506d
Merge pull request #506 from rdkcentral/develop
ssitar583 dde8bfb
Update entservices_errorcodes.h
ssitar583 7d13579
Delete apis/entservices_errorcodes.cpp
ssitar583 14d0950
Delete build/CMakeLists.txt
ssitar583 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* Copyright 2025 RDK Management | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
Check failure on line 7 in apis/HdcpProfile/IHdcpProfile.h
|
||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
|
@@ -19,6 +19,7 @@ | |
|
||
#pragma once | ||
#include "Module.h" | ||
#include "entservices_errorcodes.h" | ||
|
||
namespace WPEFramework | ||
{ | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#include <stdio.h> | ||
|
||
// 1. The single source of truth: a list of all errors. | ||
#define ERROR_LIST \ | ||
X(ERROR_FILE_IO, "File Read or Write error") \ | ||
X(ERROR_PERMISSION_DENIED, "Permission denied") \ | ||
|
||
/******** PLEASE DO NOT MODIFY ANYTHING BELOW THIS **********/ | ||
// 2. Define the 'X' macro to generate the enum. | ||
#define X(name, string) name, | ||
typedef enum { | ||
// Start the first error code at 1000 | ||
ERROR_BASE = 1000, | ||
ERROR_LIST | ||
MAX_ERROR_CODE | ||
} ErrorCode; | ||
// Undefine 'X' to avoid conflicts. | ||
#undef X | ||
|
||
// 3. Define the 'X' macro to generate the string array. | ||
#define X(name, string) string, | ||
const char *error_strings[] = { | ||
"Error base", | ||
ERROR_LIST | ||
"Unknown error code" | ||
}; | ||
|
||
//4.Fetch Error strings | ||
#define ERROR_MESSAGE(errorcode) \ | ||
({ \ | ||
const char *msg = \ | ||
(((errorcode) >= ERROR_BASE && \ | ||
(errorcode) < ERROR_BASE + (sizeof(error_strings)/sizeof(error_strings[0]))) \ | ||
? error_strings[(errorcode) - ERROR_BASE] \ | ||
: ""); \ | ||
printf("[DEBUG] ErrorCode=%d -> %s\n", errorcode, msg); \ | ||
msg; \ | ||
}) | ||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure that https://github.com/rdkcentral/Thunder/blob/master/Source/core/Portability.h#L926 does not cover such scenarios ?