Skip to content

Commit 98a5881

Browse files
committed
Merge branch 'release/1.15.10'
2 parents fbd620e + 45708eb commit 98a5881

File tree

4 files changed

+61
-1
lines changed

4 files changed

+61
-1
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [1.15.10](https://github.com/rdkcentral/entservices-apis/compare/1.15.9...1.15.10)
8+
9+
- RDKEMW-6718 : Add support for plugin specific error codes [`#507`](https://github.com/rdkcentral/entservices-apis/pull/507)
10+
- RDKEMW-6718: Create entservices_errorcodes.h [`4827b3a`](https://github.com/rdkcentral/entservices-apis/commit/4827b3aed79e56181e31c0b00b0f0a736f2814f8)
11+
- Update entservices_errorcodes.h [`225d8eb`](https://github.com/rdkcentral/entservices-apis/commit/225d8eb06c2c1266f61c56713f5c5f02d62b4270)
12+
- Update entservices_errorcodes.h [`e2de366`](https://github.com/rdkcentral/entservices-apis/commit/e2de3668f895cb2b0cd80895a2775029882456be)
13+
714
#### [1.15.9](https://github.com/rdkcentral/entservices-apis/compare/1.15.8...1.15.9)
815

16+
> 10 September 2025
17+
918
- RDKEMW-7984 : Add SharedStorage to the api documentation [`#505`](https://github.com/rdkcentral/entservices-apis/pull/505)
19+
- 1.15.9 release changelog updates [`e0adbd5`](https://github.com/rdkcentral/entservices-apis/commit/e0adbd5c1185a149b05c5dd54739ed214ee1feb8)
1020
- Merge tag '1.15.8' into develop [`e3906c7`](https://github.com/rdkcentral/entservices-apis/commit/e3906c73c9e0e503f55654ad6d35024878c02435)
1121

1222
#### [1.15.8](https://github.com/rdkcentral/entservices-apis/compare/1.15.7...1.15.8)

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ if(NOT GENERATOR_SEARCH_PATH)
3838
set(GENERATOR_SEARCH_PATH ${CMAKE_SYSROOT}${CMAKE_INSTALL_PREFIX}/include/${NAMESPACE})
3939
endif()
4040

41+
file(GLOB_RECURSE INPUT_INTERFACES_HEADERS ./apis/*/I*.h ./apis/I*.h)
4142
set(PROJECT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/apis")
42-
ProxyStubGenerator(INPUT "${CMAKE_CURRENT_SOURCE_DIR}/apis/*" OUTDIR "${CMAKE_CURRENT_BINARY_DIR}/generated" INCLUDE_PATH ${GENERATOR_SEARCH_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/apis" PROJECT_DIR ${PROJECT_DIR})
43+
ProxyStubGenerator(INPUT "${INPUT_INTERFACES_HEADERS}" OUTDIR "${CMAKE_CURRENT_BINARY_DIR}/generated" INCLUDE_PATH ${GENERATOR_SEARCH_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/apis" PROJECT_DIR ${PROJECT_DIR})
4344

4445
file(GLOB_RECURSE INTERFACES_HEADERS ./apis/*/I*.h ./apis/*.h)
4546
file(GLOB PROXY_STUB_SOURCES "${CMAKE_CURRENT_BINARY_DIR}/generated/ProxyStubs*.cpp")

apis/Module.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@
3636
// in the file calls Ids.h, please extend it with your requried interface number
3737
// if you are creating a new interface.
3838
#include "Ids.h"
39+
#include <interfaces/entservices_errorcodes.h>

apis/entservices_errorcodes.h

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#ifndef ENTSERVICES_ERRORCODES_H
2+
#define ENTSERVICES_ERRORCODES_H
3+
#pragma once
4+
#include <stdio.h>
5+
6+
// 1. A list of Plugin specific errors.
7+
// As per https://www.jsonrpc.org/specification#error_object, implementation defined error range is -32000 to -32099
8+
// So, we have room for only 100 errors across all entertainment services in RDK.
9+
// Please define error code in reusable form (or generic form), wherever possible.
10+
// Always consult Thunder Framework defined errors before defining a new error.
11+
#define ERROR_LIST \
12+
X(ERROR_INVALID_DEVICENAME, "Invalid device name") \
13+
X(ERROR_INVALID_MOUNTPOINT, "Invalid mount path") \
14+
X(ERROR_FIRMWAREUPDATE_INPROGRESS, "Firmware update already in progress") \
15+
X(ERROR_FIRMWAREUPDATE_UPTODATE, "Firmware is already upto date") \
16+
X(ERROR_FILE_IO, "File Read or Write error") \
17+
18+
19+
/******** PLEASE DO NOT MODIFY ANYTHING BELOW THIS **********/
20+
// 2. Define the 'X' macro to generate the enum.
21+
#define X(name, string) name,
22+
enum ErrorCodeEnum{
23+
// Start the first error code at 1000
24+
ERROR_BASE = 1000,
25+
ERROR_LIST
26+
MAX_ERROR_CODE
27+
};
28+
// Undefine 'X' to avoid conflicts.
29+
#undef X
30+
31+
// 3. Define the 'X' macro to generate the string array.
32+
#define X(name, string) string,
33+
const char* const error_strings[] = {
34+
"Error base",
35+
ERROR_LIST
36+
"Unknown error code"
37+
};
38+
39+
//4.Check if Error code is within the entservices error code range.
40+
#define IS_ENTSERVICES_ERRORCODE(errorcode) \
41+
((errorcode) >= ERROR_BASE && \
42+
(errorcode) < MAX_ERROR_CODE)
43+
44+
45+
//5.Fetch Error strings
46+
#define ERROR_MESSAGE(errorcode) (error_strings[(errorcode) - ERROR_BASE])
47+
48+
#endif //ENTSERVICES_ERRORCODES_H

0 commit comments

Comments
 (0)