Implement PolicyRequest::getClient() member function 18/67718/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 28 Apr 2016 06:33:19 +0000 (15:33 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 28 Apr 2016 06:33:19 +0000 (15:33 +0900)
It should not return NULL.

Change-Id: I9bb2508937aad266a8c9cd73a22dcced89856de2
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/policy/PolicyRequest.cpp
src/policy/PolicyRequest.h

index 466dc2e..63cf8ae 100644 (file)
@@ -27,6 +27,11 @@ PolicyRequest::~PolicyRequest()
 {
 }
 
+const char* PolicyRequest::getClient()
+{
+       return "POLICY";
+}
+
 bool PolicyRequest::reply(int error)
 {
        return true;
index 940b203..2ed28c7 100644 (file)
@@ -26,6 +26,8 @@ namespace ctx {
                PolicyRequest(int type, int reqId, const char *subj, const char *desc);
                ~PolicyRequest();
 
+               const char* getClient();
+
                bool reply(int error);
                bool reply(int error, ctx::Json &requestResult);
                bool reply(int error, ctx::Json &requestResult, ctx::Json &dataRead);