git: ab3aa90b70db - stable/14 - loader: Add prototype for gfx_interp_md

From: Warner Losh <imp_at_FreeBSD.org>
Date: Tue, 16 Apr 2024 20:12:46 UTC
The branch stable/14 has been updated by imp:

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

commit ab3aa90b70db580adbc73ac62ca2c3ea4ff5c596
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-02-16 03:53:19 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-04-16 19:54:23 +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
    
    (cherry picked from commit 60e199d9fde1c3c60a96b969bf6982278cbc1e88)
---
 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)
+{
+}