Add comments on the subscribe/unsubscribe functions of PlaceRecognitionProvider 59/67559/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 27 Apr 2016 08:19:34 +0000 (17:19 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 27 Apr 2016 08:19:34 +0000 (17:19 +0900)
Change-Id: Ia6a36c2e11761e1e76ceedb528a5b7dc94f85366
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/my-place/place_recognition.cpp

index 3d90c6a..a26eda5 100644 (file)
@@ -25,11 +25,15 @@ void ctx::PlaceRecognitionProvider::getPrivilege(std::vector<const char*> &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;
 }