C++ conversion (#80)

Converted project to C++
This commit is contained in:
Ken Van Hoeylandt
2024-11-22 20:26:08 +01:00
committed by GitHub
parent 6d80144e12
commit 85e26636a3
488 changed files with 6017 additions and 39466 deletions
+30
View File
@@ -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