Various services improved (#110)
This commit is contained in:
committed by
GitHub
parent
36bb25deba
commit
d52fe52d96
@@ -1,3 +1,4 @@
|
||||
#include <Dispatcher.h>
|
||||
#include "TactilityHeadless.h"
|
||||
#include "hal/Configuration.h"
|
||||
#include "hal/Hal_i.h"
|
||||
@@ -15,6 +16,8 @@ namespace tt {
|
||||
namespace service::wifi { extern const ServiceManifest manifest; }
|
||||
namespace service::sdcard { extern const ServiceManifest manifest; }
|
||||
|
||||
static Dispatcher mainDispatcher;
|
||||
|
||||
static const service::ServiceManifest* const system_services[] = {
|
||||
&service::sdcard::manifest,
|
||||
&service::wifi::manifest
|
||||
@@ -40,6 +43,11 @@ void initHeadless(const hal::Configuration& config) {
|
||||
register_and_start_system_services();
|
||||
}
|
||||
|
||||
|
||||
Dispatcher& getMainDispatcher() {
|
||||
return mainDispatcher;
|
||||
}
|
||||
|
||||
namespace hal {
|
||||
|
||||
const Configuration& getConfiguration() {
|
||||
|
||||
Reference in New Issue
Block a user