ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/fbintf/FBClientLib.pas
Revision: 380
Committed: Mon Jan 10 10:13:17 2022 UTC (2 years, 10 months ago) by tony
Content type: text/x-pascal
File size: 2170 byte(s)
Log Message:
propset for eol-style

File Contents

# User Rev Content
1 tony 329 (*
2     * Firebird Interface (fbintf). The fbintf components provide a set of
3     * Pascal language bindings for the Firebird API. Although predominantly
4     * a new development they include source code taken from IBX and may be
5     * considered a derived product. This software thus also includes the copyright
6     * notice and license conditions from IBX.
7     *
8     * Except for those parts dervied from IBX, contents of this file are subject
9     * to the Initial Developer's Public License Version 1.0 (the "License"); you
10     * may not use this file except in compliance with the License. You may obtain a
11     * copy of the License here:
12     *
13     * http://www.firebirdsql.org/index.php?op=doc&id=idpl
14     *
15     * Software distributed under the License is distributed on an "AS
16     * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
17     * implied. See the License for the specific language governing rights
18     * and limitations under the License.
19     *
20     * The Initial Developer of the Original Code is Tony Whyman.
21     *
22     * The Original Code is (C) 2016 Tony Whyman, MWA Software
23     * (http://www.mwasoftware.co.uk).
24     *
25     * All Rights Reserved.
26     *
27     * Contributor(s): ______________________________________.
28     *
29     *)
30     unit FBClientLib;
31    
32     {$IFDEF MSWINDOWS}
33     {$DEFINE WINDOWS}
34     {$ENDIF}
35    
36     {$IFDEF FPC}
37     {$mode delphi}
38     {$codepage UTF8}
39     {$interfaces COM}
40     {$ENDIF}
41    
42     interface
43    
44     uses
45     Classes, SysUtils, Firebird;
46    
47     {IFBIMasterProvider may be coerced from an IFirebirdAPI when the Firebird 3 API
48     is provided and itself provides type safe access to the underlying Firebird
49     IMaster interface - see Firebird.pas}
50    
51     type
52     IFBIMasterProvider = interface
53     ['{c0202c92-5d2d-4130-b4df-427469aa42cf}']
54     {Firebird 3 API}
55     function GetIMasterIntf: Firebird.IMaster;
56     end;
57    
58     {Example Code:
59     var MasterProvider: IFBIMasterProvider;
60     begin
61     ..
62     if FirebirdAPI.HasMasterIntf and (FirebirdAPI.QueryInterface(IFBIMasterProvider,MasterProvider) = S_OK) then
63     with MasterProvider.GetIMaster.getConfigManager do
64     begin
65     writeln('Firebird Bin Directory = ', getDirectory(DIR_BIN));
66     writeln('Firebird Conf Directory = ', getDirectory(DIR_CONF));
67     ..
68     }
69    
70    
71    
72     implementation
73    
74     end.
75    

Properties

Name Value
svn:eol-style native