-- Copyright (C) 1985 by Xerox Corporation.  All rights reserved.
-- Stub file  was translated on May 2, 1985 4:16:19 pm PDT by Lupine of March 15, 1985 2:49:13 pm PST
-- Source interface ComputeServerDebugger came from file ComputeServerDebugger.bcd, which was created on May 2, 1985 4:16:15 pm PDT with version stamp 37#164#6434657572 from source of October 3, 1984 11:19:36 am PDT.

-- The RPC stub modules for ComputeServerDebugger are:
--   ComputeServerDebuggerRpcControl.mesa;
--   ComputeServerDebuggerRpcClientImpl.mesa;
--   ComputeServerDebuggerRpcBinderImpl.mesa;
--   ComputeServerDebuggerRpcServerImpl.mesa.

-- The parameters for this translation are:
--   Target language = Cedar
--   Default parameter passing = VALUE
--   Deallocate server heap arguments = TRUE
--   Inline RpcServerImpl dispatcher stubs = TRUE
--   Declare signals = TRUE
--   Warn about short POINTER ("MDS") allocations = TRUE
--   Maximum number of dynamic heap NEWs = 50, MDS NEWs = 50
--   Acceptable parameter protocols = VersionRange[1..1].

-- NOTE: Discard this module unless you use dynamic client binding.


DIRECTORY
  ComputeServerDebugger,
  ComputeServerDebuggerRpcControl USING [ImportInterface, InterfaceRecord,
      InterfaceRecordObject],
  RPC USING [InterfaceName, Zones];


ComputeServerDebuggerRpcBinderImpl: MONITOR
  IMPORTS RpcControl: ComputeServerDebuggerRpcControl
  EXPORTS ComputeServerDebuggerRpcControl
  SHARES  ComputeServerDebugger, ComputeServerDebuggerRpcControl
  = BEGIN OPEN RpcPublic: RPC;


-- Dynamic instantiation and binding routines.

  ImportNewInterface: PUBLIC SAFE PROCEDURE [
        interfaceName: RpcPublic.InterfaceName,
        parameterStorage: RpcPublic.Zones ]
      RETURNS [interfaceRecord: RpcControl.InterfaceRecord] =
    TRUSTED BEGIN
    interfaceRecord ← NewInterfaceRecord[];
    RpcControl.ImportInterface[
        interface: interfaceRecord,
        interfaceName: interfaceName,
        parameterStorage: parameterStorage];
    END;



-- Utility routines for interface instantiation and caching.

  NewInterfaceRecord: PUBLIC SAFE PROCEDURE
    RETURNS [interfaceRecord: RpcControl.InterfaceRecord] =
    TRUSTED BEGIN
    interfaceRecord ← NEW[RpcControl.InterfaceRecordObject];
    END;

-- No module initialization.


END.  -- ComputeServerDebuggerRpcBinderImpl.