* will handle REST request (GET/PUT/POST/DEL) for them.
*/
OCEntityHandlerResult ACLEntityHandler (OCEntityHandlerFlag flag,
- OCEntityHandlerRequest * ehRequest)
+ OCEntityHandlerRequest * ehRequest,
+ void* callbackParameter)
{
OCEntityHandlerResult ehRet = OC_EH_ERROR;
OIC_MI_DEF,
OIC_RSRC_ACL_URI,
ACLEntityHandler,
+ NULL,
OC_OBSERVABLE);
if (OC_STACK_OK != ret)
* to handle REST request (PUT/POST/DEL)
*/
OCEntityHandlerResult CredEntityHandler (OCEntityHandlerFlag flag,
- OCEntityHandlerRequest * ehRequest)
+ OCEntityHandlerRequest * ehRequest,
+ void* callbackParameter)
{
OCEntityHandlerResult ret = OC_EH_ERROR;
OIC_MI_DEF,
OIC_RSRC_CRED_URI,
CredEntityHandler,
+ NULL,
OC_RES_PROP_NONE);
if (OC_STACK_OK != ret)
* This internal method is the entity handler for DOXM resources.
*/
OCEntityHandlerResult DoxmEntityHandler (OCEntityHandlerFlag flag,
- OCEntityHandlerRequest * ehRequest)
+ OCEntityHandlerRequest * ehRequest,
+ void* callbackParam)
{
OCEntityHandlerResult ehRet = OC_EH_ERROR;
OIC_MI_DEF,
OIC_RSRC_DOXM_URI,
DoxmEntityHandler,
+ NULL,
OC_OBSERVABLE);
if (OC_STACK_OK != ret)
* This internal method is the entity handler for pstat resources.
*/
OCEntityHandlerResult PstatEntityHandler(OCEntityHandlerFlag flag,
- OCEntityHandlerRequest * ehRequest)
+ OCEntityHandlerRequest * ehRequest,
+ void *callbackParam)
{
OCEntityHandlerResult ehRet = OC_EH_ERROR;
// This method will handle REST request (GET/POST) for /oic/sec/pstat
OIC_MI_DEF,
OIC_RSRC_PSTAT_URI,
PstatEntityHandler,
+ NULL,
OC_RES_PROP_NONE);
if (ret != OC_STACK_OK)
"core.rw",
NULL, //"/a/led",
0,
+ 0,
OC_DISCOVERABLE|OC_OBSERVABLE));
EXPECT_EQ(OC_STACK_INVALID_URI, OCCreateResource(&handle,
"core.rw",
"", //"/a/led",
0,
+ 0,
OC_DISCOVERABLE|OC_OBSERVABLE));
EXPECT_EQ(OC_STACK_INVALID_URI, OCCreateResource(&handle,
"core.rw",
uri65, //"/a/led",
0,
+ 0,
OC_DISCOVERABLE|OC_OBSERVABLE));
EXPECT_EQ(OC_STACK_OK, OCStop());