File: server.ads

package info (click to toggle)
gnat-glade 3.14p-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,588 kB
  • ctags: 1,976
  • sloc: ada: 70,532; ansic: 5,258; sh: 2,321; makefile: 538
file content (35 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
with Types; use Types;
with Alarm; use Alarm;

package Server is

   pragma Remote_Call_Interface;

   type Terminal_Access is access all Terminal_Type'Class;

   procedure Register
     (Terminal : in Terminal_Access;
      Customer : in Customer_Type;
      Password : in Password_Type);

   function Balance
     (Customer : in Customer_Type;
      Password : in Password_Type)
      return Integer;

   procedure Deposit
     (Customer : in Customer_Type;
      Amount   : in Positive);

   procedure Withdraw
     (Customer : in Customer_Type;
      Password : in Password_Type;
      Amount   : in Positive);

   procedure Transfer
     (Donator  : in Customer_Type;
      Password : in Password_Type;
      Amount   : in Positive;
      Customer : in Customer_Type);

end Server;