Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
336a8a7
RDKEMW-6718 : Create entservices-errorcodes.h
ssitar583 Aug 8, 2025
158a61c
RDKEMW-6718:Rename entservices-errorcodes.h to entservices_errorcodes.h
ssitar583 Aug 8, 2025
7f9ac2e
Update IHdcpProfile.h
ssitar583 Aug 8, 2025
c676833
Update entservices_errorcodes.h
ssitar583 Aug 11, 2025
e503450
Update entservices_errorcodes.h
ssitar583 Aug 13, 2025
5326630
Update entservices_errorcodes.h
ssitar583 Aug 13, 2025
6983fed
Merge pull request #461 from rdkcentral/develop
ssitar583 Aug 19, 2025
ebde8d0
Update entservices_errorcodes.h
ssitar583 Aug 19, 2025
9530b30
Update entservices_errorcodes.h
ssitar583 Aug 22, 2025
8bd4a95
Merge pull request #474 from rdkcentral/develop
ssitar583 Aug 22, 2025
d5c3960
Update IPowerManager.h
ssitar583 Aug 22, 2025
a768366
Merge pull request #481 from rdkcentral/develop
ssitar583 Aug 27, 2025
5aa3c23
Update IPowerManager.h
ssitar583 Aug 28, 2025
3ec7f0b
Update entservices_errorcodes.h
ssitar583 Aug 29, 2025
43966f0
Update entservices_errorcodes.h
ssitar583 Sep 1, 2025
608ce08
Update entservices_errorcodes.h
ssitar583 Sep 3, 2025
8ffd7f5
Merge pull request #492 from rdkcentral/develop
ssitar583 Sep 3, 2025
33b6913
Update entservices_errorcodes.h
ssitar583 Sep 3, 2025
aeb1eff
Update IFirmwareUpdate.h
ssitar583 Sep 3, 2025
af58cfb
Update entservices_errorcodes.h
ssitar583 Sep 3, 2025
9ffb073
Update IHdcpProfile.h
ssitar583 Sep 3, 2025
a8bdb3f
Update IUSBDevice.h
ssitar583 Sep 3, 2025
cb053a5
Update entservices_errorcodes.h
ssitar583 Sep 4, 2025
f088b57
Update entservices_errorcodes.h
ssitar583 Sep 4, 2025
331ea67
Create entservices_errorcodes.cpp
ssitar583 Sep 4, 2025
853a71d
Update CMakeLists.txt
ssitar583 Sep 4, 2025
ff68cf0
Merge pull request #496 from rdkcentral/develop
ssitar583 Sep 4, 2025
df9ca5d
Update entservices_errorcodes.cpp
ssitar583 Sep 4, 2025
7d77efa
Update entservices_errorcodes.h
ssitar583 Sep 7, 2025
785401c
Update IUSBDevice.h
ssitar583 Sep 8, 2025
d920bc9
Update IFirmwareUpdate.h
ssitar583 Sep 8, 2025
bffa18a
Update entservices_errorcodes.h
ssitar583 Sep 8, 2025
8013476
Update Module.h
ssitar583 Sep 8, 2025
74bc006
Update IPowerManager.h
ssitar583 Sep 8, 2025
29b0b93
Update entservices_errorcodes.h
ssitar583 Sep 8, 2025
d313ec1
Update entservices_errorcodes.h
ssitar583 Sep 8, 2025
d422786
Update entservices_errorcodes.h
ssitar583 Sep 8, 2025
34d223e
Update entservices_errorcodes.h
ssitar583 Sep 8, 2025
de6a4cd
Update entservices_errorcodes.h
ssitar583 Sep 8, 2025
8d219c0
Update entservices_errorcodes.cpp
ssitar583 Sep 8, 2025
9139cbe
Update CMakeLists.txt
ssitar583 Sep 8, 2025
ae5d1f3
Update CMakeLists.txt
ssitar583 Sep 9, 2025
4ada220
Update CMakeLists.txt
ssitar583 Sep 9, 2025
8da7632
Merge pull request #499 from rdkcentral/develop
ssitar583 Sep 9, 2025
78c506d
Merge pull request #506 from rdkcentral/develop
ssitar583 Sep 10, 2025
dde8bfb
Update entservices_errorcodes.h
ssitar583 Sep 10, 2025
7d13579
Delete apis/entservices_errorcodes.cpp
ssitar583 Sep 10, 2025
14d0950
Delete build/CMakeLists.txt
ssitar583 Sep 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ if(NOT GENERATOR_SEARCH_PATH)
set(GENERATOR_SEARCH_PATH ${CMAKE_SYSROOT}${CMAKE_INSTALL_PREFIX}/include/${NAMESPACE})
endif()

file(GLOB_RECURSE INTERFACES_HEADERS_INPUT ./apis/*/I*.h ./apis/I*.h)
set(PROJECT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/apis")
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})
ProxyStubGenerator(INPUT "${INTERFACES_HEADERS_INPUT}" OUTDIR "${CMAKE_CURRENT_BINARY_DIR}/generated" INCLUDE_PATH ${GENERATOR_SEARCH_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/apis" PROJECT_DIR ${PROJECT_DIR})

file(GLOB_RECURSE INTERFACES_HEADERS ./apis/*/I*.h ./apis/*.h)
file(GLOB PROXY_STUB_SOURCES "${CMAKE_CURRENT_BINARY_DIR}/generated/ProxyStubs*.cpp")
Expand Down
1 change: 1 addition & 0 deletions apis/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@
// in the file calls Ids.h, please extend it with your requried interface number
// if you are creating a new interface.
#include "Ids.h"
#include <interfaces/entservices_errorcodes.h>
44 changes: 44 additions & 0 deletions apis/entservices_errorcodes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#ifndef ENTSERVICES_ERRORCODES_H
#define ENTSERVICES_ERRORCODES_H
#pragma once
#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_INVALID_PARAMETER, "Invalid Parameter") \
X(ERROR_INVALID_DEVICENAME, "Invalid device name") \
X(ERROR_INVALID_MOUNTPOINT, "Invalid mount path") \
X(ERROR_FIRMWAREUPDATE_INPROGRESS, "Firmware update already in progress") \
X(ERROR_FIRMWAREUPDATE_UPTODATE, "Firmware is already upto date") \

/******** PLEASE DO NOT MODIFY ANYTHING BELOW THIS **********/
// 2. Define the 'X' macro to generate the enum.
#define X(name, string) name,
enum ErrorCodeEnum{
// Start the first error code at 1000
ERROR_BASE = 1000,
ERROR_LIST
MAX_ERROR_CODE
};
// Undefine 'X' to avoid conflicts.
#undef X

// 3. Define the 'X' macro to generate the string array.
#define X(name, string) string,
const char* const error_strings[] = {
"Error base",
ERROR_LIST
"Unknown error code"
};

//4.Check if Error code is within the entservices error code range.
#define IS_ENTSERVICES_ERRORCODE(errorcode) \
((errorcode) >= ERROR_BASE && \
(errorcode) < MAX_ERROR_CODE)


//5.Fetch Error strings
#define ERROR_MESSAGE(errorcode) (error_strings[(errorcode) - ERROR_BASE])

#endif //ENTSERVICES_ERRORCODES_H
99 changes: 0 additions & 99 deletions build/CMakeLists.txt

This file was deleted.

Loading