![]() |
RDK Documentation (Open Sourced RDK Components)
|
#include <stdlib.h>#include <string.h>#include "webpa_adapter.h"#include "webpa_notification.h"#include "webpa_attribute.h"#include "webpa_parameter.h"#include "rdk_debug.h"#include "hostIf_NotificationHandler.h"#include "libpd.h"#include "safec_lib.h"#include <wdmp-c.h>
Go to the source code of this file.
Macros | |
| #define | WEBPA_DEVICE_REBOOT_PARAM "Device.X_CISCO_COM_DeviceControl.RebootDevice" |
| #define | WEBPA_DEVICE_REBOOT_VALUE "Device" |
| #define | WEBPA_NOTIFICATION_SOURCE "Unknown" |
Functions | |
| static WDMP_STATUS | validate_parameter (param_t *param, int paramCount) |
| validate_parameter validates parameter values More... | |
| static void | setRebootReason (param_t param, WEBPA_SET_TYPE setType) |
| Set Last Reboot Reason. More... | |
| void | notificationCallBack () |
| void | setInitialNotifyConfigFile (const char *nofityConfigFile) |
| Set Notify configuration file. More... | |
| void | registerNotifyCallback () |
| Registers the notification callback function. More... | |
| void | setInitialNotify () |
| Initializes WebPA configuration file. More... | |
| void | processRequest (char *reqPayload, char *transactionId, char **resPayload) |
| processRequest processes the request and returns response payload More... | |
| void | getCurrentTime (struct timespec *timer) |
| Get Current time. More... | |
Variables | |
| char * | webPANotifySource = NULL |
@description This file describes the Webpa Adapter for Parodus
@description This file describes the Webpa Attribute request handling
Definition in file webpa_adapter.cpp.
|
static |
validate_parameter validates parameter values
| [in] | param | arry if parameters |
| [in] | paramCount | input cid |
Definition at line 428 of file webpa_adapter.cpp.
|
static |
Set Last Reboot Reason.
| [in] | param | arry if parameters |
| [in] | WebPa | Set Type |
Definition at line 461 of file webpa_adapter.cpp.
| void setInitialNotifyConfigFile | ( | const char * | nofityConfigFile | ) |
Set Notify configuration file.
| [in] | config | file name |
Definition at line 74 of file webpa_adapter.cpp.
| void registerNotifyCallback | ( | ) |
Registers the notification callback function.
| [in] | cb | Notification callback function. |
Definition at line 83 of file webpa_adapter.cpp.
| void setInitialNotify | ( | ) |
Initializes WebPA configuration file.
To turn on notification for the parameters extracted from the notifyList of the config file.
Definition at line 108 of file webpa_adapter.cpp.
| void processRequest | ( | char * | reqPayload, |
| char * | transactionId, | ||
| char ** | resPayload | ||
| ) |
processRequest processes the request and returns response payload
| [in] | reqPayload | input request to process |
| [in] | resPayload | retuns response payload |
Definition at line 170 of file webpa_adapter.cpp.