-- Copyright (C) 1985 by Xerox Corporation.  All rights reserved.
-- Stub file  was translated on July 19, 1985 10:54:39 am PDT by Lupine of May 23, 1985 8:38:08 am PDT
-- Source interface AlpineVolume came from file AlpineVolume.bcd, which was created on July 19, 1985 10:53:57 am PDT with version stamp 353#112#10053000642 from source of March 7, 1985 2:24:55 pm PST.

-- The RPC stub modules for AlpineVolume are:
--   AlpineVolumeRpcControl.mesa;
--   AlpineVolumeRpcClientImpl.mesa;
--   AlpineVolumeRpcBinderImpl.mesa;
--   AlpineVolumeRpcServerImpl.mesa.

-- The parameters for this translation are:
--   Target language = Cedar
--   Default parameter passing = VALUE
--   Deallocate server heap arguments = TRUE
--   Inline RpcServerImpl dispatcher stubs = FALSE
--   Declare signals = FALSE
--   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
  AlpineVolume,
  AlpineVolumeRpcControl USING [ImportInterface, InterfaceRecord, InterfaceRecordObject],
  RPC USING [InterfaceName, Zones];


AlpineVolumeRpcBinderImpl: MONITOR
  IMPORTS AlpineVolume, RpcControl: AlpineVolumeRpcControl
  EXPORTS AlpineVolumeRpcControl
  SHARES  AlpineVolume, AlpineVolumeRpcControl
  = 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.  -- AlpineVolumeRpcBinderImpl.