blob: d4a471e02f188e2aff0281e0a674cfcc88d3df87 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{
This file is part of the Free Pascal run time library.
Copyright (c) 2004 Karoly Balogh
get9.library interface unit for MorphOS/PowerPC
Free Pascal MorphOS port was done on a free Pegasos II/G4 machine
provided by Genesi S.a.r.l. <www.genesi.lu>
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program 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.
**********************************************************************}
unit get9;
interface
uses exec;
var
Get9Base: Pointer;
const
GET9NAME : PChar = 'get9.library';
procedure DNetCheck(force: boolean);
SysCall BaseSysV Get9Base 28;
function InitGet9Library : boolean;
implementation
var
Get9_exit : Pointer;
const
LIBVERSION=1;
procedure CloseGet9Library;
begin
ExitProc := Get9_exit;
if Get9Base <> nil then begin
CloseLibrary(PLibrary(Get9Base));
Get9Base := nil;
end;
end;
function InitGet9Library : boolean;
begin
Get9Base := nil;
Get9Base := OpenLibrary(GET9NAME,LIBVERSION);
if Get9Base <> nil then begin
Get9_exit := ExitProc;
ExitProc := @CloseGet9Library;
InitGet9Library:=True;
end else begin
InitGet9Library:=False;
end;
end;
begin
end.
|