From 060098c673dc8b4726366b06854af614214a02ab Mon Sep 17 00:00:00 2001 From: Samuel O'Neal Date: Sun, 6 Sep 2026 01:16:47 -0600 Subject: [PATCH] added data file to store API objects and reaching out to API --- gui/src/data.odin | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 gui/src/data.odin diff --git a/gui/src/data.odin b/gui/src/data.odin new file mode 100644 index 0000000..bc7e4d3 --- /dev/null +++ b/gui/src/data.odin @@ -0,0 +1,35 @@ +package main + +Catalog :: struct { + name: string, + release: string, + description: ^string, + object_count: ^u64, +} + +CatalogObject :: struct { + id: string, + catalog: string, + object_type: string, + ra: f64, + dec: f64, + redshift: f64, +} + +APIError :: struct { + code: int, + message: string, +} + +get_catalogs :: proc() -> ([dynamic]Catalog, ^APIError) { + return nil, nil +} + +get_catalog :: proc(name: string) -> (^Catalog, ^APIError) { + return nil, nil +} + +get_catalog_objects :: proc(catalog_name: string) -> ([dynamic]CatalogObject, ^APIError) { + return nil, nil +} +