mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
* Updated runtime gating to enable LilyGO T-Deck specific apps and services * New device compatibility and model-detection APIs * Added a buffer-overflow error code and message * Updated GitHub Actions checkout to v4 * Adjusted an LVGL-related library version * Device config now emits a T-Deck workaround flag when applicable * Removed internal developer comments and minor cleanups
26 lines
502 B
C
26 lines
502 B
C
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct RootConfig {
|
|
const char* model;
|
|
};
|
|
|
|
/**
|
|
* Indicates whether the device's model matches the specified model.
|
|
* @param[in] device the device to check (non-null)
|
|
* @param[in] model the model to check against
|
|
* @return true if the device's model matches the specified model
|
|
*/
|
|
bool root_is_model(const struct Device* device, const char* model);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|