-- Copyright (C) 1987 by Xerox Corporation.  All rights reserved.
-- Stub file  was translated on April 4, 1987 3:33:12 pm PST by Lupine of January 22, 1987 5:37:32 pm PST
-- Source interface LarkOps came from file LarkOps.bcd, which was created on April 4, 1987 3:32:55 pm PST with version stamp 173#11#3433762513 from source of November 24, 1986 7:59:29 pm PST.

-- The RPC stub modules for LarkOps are:
--   LarkOpsRpcControl.mesa;
--   LarkOpsRpcClientImpl.mesa;
--   LarkOpsRpcBinderImpl.mesa;
--   LarkOpsRpcServerImpl.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
  LarkOps,
  LarkOpsRpcControl USING [ImportInterface, InterfaceRecord, InterfaceRecordObject],
  RPC USING [InterfaceName, Zones],
  RPCLupine --USING SOME OF [ImportInterfaceWithHost, noHost, RPCHost]--;


LarkOpsRpcBinderImpl: MONITOR
  IMPORTS RpcControl: LarkOpsRpcControl, RpcPrivate: RPCLupine
  EXPORTS LarkOpsRpcControl
  SHARES  LarkOps, LarkOpsRpcControl
  = BEGIN OPEN RpcPublic: RPC;


-- Dynamic instantiation and binding routines.

  ImportNewInterface: PUBLIC SAFE PROCEDURE [
        interfaceName: RpcPublic.InterfaceName,
        parameterStorage: RpcPublic.Zones,
        hostHint: RpcPrivate.RPCHost←RpcPrivate.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.  -- LarkOpsRpcBinderImpl.