OSDN Git Service

2007-04-20 Ed Schonberg <schonberg@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ada / s-parint.ads
index e1dab33..07d7d7c 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                  S p e c                                 --
 --                                                                          --
---          Copyright (C) 1995-2004 Free Software Foundation, Inc.          --
+--          Copyright (C) 1995-2006, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNARL is free software; you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -16,8 +16,8 @@
 -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
 -- for  more details.  You should have  received  a copy of the GNU General --
 -- Public License  distributed with GNARL; see file COPYING.  If not, write --
--- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
--- MA 02111-1307, USA.                                                      --
+-- to  the  Free Software Foundation,  51  Franklin  Street,  Fifth  Floor, --
+-- Boston, MA 02110-1301, USA.                                              --
 --                                                                          --
 -- As a special exception,  if other files  instantiate  generics from this --
 -- unit, or you link  this unit with other files  to produce an executable, --
@@ -35,6 +35,7 @@
 --  an appropriate WITH, and the interface can be expected to remain stable.
 
 with Ada.Exceptions;
+with Ada.Streams;
 with Interfaces;
 with System.RPC;
 
@@ -89,6 +90,20 @@ package System.Partition_Interface is
    --  Do not change its definition or its layout without updating
    --  Exp_Dist.Build_Remote_Supbrogram_Proxy_Type.
 
+   --  The Request_Access type is used for communication between the PCS
+   --  and the RPC receiver generated by the compiler: it contains all the
+   --  necessary information for the receiver to process an incoming call.
+
+   type RST_Access is access all Ada.Streams.Root_Stream_Type'Class;
+   type Request_Access is record
+      Params : RST_Access;
+      --  A stream describing the called subprogram and its parameters
+
+      Result : RST_Access;
+      --  A stream where the result, raised exception, or out values,
+      --  are marshalled.
+   end record;
+
    procedure Check
      (Name    : Unit_Name;
       Version : String;
@@ -97,8 +112,8 @@ package System.Partition_Interface is
    --  unit has has the same version than the caller's one.
 
    function Same_Partition
-      (Left  : access RACW_Stub_Type;
-       Right : access RACW_Stub_Type) return Boolean;
+      (Left  : not null access RACW_Stub_Type;
+       Right : not null access RACW_Stub_Type) return Boolean;
    --  Determine whether Left and Right correspond to objects instantiated
    --  on the same partition, for enforcement of E.4(19).
 
@@ -131,9 +146,10 @@ package System.Partition_Interface is
    pragma No_Return (Raise_Program_Error_Unknown_Tag);
    --  Raise Program_Error with the same message as E one
 
+   type RPC_Receiver is access procedure (R : Request_Access);
    procedure Register_Receiving_Stub
      (Name          : Unit_Name;
-      Receiver      : RPC.RPC_Receiver;
+      Receiver      : RPC_Receiver;
       Version       : String := "";
       Subp_Info     : System.Address;
       Subp_Info_Len : Integer);
@@ -155,7 +171,10 @@ package System.Partition_Interface is
 
    generic
       RCI_Name : String;
+      Version  : String;
    package RCI_Locator is
+      pragma Unreferenced (Version);
+
       function Get_RCI_Package_Receiver return Interfaces.Unsigned_64;
       function Get_Active_Partition_ID return RPC.Partition_ID;
    end RCI_Locator;