dhcp client: add service class
Add the service class for dhcp client.
Bug: 25642025
TEST=compile
Change-Id: Iab7e78c8a32d74d2e19d3600b577329ab1982c38
diff --git a/manager.h b/manager.h
index 14b4d21..91c899b 100644
--- a/manager.h
+++ b/manager.h
@@ -17,7 +17,12 @@
#ifndef DHCP_CLIENT_MANAGER_H_
#define DHCP_CLIENT_MANAGER_H_
+#include <vector>
+
#include <base/macros.h>
+#include <brillo/variant_dictionary.h>
+
+#include "dhcp_client/event_dispatcher_interface.h"
namespace dhcp_client {
@@ -28,12 +33,14 @@
Manager();
virtual ~Manager();
- void StartService();
+ scoped_refptr<Service> StartService(const brillo::VariantDictionary& configs);
- bool StopService();
+ bool StopService(const scoped_refptr<Service>& service);
private:
int service_identifier_;
+ std::unique_ptr<EventDispatcherInterface> event_dispatcher_;
+ std::vector<scoped_refptr<Service>> services_;
DISALLOW_COPY_AND_ASSIGN(Manager);
};