2015-07-22 15:16:29 +02:00
|
|
|
/* -*- compile-command: "cd ../linux && make MEMDEBUG=TRUE -j3"; -*- */
|
2003-11-01 06:35:29 +01:00
|
|
|
/*
|
2022-09-04 03:47:04 +02:00
|
|
|
* Copyright 2001 - 2022 by Eric House (xwords@eehouse.org). All rights
|
2009-02-01 16:50:58 +01:00
|
|
|
* reserved.
|
2003-11-01 06:35:29 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _COMMS_H_
|
|
|
|
#define _COMMS_H_
|
|
|
|
|
|
|
|
#include "comtypes.h"
|
2020-05-20 22:58:53 +02:00
|
|
|
#include "commstyp.h"
|
2003-11-01 06:35:29 +01:00
|
|
|
#include "mempool.h"
|
2005-03-19 22:46:51 +01:00
|
|
|
#include "xwrelay.h"
|
2008-01-07 02:10:43 +01:00
|
|
|
#include "server.h"
|
2003-11-01 06:35:29 +01:00
|
|
|
|
2005-01-31 04:31:50 +01:00
|
|
|
EXTERN_C_START
|
|
|
|
|
2003-11-01 06:35:29 +01:00
|
|
|
#define CHANNEL_NONE ((XP_PlayerAddr)0)
|
|
|
|
#define CONN_ID_NONE 0L
|
|
|
|
|
2005-10-02 17:39:38 +02:00
|
|
|
typedef XP_U32 MsgID; /* this is too big!!! PENDING */
|
2017-11-11 06:34:02 +01:00
|
|
|
typedef XP_U8 XWHostID;
|
2003-11-01 06:35:29 +01:00
|
|
|
|
|
|
|
typedef enum {
|
2007-12-09 02:59:15 +01:00
|
|
|
COMMS_CONN_NONE /* I want errors on uninited case */
|
2020-09-11 00:11:22 +02:00
|
|
|
,COMMS_CONN_IR /* 1 */
|
|
|
|
,COMMS_CONN_IP_DIRECT /* 2 */
|
|
|
|
,COMMS_CONN_RELAY /* 3 */
|
|
|
|
,COMMS_CONN_BT /* 4 */
|
|
|
|
,COMMS_CONN_SMS /* 5 */
|
2016-11-14 17:06:53 +01:00
|
|
|
,COMMS_CONN_P2P /* a.k.a. Wifi direct */
|
2020-09-11 00:11:22 +02:00
|
|
|
,COMMS_CONN_NFC /* 7 */
|
|
|
|
,COMMS_CONN_MQTT /* 8 */
|
2009-02-28 20:27:45 +01:00
|
|
|
|
|
|
|
,COMMS_CONN_NTYPES
|
2003-11-01 06:35:29 +01:00
|
|
|
} CommsConnType;
|
|
|
|
|
2014-10-15 16:26:18 +02:00
|
|
|
typedef XP_U8 CommsConnTypes;
|
|
|
|
|
2009-09-12 23:39:13 +02:00
|
|
|
typedef enum {
|
|
|
|
COMMS_RELAYSTATE_UNCONNECTED
|
2009-12-04 09:14:03 +01:00
|
|
|
, COMMS_RELAYSTATE_DENIED /* terminal; new game or reset required to
|
|
|
|
fix */
|
2009-09-12 23:39:13 +02:00
|
|
|
, COMMS_RELAYSTATE_CONNECT_PENDING
|
|
|
|
, COMMS_RELAYSTATE_CONNECTED
|
2009-11-08 22:30:13 +01:00
|
|
|
, COMMS_RELAYSTATE_RECONNECTED
|
2009-09-12 23:39:13 +02:00
|
|
|
, COMMS_RELAYSTATE_ALLCONNECTED
|
2017-11-11 06:34:02 +01:00
|
|
|
#ifdef RELAY_VIA_HTTP
|
|
|
|
, COMMS_RELAYSTATE_USING_HTTP /* connection state doesn't matter */
|
|
|
|
#endif
|
2009-09-12 23:39:13 +02:00
|
|
|
} CommsRelayState;
|
|
|
|
|
2012-02-28 05:30:48 +01:00
|
|
|
#ifdef XWFEATURE_BLUETOOTH
|
2019-03-09 06:32:52 +01:00
|
|
|
# define XW_BT_NAME "CrossWords"
|
2012-02-28 05:30:48 +01:00
|
|
|
#endif
|
2007-11-03 23:04:06 +01:00
|
|
|
|
2007-11-19 00:43:27 +01:00
|
|
|
#ifdef COMMS_HEARTBEAT
|
|
|
|
# define IF_CH(a) a,
|
|
|
|
#else
|
|
|
|
# define IF_CH(a)
|
|
|
|
#endif
|
|
|
|
|
2022-09-06 21:16:29 +02:00
|
|
|
#ifdef XWFEATURE_COMMS_INVITE
|
|
|
|
typedef XP_S16 (*TransportSendInvt)( XWEnv xwe, const NetLaunchInfo* nli,
|
2023-01-25 02:11:05 +01:00
|
|
|
XP_U32 createdStamp, const CommsAddrRec* addr,
|
|
|
|
CommsConnType conType, void* closure );
|
2022-09-06 21:16:29 +02:00
|
|
|
#endif
|
2023-03-18 03:21:57 +01:00
|
|
|
|
2023-03-18 23:31:20 +01:00
|
|
|
typedef XP_S16 (*TransportSendMsgs)( XWEnv xwe, const SendMsgsPacket* const msgs,
|
|
|
|
XP_U16 streamVersion, const CommsAddrRec* addr,
|
2023-03-18 03:21:57 +01:00
|
|
|
CommsConnType conType, XP_U32 gameID,
|
|
|
|
void* closure );
|
2022-09-06 21:16:29 +02:00
|
|
|
|
2009-09-12 23:39:13 +02:00
|
|
|
#ifdef COMMS_HEARTBEAT
|
2020-04-26 02:47:07 +02:00
|
|
|
typedef void (*TransportReset)( XWEnv xwe, void* closure );
|
2009-09-12 23:39:13 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef XWFEATURE_RELAY
|
2020-04-26 02:47:07 +02:00
|
|
|
typedef void (*RelayStatusProc)( XWEnv xwe, void* closure, CommsRelayState newState );
|
|
|
|
typedef void (*RelayConndProc)( XWEnv xwe, void* closure, XP_UCHAR* const room,
|
2011-05-19 14:51:00 +02:00
|
|
|
XP_Bool reconnect,
|
2010-10-29 15:31:33 +02:00
|
|
|
XP_U16 devOrder, /* 1 means created room, etc. */
|
2011-05-19 14:51:00 +02:00
|
|
|
XP_Bool allHere, XP_U16 nMissing );
|
2020-04-26 02:47:07 +02:00
|
|
|
typedef void (*RelayErrorProc)( XWEnv xwe, void* closure, XWREASON relayErr );
|
|
|
|
typedef XP_Bool (*RelayNoConnProc)( XWEnv xwe, const XP_U8* buf, XP_U16 len,
|
2015-09-30 15:50:04 +02:00
|
|
|
const XP_UCHAR* msgNo,
|
2011-08-11 03:28:34 +02:00
|
|
|
const XP_UCHAR* relayID, void* closure );
|
2017-11-11 06:34:02 +01:00
|
|
|
# ifdef RELAY_VIA_HTTP
|
2020-04-26 02:47:07 +02:00
|
|
|
typedef void (*RelayRequestJoinProc)( XWEnv xwe, void* closure, const XP_UCHAR* devID,
|
2017-11-11 06:34:02 +01:00
|
|
|
const XP_UCHAR* room, XP_U16 nPlayersHere,
|
|
|
|
XP_U16 nPlayersTotal, XP_U16 seed,
|
|
|
|
XP_U16 lang );
|
|
|
|
# endif
|
2009-09-12 23:39:13 +02:00
|
|
|
#endif
|
|
|
|
|
2023-11-06 20:20:00 +01:00
|
|
|
typedef void (*MsgCountChange)( XWEnv xwe, void* closure, XP_U16 msgCount,
|
|
|
|
XP_Bool quashed );
|
2020-08-25 23:47:56 +02:00
|
|
|
typedef void (*RoleChangeProc)( XWEnv xwe, void* closure, XP_Bool amNowGuest );
|
2019-12-10 23:42:54 +01:00
|
|
|
|
2011-08-17 04:36:23 +02:00
|
|
|
typedef enum {
|
|
|
|
COMMS_XPORT_FLAGS_NONE = 0
|
|
|
|
,COMMS_XPORT_FLAGS_HASNOCONN = 1
|
|
|
|
} CommsTransportFlags;
|
|
|
|
|
|
|
|
#ifdef COMMS_XPORT_FLAGSPROC
|
2020-04-26 02:47:07 +02:00
|
|
|
typedef XP_U32 (*FlagsProc)( XWEnv xwe, void* closure );
|
2011-08-17 04:36:23 +02:00
|
|
|
#endif
|
|
|
|
|
2009-09-12 23:39:13 +02:00
|
|
|
typedef struct _TransportProcs {
|
2011-08-17 04:36:23 +02:00
|
|
|
# ifdef COMMS_XPORT_FLAGSPROC
|
|
|
|
FlagsProc getFlags;
|
|
|
|
#else
|
|
|
|
XP_U32 flags;
|
|
|
|
#endif
|
2023-03-18 03:21:57 +01:00
|
|
|
TransportSendMsgs sendMsgs;
|
2022-09-06 21:16:29 +02:00
|
|
|
#ifdef XWFEATURE_COMMS_INVITE
|
|
|
|
TransportSendInvt sendInvt;
|
|
|
|
#endif
|
2021-03-20 02:51:34 +01:00
|
|
|
MsgCountChange countChanged;
|
2009-09-12 23:39:13 +02:00
|
|
|
#ifdef COMMS_HEARTBEAT
|
|
|
|
TransportReset reset;
|
|
|
|
#endif
|
|
|
|
#ifdef XWFEATURE_RELAY
|
|
|
|
RelayStatusProc rstatus;
|
2009-12-14 05:03:17 +01:00
|
|
|
RelayConndProc rconnd;
|
2009-12-04 09:14:03 +01:00
|
|
|
RelayErrorProc rerror;
|
2011-08-11 03:28:34 +02:00
|
|
|
RelayNoConnProc sendNoConn;
|
2017-11-11 06:34:02 +01:00
|
|
|
# ifdef RELAY_VIA_HTTP
|
|
|
|
RelayRequestJoinProc requestJoin;
|
|
|
|
# endif
|
2009-09-12 23:39:13 +02:00
|
|
|
#endif
|
|
|
|
void* closure;
|
|
|
|
} TransportProcs;
|
2003-11-01 06:35:29 +01:00
|
|
|
|
2020-04-26 02:47:07 +02:00
|
|
|
CommsCtxt* comms_make( MPFORMAL XWEnv xwe, XW_UtilCtxt* util,
|
2022-05-14 16:10:48 +02:00
|
|
|
XP_Bool isServer,
|
2022-09-04 03:47:04 +02:00
|
|
|
const CommsAddrRec* selfAddr,
|
|
|
|
const CommsAddrRec* hostAddr,
|
2023-12-04 18:31:11 +01:00
|
|
|
const TransportProcs* procs,
|
2022-05-14 16:10:48 +02:00
|
|
|
#ifdef XWFEATURE_RELAY
|
2005-10-02 17:39:38 +02:00
|
|
|
XP_U16 nPlayersHere, XP_U16 nPlayersTotal,
|
2020-08-25 23:47:56 +02:00
|
|
|
RoleChangeProc rcp, void* rcClosure,
|
2023-12-04 18:31:11 +01:00
|
|
|
#endif
|
2024-01-04 02:40:43 +01:00
|
|
|
XP_U16 forceChannel );
|
2003-11-01 06:35:29 +01:00
|
|
|
|
2020-04-26 02:47:07 +02:00
|
|
|
void comms_resetSame( CommsCtxt* comms, XWEnv xwe );
|
2009-02-01 16:50:58 +01:00
|
|
|
|
2020-04-26 20:28:18 +02:00
|
|
|
void comms_destroy( CommsCtxt* comms, XWEnv xwe );
|
2003-11-01 06:35:29 +01:00
|
|
|
|
2023-02-05 17:59:37 +01:00
|
|
|
void comms_setConnID( CommsCtxt* comms, XP_U32 connID, XP_U16 streamVersion );
|
2003-11-01 06:35:29 +01:00
|
|
|
|
2022-09-04 04:14:40 +02:00
|
|
|
void comms_getSelfAddr( const CommsCtxt* comms, CommsAddrRec* selfAddr );
|
2022-09-07 03:21:53 +02:00
|
|
|
XP_Bool comms_getHostAddr( const CommsCtxt* comms, CommsAddrRec* hostAddr );
|
2020-08-23 01:02:31 +02:00
|
|
|
void comms_addMQTTDevID( CommsCtxt* comms, XP_PlayerAddr channelNo,
|
|
|
|
const MQTTDevID* devID );
|
|
|
|
|
2023-02-04 07:00:47 +01:00
|
|
|
void comms_getAddrs( const CommsCtxt* comms, CommsAddrRec addr[],
|
|
|
|
XP_U16* nRecs );
|
2015-07-07 05:28:16 +02:00
|
|
|
XP_Bool comms_formatRelayID( const CommsCtxt* comms, XP_U16 indx,
|
|
|
|
XP_UCHAR* buf, XP_U16* lenp );
|
|
|
|
|
2023-11-06 21:51:10 +01:00
|
|
|
XP_U16 comms_countPendingPackets( const CommsCtxt* comms, XP_Bool* quashed );
|
2014-03-01 03:59:12 +01:00
|
|
|
|
2005-03-19 22:46:51 +01:00
|
|
|
|
2010-08-22 21:16:57 +02:00
|
|
|
#ifdef XWFEATURE_RELAY
|
2010-10-11 15:20:30 +02:00
|
|
|
XP_Bool comms_getRelayID( const CommsCtxt* comms, XP_UCHAR* buf, XP_U16* len );
|
2010-08-22 21:16:57 +02:00
|
|
|
#endif
|
|
|
|
|
2014-10-15 16:26:18 +02:00
|
|
|
CommsConnTypes comms_getConTypes( const CommsCtxt* comms );
|
2020-03-15 02:52:28 +01:00
|
|
|
void comms_dropHostAddr( CommsCtxt* comms, CommsConnType typ );
|
2023-12-05 17:43:22 +01:00
|
|
|
XP_Bool comms_getIsHost( const CommsCtxt* comms );
|
2005-06-27 07:45:28 +02:00
|
|
|
|
2020-04-26 02:47:07 +02:00
|
|
|
CommsCtxt* comms_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream,
|
2020-08-26 04:38:35 +02:00
|
|
|
XW_UtilCtxt* util, XP_Bool isServer,
|
2014-12-29 16:39:28 +01:00
|
|
|
const TransportProcs* procs,
|
2023-12-04 18:31:11 +01:00
|
|
|
#ifdef XWFEATURE_RELAY
|
2020-08-25 23:47:56 +02:00
|
|
|
RoleChangeProc rcp, void* rcClosure,
|
2023-12-04 18:31:11 +01:00
|
|
|
#endif
|
2014-12-29 16:39:28 +01:00
|
|
|
XP_U16 forceChannel );
|
2020-04-26 02:47:07 +02:00
|
|
|
void comms_start( CommsCtxt* comms, XWEnv xwe );
|
2022-05-14 16:10:48 +02:00
|
|
|
void comms_stop( CommsCtxt* comms
|
|
|
|
#ifdef XWFEATURE_RELAY
|
|
|
|
, XWEnv xwe
|
|
|
|
#endif
|
|
|
|
);
|
2023-02-04 07:00:47 +01:00
|
|
|
void comms_writeToStream( CommsCtxt* comms, XWStreamCtxt* stream,
|
2012-09-10 16:31:45 +02:00
|
|
|
XP_U16 saveToken );
|
2020-04-26 02:47:07 +02:00
|
|
|
void comms_saveSucceeded( CommsCtxt* comms, XWEnv xwe, XP_U16 saveToken );
|
2003-11-01 06:35:29 +01:00
|
|
|
|
2014-11-03 02:24:37 +01:00
|
|
|
void addrFromStream( CommsAddrRec* addr, XWStreamCtxt* stream );
|
|
|
|
void addrToStream( XWStreamCtxt* stream, const CommsAddrRec* addr );
|
2022-09-06 21:16:29 +02:00
|
|
|
#ifdef XWFEATURE_COMMS_INVITE
|
|
|
|
void comms_invite( CommsCtxt* comms, XWEnv xwe, const NetLaunchInfo* nli,
|
2023-01-30 21:02:46 +01:00
|
|
|
const CommsAddrRec* destAddr, XP_Bool sendNow );
|
2023-02-01 20:59:05 +01:00
|
|
|
void comms_getInvited( const CommsCtxt* comms, XP_U16* nInvites );
|
2022-09-06 21:16:29 +02:00
|
|
|
#endif
|
2020-04-26 02:47:07 +02:00
|
|
|
XP_S16 comms_send( CommsCtxt* comms, XWEnv xwe, XWStreamCtxt* stream );
|
|
|
|
XP_S16 comms_resendAll( CommsCtxt* comms, XWEnv xwe, CommsConnType filter,
|
|
|
|
XP_Bool force );
|
2019-11-18 18:26:46 +01:00
|
|
|
|
2010-11-09 02:22:38 +01:00
|
|
|
XP_U16 comms_getChannelSeed( CommsCtxt* comms );
|
2023-02-17 06:36:46 +01:00
|
|
|
void comms_getChannelAddr( const CommsCtxt* comms, XP_PlayerAddr channelNo,
|
|
|
|
CommsAddrRec* addr );
|
2023-12-19 02:08:51 +01:00
|
|
|
XP_Bool comms_addrsAreSame( const CommsCtxt* comms, const CommsAddrRec* addr1,
|
|
|
|
const CommsAddrRec* addr2 );
|
2003-11-01 06:35:29 +01:00
|
|
|
|
2012-04-14 05:21:59 +02:00
|
|
|
#ifdef XWFEATURE_COMMSACK
|
2020-04-26 02:47:07 +02:00
|
|
|
void comms_ackAny( CommsCtxt* comms, XWEnv xwe );
|
2012-04-14 05:21:59 +02:00
|
|
|
#endif
|
2003-11-01 06:35:29 +01:00
|
|
|
|
2015-02-07 22:24:09 +01:00
|
|
|
typedef struct _CommsMsgState {
|
|
|
|
struct AddressRecord* rec;
|
2019-11-03 09:35:56 +01:00
|
|
|
XP_U32 msgID;
|
|
|
|
XP_PlayerAddr channelNo;
|
2021-03-16 00:58:17 +01:00
|
|
|
XP_U16 len;
|
2015-02-08 19:37:54 +01:00
|
|
|
#ifdef DEBUG
|
|
|
|
const CommsCtxt* comms;
|
|
|
|
#endif
|
2021-03-16 00:58:17 +01:00
|
|
|
#ifdef COMMS_CHECKSUM
|
|
|
|
XP_UCHAR sum[36];
|
|
|
|
#endif
|
2015-02-07 22:24:09 +01:00
|
|
|
} CommsMsgState;
|
2003-11-01 06:35:29 +01:00
|
|
|
|
2020-04-26 02:47:07 +02:00
|
|
|
XP_Bool comms_checkIncomingStream( CommsCtxt* comms, XWEnv xwe,
|
|
|
|
XWStreamCtxt* stream,
|
2015-02-07 22:24:09 +01:00
|
|
|
const CommsAddrRec* addr,
|
|
|
|
CommsMsgState* state );
|
2020-04-26 02:47:07 +02:00
|
|
|
void comms_msgProcessed( CommsCtxt* comms, XWEnv xwe,
|
|
|
|
CommsMsgState* state, XP_Bool rejected );
|
2010-10-22 04:14:10 +02:00
|
|
|
XP_Bool comms_checkComplete( const CommsAddrRec* const addr );
|
|
|
|
|
|
|
|
XP_Bool comms_canChat( const CommsCtxt* comms );
|
2010-10-28 05:50:11 +02:00
|
|
|
XP_Bool comms_isConnected( const CommsCtxt* const comms );
|
2023-11-06 20:20:00 +01:00
|
|
|
XP_Bool comms_setQuashed( CommsCtxt* comms, XWEnv xwe, XP_Bool quashed );
|
2009-09-05 15:08:46 +02:00
|
|
|
|
2017-11-11 06:34:02 +01:00
|
|
|
#ifdef RELAY_VIA_HTTP
|
|
|
|
void comms_gameJoined( CommsCtxt* comms, const XP_UCHAR* connname, XWHostID hid );
|
|
|
|
#endif
|
|
|
|
|
2020-09-25 19:17:47 +02:00
|
|
|
XP_Bool augmentAddr( CommsAddrRec* addr, const CommsAddrRec* newer,
|
|
|
|
XP_Bool isNewer );
|
2020-09-25 01:37:50 +02:00
|
|
|
|
2023-12-19 02:08:51 +01:00
|
|
|
XP_Bool addr_isEmpty( const CommsAddrRec* addr );
|
2014-09-26 05:05:37 +02:00
|
|
|
CommsConnType addr_getType( const CommsAddrRec* addr );
|
|
|
|
void addr_setType( CommsAddrRec* addr, CommsConnType type );
|
2014-10-15 16:26:18 +02:00
|
|
|
void addr_addType( CommsAddrRec* addr, CommsConnType type );
|
2014-10-28 16:03:19 +01:00
|
|
|
void addr_rmType( CommsAddrRec* addr, CommsConnType type );
|
2014-10-15 16:26:18 +02:00
|
|
|
XP_Bool addr_hasType( const CommsAddrRec* addr, CommsConnType type );
|
|
|
|
XP_Bool addr_iter( const CommsAddrRec* addr, CommsConnType* typp,
|
|
|
|
XP_U32* state );
|
2022-09-04 03:47:04 +02:00
|
|
|
void types_addType( XP_U16* conTypes, CommsConnType type );
|
|
|
|
void types_rmType( XP_U16* conTypes, CommsConnType type );
|
|
|
|
XP_Bool types_hasType( XP_U16 conTypes, CommsConnType type );
|
2015-07-01 16:10:45 +02:00
|
|
|
XP_Bool types_iter( XP_U32 conTypes, CommsConnType* typp, XP_U32* state );
|
2014-09-26 05:05:37 +02:00
|
|
|
|
2021-03-19 21:03:39 +01:00
|
|
|
#ifdef XWFEATURE_KNOWNPLAYERS
|
|
|
|
void comms_gatherPlayers( CommsCtxt* comms, XWEnv xwe, XP_U32 created );
|
|
|
|
#endif
|
|
|
|
|
|
|
|
const char* ConnType2Str( CommsConnType typ );
|
|
|
|
|
2003-11-01 06:35:29 +01:00
|
|
|
# ifdef DEBUG
|
2022-12-27 04:24:39 +01:00
|
|
|
void comms_getStats( const CommsCtxt* comms, XWStreamCtxt* stream );
|
2009-09-12 23:39:13 +02:00
|
|
|
const char* CommsRelayState2Str( CommsRelayState state );
|
2010-11-19 07:27:06 +01:00
|
|
|
const char* XWREASON2Str( XWREASON reason );
|
2014-11-06 15:35:28 +01:00
|
|
|
|
|
|
|
void comms_setAddrDisabled( CommsCtxt* comms, CommsConnType typ,
|
|
|
|
XP_Bool send, XP_Bool enabled );
|
|
|
|
XP_Bool comms_getAddrDisabled( const CommsCtxt* comms, CommsConnType typ,
|
|
|
|
XP_Bool send );
|
2023-12-19 02:08:51 +01:00
|
|
|
void logAddr( XW_DUtilCtxt* dutil, const CommsAddrRec* addr,
|
2023-02-17 06:36:46 +01:00
|
|
|
const char* caller );
|
2020-09-21 20:31:49 +02:00
|
|
|
|
2014-11-06 15:35:28 +01:00
|
|
|
# else
|
2015-02-07 21:54:46 +01:00
|
|
|
# define comms_setAddrDisabled( comms, typ, send, enabled )
|
2014-11-06 15:35:28 +01:00
|
|
|
# define comms_getAddrDisabled( comms, typ, send ) XP_FALSE
|
2003-11-01 06:35:29 +01:00
|
|
|
# endif
|
|
|
|
|
2005-01-31 04:31:50 +01:00
|
|
|
EXTERN_C_END
|
|
|
|
|
2003-11-01 06:35:29 +01:00
|
|
|
#endif /* _COMMS_H_ */
|