committed by
GitHub
parent
6d80144e12
commit
85e26636a3
@@ -0,0 +1,30 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user