source: rtems/c/src/ada/rtems-extension.adb @ 1987020

4.115
Last change on this file since 1987020 was 1987020, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 16, 2011 at 3:52:29 PM

2011-02-16 Joel Sherrill <joel.sherrill@…>

  • ada/Makefile.am, ada/preinstall.am, ada/rtems.adb, ada/rtems.ads: Split RTEMS Ada95 binding into a master package and a child package per Manager. This is better Ada style.
  • ada/rtems-barrier.adb, ada/rtems-barrier.ads, ada/rtems-clock.adb, ada/rtems-clock.ads, ada/rtems-cpu_usage.ads, ada/rtems-debug.adb, ada/rtems-debug.ads, ada/rtems-event.adb, ada/rtems-event.ads, ada/rtems-extension.adb, ada/rtems-extension.ads, ada/rtems-fatal.adb, ada/rtems-fatal.ads, ada/rtems-interrupt.ads, ada/rtems-io.adb, ada/rtems-io.ads, ada/rtems-message_queue.adb, ada/rtems-message_queue.ads, ada/rtems-object.adb, ada/rtems-object.ads, ada/rtems-partition.adb, ada/rtems-partition.ads, ada/rtems-port.adb, ada/rtems-port.ads, ada/rtems-rate_monotonic.adb, ada/rtems-rate_monotonic.ads, ada/rtems-region.adb, ada/rtems-region.ads, ada/rtems-semaphore.adb, ada/rtems-semaphore.ads, ada/rtems-signal.adb, ada/rtems-signal.ads, ada/rtems-stack_checker.ads, ada/rtems-tasks.adb, ada/rtems-tasks.ads, ada/rtems-timer.adb, ada/rtems-timer.ads: New files.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1--
2--  RTEMS / Body
3--
4--  DESCRIPTION:
5--
6--  This package provides the interface to the RTEMS API.
7--
8--
9--  DEPENDENCIES:
10--
11--
12--
13--  COPYRIGHT (c) 1997-2011.
14--  On-Line Applications Research Corporation (OAR).
15--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.com/license/LICENSE.
19--
20--  $Id$
21--
22
23package body RTEMS.Extension is
24
25   --
26   -- Extension Manager
27   --
28
29   procedure Create
30     (Name   : in RTEMS.Name;
31      Table  : in RTEMS.Extensions_Table_Pointer;
32      ID     : out RTEMS.ID;
33      Result : out RTEMS.Status_Codes)
34   is
35      function Create_Base
36        (Name  : RTEMS.Name;
37         Table : RTEMS.Extensions_Table_Pointer;
38         ID    : access RTEMS.ID)
39         return  RTEMS.Status_Codes;
40      pragma Import (C, Create_Base, "rtems_extension_create");
41      ID_Base : aliased RTEMS.ID;
42   begin
43
44      Result := Create_Base (Name, Table, ID_Base'Access);
45      ID     := ID_Base;
46
47   end Create;
48
49   procedure Ident
50     (Name   : in RTEMS.Name;
51      ID     : out RTEMS.ID;
52      Result : out RTEMS.Status_Codes)
53   is
54      function Ident_Base
55        (Name : RTEMS.Name;
56         ID   : access RTEMS.ID)
57         return RTEMS.Status_Codes;
58      pragma Import (C, Ident_Base, "rtems_extension_ident");
59      ID_Base : aliased RTEMS.ID;
60   begin
61
62      Result := Ident_Base (Name, ID_Base'Access);
63      ID     := ID_Base;
64
65   end Ident;
66
67   procedure Delete
68     (ID     : in RTEMS.ID;
69      Result : out RTEMS.Status_Codes)
70   is
71      function Delete_Base
72        (ID   : RTEMS.ID)
73         return RTEMS.Status_Codes;
74      pragma Import (C, Delete_Base, "rtems_extension_delete");
75   begin
76
77      Result := Delete_Base (ID);
78
79   end Delete;
80
81end RTEMS.Extension;
Note: See TracBrowser for help on using the repository browser.