4.2.39. GNATCOLL.Plugins

package GNATCOLL.Plugins is

   type Plugin is private;
   No_Plugin : constant Plugin;

   function Load (Path : String) return Plugin;
   --  Attempts to load the plugin located at Path.
   --  Returns No_Plugin if plugin not found.

   function Routine_Address
      (P : Plugin; Name : String) return System.Address;
   --  Returns address of the routine named Unit_Name defined in the plugin P.
   --  Returns Null_Address if such routine not found in the plugin.

   function Last_Error_Message return String;
   --  Returns last error message in case of Load or Routine_Address returned
   --  empty result.

   procedure Unload (P : in out Plugin);
   --  Remove the plugin from service. Note the actual effect is
   --  operating-system dependent.

end GNATCOLL.Plugins;