From 822860bd61df44bd9813d264a68239475891e9a4 Mon Sep 17 00:00:00 2001 From: ehouse Date: Mon, 31 Jan 2005 03:18:15 +0000 Subject: [PATCH] ivars and params for passing device addressing info; new functions for sending streams --- xwords4/symbian/inc/xwappview.h | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/xwords4/symbian/inc/xwappview.h b/xwords4/symbian/inc/xwappview.h index a12b6f135..b4a9622a9 100644 --- a/xwords4/symbian/inc/xwappview.h +++ b/xwords4/symbian/inc/xwappview.h @@ -26,6 +26,7 @@ #include #include "game.h" +#include "comms.h" #include "memstream.h" #include "symdraw.h" #include "symgmmgr.h" @@ -136,17 +137,35 @@ class CXWordsAppView : public CCoeControl void DrawGameName() const; - static void sym_util_requestTime( XW_UtilCtxt* uc ); - static VTableMgr* sym_util_getVTManager( XW_UtilCtxt* uc ); - static XP_U32 sym_util_getCurSeconds( XW_UtilCtxt* uc ); - static void sym_util_notifyGameOverL( XW_UtilCtxt* uc ); - static void sym_util_userError( XW_UtilCtxt* uc, UtilErrID id ); + static void sym_util_requestTime( XW_UtilCtxt* uc ); + static VTableMgr* sym_util_getVTManager( XW_UtilCtxt* uc ); + static XP_U32 sym_util_getCurSeconds( XW_UtilCtxt* uc ); + static void sym_util_notifyGameOverL( XW_UtilCtxt* uc ); + static void sym_util_userError( XW_UtilCtxt* uc, UtilErrID id ); static DictionaryCtxt* sym_util_makeEmptyDict( XW_UtilCtxt* uc ); + static XWStreamCtxt* sym_util_makeStreamFromAddr( XW_UtilCtxt* uc, + XP_U16 channelNo ); + + +#ifdef XWFEATURE_STANDALONE_ONLY +# define SYM_SEND (TransportSend)NULL +#else +# define SYM_SEND sym_send + + static XP_S16 sym_send( XP_U8* buf, XP_U16 len, CommsAddrRec* addr, + void* closure ); + static void sym_send_on_close( XWStreamCtxt* stream, + void* closure ); +#endif static TInt TimerCallback( TAny* aThis ); CurGameInfo iGi; CommonPrefs iCp; +#ifndef XWFEATURE_STANDALONE_ONLY + CommsAddrRec iCommsAddr; /* for default settings */ + XP_U16 iListenPort; /* not sure what for */ +#endif XW_UtilCtxt iUtil; XWGame iGame; DrawCtx* iDraw;