git: 60e199d9fde1 - main - loader: Add prototype for gfx_interp_md

From: Warner Losh <imp_at_FreeBSD.org>
Date: Fri, 16 Feb 2024 04:00:25 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=60e199d9fde1c3c60a96b969bf6982278cbc1e88

commit 60e199d9fde1c3c60a96b969bf6982278cbc1e88
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-16 03:53:19 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-02-16 03:59:22 +0000

    loader: Add prototype for gfx_interp_md
    
    This function will be used to draw in the graphics bindings when the
    loader is compiled with graphics (gfx) support. Provide definitions
    for lua and the simple interpreter. 4th support is forthcoming.
    
    Sponsored by:           Netflix
    Reviewed by:            kevans, jhb
    Differential Revision:  https://reviews.freebsd.org/D43903
---
 stand/common/gfx_fb.h        | 2 ++
 stand/common/interp_simple.c | 8 ++++++++
 stand/liblua/gfx_utils.c     | 5 +++++
 3 files changed, 15 insertions(+)

diff --git a/stand/common/gfx_fb.h b/stand/common/gfx_fb.h
index adb60c673ea9..84062864c57f 100644
--- a/stand/common/gfx_fb.h
+++ b/stand/common/gfx_fb.h
@@ -281,6 +281,8 @@ void term_image_display(teken_gfx_t *, const teken_rect_t *);
 
 void reset_font_flags(void);
 
+void gfx_interp_md(void);
+
 #ifdef __cplusplus
 }
 #endif
diff --git a/stand/common/interp_simple.c b/stand/common/interp_simple.c
index fa021c796308..61ed724af9d0 100644
--- a/stand/common/interp_simple.c
+++ b/stand/common/interp_simple.c
@@ -198,3 +198,11 @@ interp_include(const char *filename)
 	}
 	return(res);
 }
+
+/*
+ * There's no graphics commands for the simple interpreter.
+ */
+void
+gfx_interp_md(void)
+{
+}
diff --git a/stand/liblua/gfx_utils.c b/stand/liblua/gfx_utils.c
index fe208dc990d8..d2d22738c929 100644
--- a/stand/liblua/gfx_utils.c
+++ b/stand/liblua/gfx_utils.c
@@ -240,3 +240,8 @@ luaopen_gfx(lua_State *L)
 	luaL_newlib(L, gfxlib);
 	return 1;
 }
+
+void
+gfx_interp_md(void)
+{
+}