Skip to content
Draft
Show file tree
Hide file tree
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 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
1 change: 1 addition & 0 deletions apis/HdcpProfile/IHdcpProfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'apis/HdcpProfile/IHdcpProfile.h' (Match: peridyno/peridyno/0.4.0, 14 lines, url: https://github.com/peridyno/peridyno/archive/refs/tags/v0.4.0.tar.gz, file: src/Framework/Module/Pipeline.h)
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
Expand All @@ -19,6 +19,7 @@

#pragma once
#include "Module.h"
#include "entservices_errorcodes.h"

namespace WPEFramework
{
Expand Down
13 changes: 6 additions & 7 deletions apis/PowerManager/IPowerManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ namespace WPEFramework
virtual void OnRebootBegin(const string &rebootReasonCustom, const string &rebootReasonOther, const string &rebootRequestor) {};
};
virtual Core::hresult Register(Exchange::IPowerManager::IRebootNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(const Exchange::IPowerManager::IRebootNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(Exchange::IPowerManager::IRebootNotification* notification /* @in */) = 0;

// @event
struct EXTERNAL IModePreChangeNotification : virtual public Core::IUnknown
Expand All @@ -119,7 +119,7 @@ namespace WPEFramework
// @brief Unregister for Power Mode pre-change event
// IMPORTANT: If client is also engaged in power mode pre-change operation (requested via AddPowerModePreChangeClient API),
// make sure to disengage (using RemovePowerModePreChangeClient API) before calling Unregister.
virtual Core::hresult Unregister(const IModePreChangeNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(IModePreChangeNotification* notification /* @in */) = 0;

// @event
struct EXTERNAL IModeChangedNotification : virtual public Core::IUnknown
Expand All @@ -132,7 +132,7 @@ namespace WPEFramework
virtual void OnPowerModeChanged(const PowerState currentState, const PowerState newState) {};
};
virtual Core::hresult Register(IModeChangedNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(const IModeChangedNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(IModeChangedNotification* notification /* @in */) = 0;

// @event
struct EXTERNAL IDeepSleepTimeoutNotification : virtual public Core::IUnknown
Expand All @@ -144,7 +144,7 @@ namespace WPEFramework
virtual void OnDeepSleepTimeout(const int wakeupTimeout) {};
};
virtual Core::hresult Register(IDeepSleepTimeoutNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(const IDeepSleepTimeoutNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(IDeepSleepTimeoutNotification* notification /* @in */) = 0;

// @event
struct EXTERNAL INetworkStandbyModeChangedNotification : virtual public Core::IUnknown
Expand All @@ -156,7 +156,7 @@ namespace WPEFramework
virtual void OnNetworkStandbyModeChanged(const bool enabled) {};
};
virtual Core::hresult Register(INetworkStandbyModeChangedNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(const INetworkStandbyModeChangedNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(INetworkStandbyModeChangedNotification* notification /* @in */) = 0;

// @event
struct EXTERNAL IThermalModeChangedNotification : virtual public Core::IUnknown
Expand All @@ -170,7 +170,7 @@ namespace WPEFramework
virtual void OnThermalModeChanged(const ThermalTemperature currentThermalLevel, const ThermalTemperature newThermalLevel, const float currentTemperature) {};
};
virtual Core::hresult Register(IThermalModeChangedNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(const IThermalModeChangedNotification* notification /* @in */) = 0;
virtual Core::hresult Unregister(IThermalModeChangedNotification* notification /* @in */) = 0;

/** Engage a client in power mode change operation. */
// @text addPowerModePreChangeClient
Expand Down Expand Up @@ -329,4 +329,3 @@ namespace WPEFramework

} // namespace Exchange
} // namespace WPEFramework

39 changes: 39 additions & 0 deletions apis/entservices_errorcodes.h
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") \
Copy link
Contributor

Choose a reason for hiding this comment

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


/******** 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; \
})

Loading