From: Hwankyu Jhun Date: Tue, 18 Mar 2025 02:16:05 +0000 (+0900) Subject: Fix ServiceContext class X-Git-Tag: accepted/tizen/unified/20250516.055915~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2387ed81703ecc0dc8b60111c62f1a835e35a0eb;p=platform%2Fcore%2Fappfw%2Funited-service.git Fix ServiceContext class Signed-off-by: Hwankyu Jhun --- diff --git a/src/service_context.cc b/src/service_context.cc index 701c843..18efc87 100644 --- a/src/service_context.cc +++ b/src/service_context.cc @@ -73,7 +73,7 @@ void ServiceContext::Shutdown() { Unload(); } -Service::State ServiceContext::GetState() const { return service_->GetState(); } +std::shared_ptr ServiceContext::GetService() const { return service_; } const std::string& ServiceContext::GetName() const { return info_->GetName(); } diff --git a/src/service_context.hh b/src/service_context.hh index a7fe737..585472f 100644 --- a/src/service_context.hh +++ b/src/service_context.hh @@ -32,7 +32,7 @@ class ServiceContext { bool Init(); void Shutdown(); - Service::State GetState() const; + std::shared_ptr GetService() const; const std::string& GetName() const; private: