put back functions that never should have been removed.

This commit is contained in:
ehouse 2005-06-27 05:45:28 +00:00
parent f3ae66850a
commit d29698c1b0
4 changed files with 34 additions and 3 deletions

View file

@ -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;

View file

@ -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 );

View file

@ -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

View file

@ -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 );