--------------------------- ----------------------------------------------------- -- -- -- OCARINA COMPONENTS -- -- -- -- OCARINA.BUILDER.COMPONENTS.SUBPROGRAM_CALLS -- -- -- -- S p e c -- -- -- -- Copyright (C) 2005-2006, GET-Telecom Paris. -- -- -- -- Ocarina is free software; you can redistribute it and/or modify -- -- it under terms of the GNU General Public License as published by the -- -- Free Software Foundation; either version 2, or (at your option) any -- -- later version. Ocarina is distributed in the hope that it will be -- -- useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -- -- MERCHANTABILITY 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 Ocarina; see file COPYING. -- -- If not, write to the Free Software Foundation, 51 Franklin Street, Fifth -- -- Floor, Boston, MA 02111-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, -- -- this unit does not by itself cause the resulting executable to be -- -- covered by the GNU General Public License. This exception does not -- -- however invalidate any other reasons why the executable file might be -- -- covered by the GNU Public License. -- -- -- -- Ocarina is maintained by the Ocarina team -- -- (ocarina-users@listes.enst.fr) -- -- -- ------------------------------------------------------------------------------ package Ocarina.Builder.Components.Subprogram_Calls is function Add_Property_Association (Subprogram_Call : node_id; Property_Association : node_id) return Boolean; -- Add a property association to the subprogram -- call. Subprogram_Call must reference a subprogram call (not a -- call sequence). Property_Association references the property -- association. Return True if everything went right, else False. function Add_Subprogram_Call (Call_Sequence : node_id; Subprogram_Call : node_id) return Boolean; -- Add a subprogram call to the subprogram call -- sequence. Subprogram_Call must reference a subprogram call (not -- a call sequence). Call_Sequence references the subprogram call -- sequence. Return True if everything went right, else False. function Add_New_Subprogram_Call (Loc : location; Name : node_id; Call_Sequence : node_id) return node_id; -- Create and add a new subprogram call into a subprogram call -- sequence. Loc is the location of the call sequence in the -- parsed text. Name references an identifier which contains the -- name of the subprogram call. Call_Sequence references the -- subprogram call sequence that contains the subprogram call. -- The function return the Node_Id of the newly created subprogram -- call if everything went right, else No_Node. function Add_New_Subprogram_Call_Sequence (Loc : location; Name : node_id; Comp_Impl : node_id; In_Modes : node_id := No_Node) return node_id; -- Create and add a new subprogram call sequence into a component -- implementation. Loc is the location of the call sequence in the -- parsed text. Name references an identifier which contains the -- name of the call sequence, if any. Comp_Impl references the -- component implementation. In_Modes contains the list of the -- modes associated to the connection. Name can be No_Node, if the -- sequence is not nammed. Subprogram calls Return the Node_Id of -- the newly created call sequence if everything went right, else -- No_Node. end Ocarina.Builder.Components.Subprogram_Calls;