VOL-1050 Delay stats collection after connection
Move the state of connectivity and activation to its own file (state)
It handles starting/stopping statistics collection and provides a hook for future actions
Change-Id: If6a7b4015824716ff45781e39f29ca7f06933702
diff --git a/src/state.h b/src/state.h
new file mode 100644
index 0000000..c392a01
--- /dev/null
+++ b/src/state.h
@@ -0,0 +1,13 @@
+#ifndef OPENOLT_STATE_H_
+#define OPENOLT_STATE_H_
+
+namespace state {
+ bool is_activated();
+ bool is_connected();
+ void connect();
+ void disconnect();
+ void activate();
+ void deactivate();
+}
+
+#endif