/* begincopyright
  Copyright (c) 1988 Xerox Corporation. All rights reserved.
  Use and copying of this software and preparation of derivative works based
  upon this software are permitted. Any distribution of this software or
  derivative works must comply with all applicable United States export
  control laws. This software is made available AS IS, and Xerox Corporation
  makes no warranty about the software, its performance or its conformity to
  any specification. Any person obtaining a copy of this software is requested
  to send their name and post office or electronic mail address to:
    PCR Coordinator
    Xerox PARC
    3333 Coyote Hill Rd.
    Palo Alto, CA 94304
  endcopyright */

/*
 * RDTRuntime.h
 *
 * Runtime support for remote debug tool.
 *
 * Demers, February 16, 1990 9:19:50 am PST
 */

#ifndef ←RDT←RUNTIME←
#define ←RDT←RUNTIME←

#include <xr/XR←BasicTypes.h>
#include <cirio/CirioNubProtocol.h>
#include <cirio/CirioNubTypes.h>


/*
 * Messages
 */

extern void
RDT←Msg(/*
    char *fmt,
    int x1, x2, x3, x4, x5
*/);

extern void RDT←DBMsg(/*
    char *fmt,
    int x1, x2, x3, x4, x5
*/);

/*
 * Marshalling stuff
 */



/*
 * Send data with type info
 */



extern CirioNubRetCode
RDT←PutRetCode(/* CirioNubRetCode c */);

extern CirioNubRetCode
RDT←PutProcID(/* unsigned id */);

extern CirioNubRetCode
RDT←PutCard32(/* unsigned n */);

extern CirioNubRetCode
RDT←PutInt32(/* int n */);




extern CirioNubRetCode
RDT←PutString(/* char *s */);

extern CirioNubRetCode
RDT←PutBlock8(/* char *b, int len */);

extern CirioNubRetCode
RDT←PutBlock16(/* short *b, int len */);

extern CirioNubRetCode
RDT←PutBlock32(/* long *b, int len */);



extern CirioNubRetCode
RDT←SendCall(/* unsigned procID */);

extern CirioNubRetCode
RDT←ReadReply(/*
    unsigned *buffer,
    unsigned bufferBytes,
    unsigned *argcPtr
*/);


extern CirioNubRetCode
RDT←Connect(/* char *hostName, unsigned defaultPort */);

extern CirioNubRetCode
RDT←Disconnect(/* bool doAbort */);

#endif /* ←RDT←RUNTIME← */