31 lines
788 B
C++
31 lines
788 B
C++
#pragma once
|
|
|
|
#include "AppManifest.h"
|
|
#include "Hal/Configuration.h"
|
|
#include "ServiceManifest.h"
|
|
#include "TactilityConfig.h"
|
|
|
|
namespace tt {
|
|
|
|
typedef struct {
|
|
const hal::Configuration* hardware;
|
|
// List of user applications
|
|
const AppManifest* const apps[TT_CONFIG_APPS_LIMIT];
|
|
const ServiceManifest* const services[TT_CONFIG_SERVICES_LIMIT];
|
|
const char* auto_start_app_id;
|
|
} Configuration;
|
|
|
|
/**
|
|
* Attempts to initialize Tactility and all configured hardware.
|
|
* @param config
|
|
*/
|
|
void init(const Configuration* config);
|
|
|
|
/**
|
|
* While technically nullable, this instance is always set if tt_init() succeeds.
|
|
* @return the Configuration instance that was passed on to tt_init() if init is successful
|
|
*/
|
|
const Configuration* _Nullable get_config();
|
|
|
|
} // namespace
|