From: Mu-Woong Lee Date: Wed, 27 Apr 2016 08:19:34 +0000 (+0900) Subject: Add comments on the subscribe/unsubscribe functions of PlaceRecognitionProvider X-Git-Tag: submit/tizen/20160503.015801^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35e0859ff7ebfce122f0d3576744be8392e7397d;p=platform%2Fcore%2Fcontext%2Fcontext-provider.git Add comments on the subscribe/unsubscribe functions of PlaceRecognitionProvider Change-Id: Ia6a36c2e11761e1e76ceedb528a5b7dc94f85366 Signed-off-by: Mu-Woong Lee --- diff --git a/src/my-place/place_recognition.cpp b/src/my-place/place_recognition.cpp index 3d90c6a..a26eda5 100644 --- a/src/my-place/place_recognition.cpp +++ b/src/my-place/place_recognition.cpp @@ -25,11 +25,15 @@ void ctx::PlaceRecognitionProvider::getPrivilege(std::vector &privi int ctx::PlaceRecognitionProvider::subscribe(ctx::Json option, ctx::Json* requestResult) { + /* NOTE: This function needs to return ERR_NONE. + Otherwise, context-service will automatically delete this object. */ return ERR_NOT_SUPPORTED; } int ctx::PlaceRecognitionProvider::unsubscribe(ctx::Json option) { + /* NOTE: As the above subscribe() returns ERR_NONE, in parallel, + this function also needs to return ERR_NONE. */ return ERR_NOT_SUPPORTED; }