30 #include "hostIf_utils.h"
37 msgHandler* StorageSrvcReqHandler::getInstance()
39 hostIf_StorageSrvc::getLock();
44 hostIf_StorageSrvc::releaseLock();
74 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"[%s()] Storage Service manager DeInitializing\n", __FUNCTION__);
75 hostIf_StorageSrvc::closeAllInstances();
94 int ret = NOT_HANDLED;
96 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"[%s:%s] Found string as %s. Set command not supported.\n",
97 __FUNCTION__, __FILE__, stMsgData->
paramName);
98 stMsgData->
faultCode = fcInvalidParameterName;
115 int ret = NOT_HANDLED;
116 const char *pSetting = NULL;
117 int instanceNumber = 0;
118 char lcParam[TR69HOSTIFMGR_MAX_PARAM_LEN]={
'\0'};
119 hostIf_StorageSrvc::getLock();
121 RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,
"[%s:%s:%d] Found string as %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->
paramName);
122 if(strcasecmp(stMsgData->
paramName,
"Device.services.StorageServiceNumberOfEntries") == 0)
124 ret = hostIf_StorageSrvc::get_Device_StorageSrvc_ClientNumberOfEntries(stMsgData);
126 else if(matchComponent(stMsgData->
paramName,
"Device.services.StorageService",&pSetting,instanceNumber))
128 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"psettings:%s %d\n",pSetting, instanceNumber);
132 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"Getting response from StorageService object\n");
134 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"After Getting response from StorageService object\n");
139 RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,
"[%s:%s:%d] hostIf_StorageSrvc::getInstance returned NULL for instance %d,\n",
140 __FUNCTION__, __FILE__, __LINE__, instanceNumber);
145 stMsgData->
faultCode = fcInvalidParameterName;
148 hostIf_StorageSrvc::releaseLock();
152 int StorageSrvcReqHandler::handleGetAttributesMsg(
HOSTIF_MsgData_t *stMsgData)
154 int ret = NOT_HANDLED;
155 hostIf_StorageSrvc::getLock();
157 hostIf_StorageSrvc::releaseLock();
161 int StorageSrvcReqHandler::handleSetAttributesMsg(
HOSTIF_MsgData_t *stMsgData)
163 int ret = NOT_HANDLED;
164 hostIf_StorageSrvc::getLock();
166 hostIf_StorageSrvc::releaseLock();