USAGE ULTRA CEE DOOR
As you suspect the UCDoor.lib is for use with Code option Parms=STACK,
UCDoorR.lib is Code option Parms=REGISTER. Whichever you prefer.
Just add it : fe. sc myprogram.c lib:ucdoor.lib
Set up your program as follows:
#include "UCDoor.h"
struct Task *thisTask;
MDDOOR *ucd_msg;
struct MsgPort *DoorControl;
struct MsgPort *DoorReply;
BOOL is_carrierLost;
int udc_result;
void cd_Door(int node)
{
/* your door code */
/* check regurarly */
if(cd_CarrierLost())
cd_End();
}
void main(int argc,char *argv[])
{
cd_Main(argv[1]);
if(udc_result != OK)
{
/* whatever action is needed */
/* ERROR_MESSAGE -> Couldn't allocate message
ERROR_CONTROLPORT -> Couldn't find MAX's port
ERROR_REPLYPORT -> Couldn't create door port
ERROR_CARRIERLOST -> Transm. ended
*/
}
}
That's it !
(C)1997 Blue Heaven Software.