-- Copyright (C) 1986 by Xerox Corporation.  All rights reserved.
-- Stub file  was translated on June 25, 1986 10:04:37 am PDT by Lupine of February 22, 1986 5:15:54 pm PST
-- Source interface VoiceTemp came from file VoiceTemp.bcd, which was created on June 25, 1986 10:04:23 am PDT with version stamp 332#245#31477705223 from source of June 25, 1986 10:03:13 am PDT.

-- The RPC stub modules for VoiceTemp are:
--   VoiceTempRpcControl.mesa;
--   VoiceTempRpcClientImpl.mesa;
--   VoiceTempRpcBinderImpl.mesa;
--   VoiceTempRpcServerImpl.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
  VoiceTemp,
  VoiceTempRpcControl USING [ImportInterface, InterfaceRecord, InterfaceRecordObject],
  RPC USING [InterfaceName, Zones],
  RPCLupineExtras --USING SOME OF [ImportInterfaceWithHost, noHost,
      -- RPCHost]--;


VoiceTempRpcBinderImpl: MONITOR
  IMPORTS RpcControl: VoiceTempRpcControl, RpcPrivateExtras: RPCLupineExtras
  EXPORTS VoiceTempRpcControl
  SHARES  VoiceTemp, VoiceTempRpcControl
  = BEGIN OPEN RpcPublic: RPC;


-- Dynamic instantiation and binding routines.

  ImportNewInterface: PUBLIC SAFE PROCEDURE [
        interfaceName: RpcPublic.InterfaceName,
        parameterStorage: RpcPublic.Zones,
        hostHint: RpcPrivateExtras.RPCHost←RpcPrivateExtras.noHost
            ]
      RETURNS [interfaceRecord: RpcControl.InterfaceRecord] =
    TRUSTED BEGIN
    interfaceRecord ← NewInterfaceRecord[];
    RpcControl.ImportInterface[
        interface: interfaceRecord,
        interfaceName: interfaceName,
        hostHint: hostHint,
        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.  -- VoiceTempRpcBinderImpl.