Fix ServiceContext class
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 18 Mar 2025 02:16:05 +0000 (11:16 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 18 Mar 2025 02:16:05 +0000 (11:16 +0900)
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/service_context.cc
src/service_context.hh

index 701c843edb6023810de72efb7f003c7b144a25be..18efc87324d1948738eb4e6d9108dfd0032c111d 100644 (file)
@@ -73,7 +73,7 @@ void ServiceContext::Shutdown() {
   Unload();
 }
 
-Service::State ServiceContext::GetState() const { return service_->GetState(); }
+std::shared_ptr<Service> ServiceContext::GetService() const { return service_; }
 
 const std::string& ServiceContext::GetName() const { return info_->GetName(); }
 
index a7fe7376fd03ef5d2bfd1a35e4b379f1042413c8..585472f98057fae133c693c76db35c91cb6ae8f6 100644 (file)
@@ -32,7 +32,7 @@ class ServiceContext {
 
   bool Init();
   void Shutdown();
-  Service::State GetState() const;
+  std::shared_ptr<Service> GetService() const;
   const std::string& GetName() const;
 
  private: