Add IClient::getName() for getting the package id (or the executable path) of client 10/137310/2
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 5 Jul 2017 07:42:08 +0000 (16:42 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 5 Jul 2017 07:44:13 +0000 (07:44 +0000)
Change-Id: I1f627f7cc93b59fad1127d88f260267ac83e7f16
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
include/IClient.h

index d1f6db8..9fa1617 100644 (file)
@@ -29,9 +29,14 @@ namespace ctx {
        public:
                virtual ~IClient() {}
 
-               virtual const std::string& getBusName() = 0;
+               // Name of the client process. Package ID or the excutable's path.
+               virtual const std::string& getName() = 0;
+
+               // Unique label to be used to check the privilege. Smack label.
+               virtual const std::string& getSecurityLabel() = 0;
 
-               virtual const std::string& getId() = 0;
+               // Name of the client's DBus connection.
+               virtual const std::string& getBusName() = 0;
 
                virtual uid_t getUid() = 0;