X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fstack%2Fsamples%2Flinux%2FSimpleClientServer%2Focserverbasicops.h;h=74f862e8160126c322d39e4d2a414ae2ffbd4d0c;hb=d77842b219057f672a02b6a60a0320357419f86c;hp=af9f00c33e54dc2776c48fae0473e8f528ceb54d;hpb=0246565dfc944fb3dfb5326728c1f337729da0ec;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverbasicops.h b/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverbasicops.h index af9f00c..74f862e 100644 --- a/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverbasicops.h +++ b/resource/csdk/stack/samples/linux/SimpleClientServer/ocserverbasicops.h @@ -54,9 +54,15 @@ char* constructJsonResponse (OCEntityHandlerRequest *ehRequest); /* Following methods process the PUT, GET, POST * requests */ -void ProcessGetRequest (OCEntityHandlerRequest *ehRequest); -void ProcessPutRequest (OCEntityHandlerRequest *ehRequest); -void ProcessPostRequest (OCEntityHandlerRequest *ehRequest); +OCEntityHandlerResult ProcessGetRequest (OCEntityHandlerRequest *ehRequest, + char *payload, + uint16_t maxPayloadSize); +OCEntityHandlerResult ProcessPutRequest (OCEntityHandlerRequest *ehRequest, + char *payload, + uint16_t maxPayloadSize); +OCEntityHandlerResult ProcessPostRequest (OCEntityHandlerRequest *ehRequest, + char *payload, + uint16_t maxPayloadSize); /* call getResult in common.cpp to get the result in string format. */ const char *getResult(OCStackResult result);