2024-11-26 17:51:05 +01:00

31 lines
800 B
C++

#pragma once
#include "app/Manifest.h"
#include "hal/Configuration.h"
#include "service/Manifest.h"
#include "TactilityConfig.h"
namespace tt {
typedef struct {
const hal::Configuration* hardware;
// List of user applications
const app::Manifest* const apps[TT_CONFIG_APPS_LIMIT];
const service::Manifest* 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 getConfiguration();
} // namespace