From 46e6de294243e8dc593551bfe8c0e7090d03a159 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Sun, 30 Jun 2024 16:20:34 +0900 Subject: Improve dynamic loading Make loading code cleaner and prefix public function names to allow static compilation. --- src/disp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/disp.h') diff --git a/src/disp.h b/src/disp.h index 64faaf0..66104d4 100644 --- a/src/disp.h +++ b/src/disp.h @@ -33,13 +33,14 @@ #define DISP_ERR (INT_MAX - 2) struct disp { - void *dl_handle; void (*init)(void); void (*display_calc)(int, int); int (*read_input)(void); void (*display_res)(bool, int); void (*destroy)(void); #ifndef NDEBUG + char *name; + void *dl_handle; char *so_path; void *(*pre_reload)(void); void (*post_reload)(void *); -- cgit v1.2.3