mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
put back functions that never should have been removed.
This commit is contained in:
parent
f3ae66850a
commit
d29698c1b0
4 changed files with 34 additions and 3 deletions
|
@ -418,7 +418,7 @@ comms_writeToStream( CommsCtxt* comms, XWStreamCtxt* stream )
|
|||
#endif
|
||||
} /* comms_writeToStream */
|
||||
|
||||
static void
|
||||
void
|
||||
comms_getAddr( CommsCtxt* comms, CommsAddrRec* addr )
|
||||
{
|
||||
XP_ASSERT( !!comms );
|
||||
|
@ -437,7 +437,23 @@ comms_setAddr( CommsCtxt* comms, CommsAddrRec* addr )
|
|||
relayConnect( comms );
|
||||
} /* comms_setAddr */
|
||||
|
||||
static CommsConnType
|
||||
#ifdef BEYOND_IR
|
||||
void
|
||||
comms_getInitialAddr( CommsAddrRec* addr )
|
||||
{
|
||||
/* default values; default is still IR where there's a choice */
|
||||
addr->conType = COMMS_CONN_RELAY;
|
||||
addr->u.ip_relay.ipAddr = 0L; /* force 'em to set it */
|
||||
addr->u.ip_relay.port = 10999;
|
||||
{
|
||||
char* name = "eehouse.org";
|
||||
XP_MEMCPY( addr->u.ip_relay.hostName, name, XP_STRLEN(name)+1 );
|
||||
}
|
||||
addr->u.ip_relay.cookie[0] = '\0';
|
||||
} /* comms_getInitialAddr */
|
||||
#endif
|
||||
|
||||
CommsConnType
|
||||
comms_getConType( CommsCtxt* comms )
|
||||
{
|
||||
return comms->addr.conType;
|
||||
|
|
|
@ -85,8 +85,11 @@ void comms_setAddr( CommsCtxt* comms, CommsAddrRec* addr );
|
|||
|
||||
/* "static" method provides default when no comms present */
|
||||
void comms_getInitialAddr( CommsAddrRec* addr );
|
||||
void comms_getAddr( CommsCtxt* comms, CommsAddrRec* addr );
|
||||
void comms_setAddr( CommsCtxt* comms, CommsAddrRec* addr );
|
||||
|
||||
CommsConnType comms_getConType( CommsCtxt* comms );
|
||||
|
||||
CommsCtxt* comms_makeFromStream( MPFORMAL XWStreamCtxt* stream,
|
||||
XW_UtilCtxt* util, TransportSend sendproc,
|
||||
void* closure );
|
||||
|
|
|
@ -114,6 +114,18 @@ disOrEnable( FormPtr form, UInt16 id, Boolean enable )
|
|||
}
|
||||
} /* disOrEnable */
|
||||
|
||||
void
|
||||
disOrEnableSet( FormPtr form, const UInt16* ids, Boolean enable )
|
||||
{
|
||||
for ( ; ; ) {
|
||||
XP_U16 id = *ids++;
|
||||
if ( !id ) {
|
||||
break;
|
||||
}
|
||||
disOrEnable( form, id, enable );
|
||||
}
|
||||
} /* disOrEnableSet */
|
||||
|
||||
/* Position a control at the horizontal center of its container.
|
||||
*/
|
||||
void
|
||||
|
|
|
@ -64,7 +64,7 @@ void freeListData( MPFORMAL ListData* ld );
|
|||
|
||||
/* this should work on either trigger or selector */
|
||||
void setSelectorFromList( UInt16 selectorID, ListPtr list,
|
||||
short listSelIndex );
|
||||
short listSelIndex );
|
||||
|
||||
void sizeGadgetsForStrings( FormPtr form, ListPtr list, XP_U16 firstGadgetID );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue