From 4910356db2585e55d2876001e40b21e9b148bcc4 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 4 Aug 2025 00:35:10 +0200 Subject: added fgla search --- include/glass_data.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/glass_data.h') diff --git a/include/glass_data.h b/include/glass_data.h index 277adfa..75aedde 100644 --- a/include/glass_data.h +++ b/include/glass_data.h @@ -14,12 +14,15 @@ #define GLASS_DATA_H #include "glamacdef.h" // For type definitions +#include "glamac_errors.h" // For error handling // Structure to represent an optical glass typedef struct { byte name[50]; f32 abbeNumber; // X-axis (vd) f32 refractiveIndex; // Y-axis (nd) + byte glass_code[20]; // Glass code from manufacturer + byte manufacturer[20]; // Manufacturer name } Glass; // Get number of glasses in the catalog @@ -40,4 +43,7 @@ void initialize_glass_data(void); // Load glasses from JSON file b32 load_glasses_from_json(const byte* json_path, const byte* manufacturer_filter); +// Cleanup glass data resources +void cleanup_glass_data(void); + #endif /* GLASS_DATA_H */ -- cgit v1.2.3