From 35e0859ff7ebfce122f0d3576744be8392e7397d Mon Sep 17 00:00:00 2001 From: Mu-Woong Lee Date: Wed, 27 Apr 2016 17:19:34 +0900 Subject: [PATCH] Add comments on the subscribe/unsubscribe functions of PlaceRecognitionProvider Change-Id: Ia6a36c2e11761e1e76ceedb528a5b7dc94f85366 Signed-off-by: Mu-Woong Lee --- src/my-place/place_recognition.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.34.1