From 0e1f10b802552f6106a911e5dcea4c46a3d6fe3d Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 10 Mar 2022 13:06:03 -0800 Subject: [PATCH] fix assertion by adding missing methods They're stubbed out; hope they're unused. :-) --- xwords4/linux/cursesboard.c | 12 ++++++++++++ xwords4/linux/gtkboard.c | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/xwords4/linux/cursesboard.c b/xwords4/linux/cursesboard.c index e601a143c..cff15ec7d 100644 --- a/xwords4/linux/cursesboard.c +++ b/xwords4/linux/cursesboard.c @@ -1020,6 +1020,17 @@ curses_util_remSelected( XW_UtilCtxt* uc, XWEnv XP_UNUSED(xwe) ) free( text ); } +static void +curses_util_getMQTTIDsFor( XW_UtilCtxt* uc, XWEnv xwe, XP_U16 nRelayIDs, + const XP_UCHAR* relayIDs[] ) +{ + XP_ASSERT(0); /* implement me */ + XP_USE( uc ); + XP_USE( xwe ); + XP_USE( nRelayIDs ); + XP_USE( relayIDs ); +} + static void curses_util_timerSelected( XW_UtilCtxt* XP_UNUSED(uc), XWEnv XP_UNUSED(xwe), XP_Bool XP_UNUSED_DBG(inDuplicateMode), @@ -1134,6 +1145,7 @@ setupCursesUtilCallbacks( CursesBoardGlobals* bGlobals, XW_UtilCtxt* util ) SET_PROC(altKeyDown); /* ?? */ SET_PROC(notifyIllegalWords); SET_PROC(remSelected); + SET_PROC(getMQTTIDsFor); SET_PROC(timerSelected); #ifndef XWFEATURE_MINIWIN SET_PROC(bonusSquareHeld); diff --git a/xwords4/linux/gtkboard.c b/xwords4/linux/gtkboard.c index baedafd1f..4d47e67d7 100644 --- a/xwords4/linux/gtkboard.c +++ b/xwords4/linux/gtkboard.c @@ -1996,6 +1996,17 @@ gtk_util_timerSelected( XW_UtilCtxt* uc, XWEnv XP_UNUSED(xwe), XP_Bool inDuplica } } +static void +gtk_util_getMQTTIDsFor( XW_UtilCtxt* uc, XWEnv xwe, XP_U16 nRelayIDs, + const XP_UCHAR* relayIDs[] ) +{ + XP_ASSERT(0); /* implement me */ + XP_USE( uc ); + XP_USE( xwe ); + XP_USE( nRelayIDs ); + XP_USE( relayIDs ); +} + #ifndef XWFEATURE_STANDALONE_ONLY static XWStreamCtxt* gtk_util_makeStreamFromAddr(XW_UtilCtxt* uc, XWEnv XP_UNUSED(xwe), XP_PlayerAddr channelNo ) @@ -2313,6 +2324,7 @@ setupGtkUtilCallbacks( GtkGameGlobals* globals, XW_UtilCtxt* util ) SET_PROC(engineProgressCallback); SET_PROC(notifyIllegalWords); SET_PROC(remSelected); + SET_PROC(getMQTTIDsFor); SET_PROC(timerSelected); #ifndef XWFEATURE_STANDALONE_ONLY SET_PROC(makeStreamFromAddr);