From 22c32ae8649e8540198942b33d4bab72c4ea7238 Mon Sep 17 00:00:00 2001 From: Christian C <cc@localhost> Date: Sun, 23 Mar 2025 15:34:48 -0700 Subject: Userspace types --- include/lib/png.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/lib/png.h') diff --git a/include/lib/png.h b/include/lib/png.h index ddc1db3..c21fede 100644 --- a/include/lib/png.h +++ b/include/lib/png.h @@ -8,19 +8,19 @@ #define PixelSize_t uint8_t #define PixelDepth_t uint8_t -struct pixel_t { +typedef struct pixel_t { PixelChannel_t red; PixelChannel_t green; PixelChannel_t blue; -}; +} Pixel; -struct bitmap_t { - struct pixel_t* image_buffer; +typedef struct bitmap_t { + Pixel* image_buffer; size_t width; size_t height; -}; +} Bitmap; // Save bitmap to file -void save_png(struct bitmap_t* bitmap, char* fname); +void save_png(Bitmap* bitmap, char* fname); #endif -- cgit v1.2.1