2002-05-29 Rodrigo Moya <rodrigo@ximian.com>
[mono.git] / mcs / class / System.Data / System.Data.OleDb / libgda.cs
1 //
2 // System.Data.OleDb.libgda
3 //
4 // Author:
5 //   Rodrigo Moya (rodrigo@ximian.com)
6 //
7 // Copyright (C) Rodrigo Moya, 2002
8 //
9
10 using System.Data;
11 using System.Data.Common;
12 using System.Runtime.InteropServices;
13
14 namespace System.Data.OleDb
15 {
16         sealed internal class libgda
17         {
18                 [DllImport("gda-2")]
19                 public static extern void gda_init (string app_id,
20                                                     string version,
21                                                     int nargs,
22                                                     string[] args);
23
24                 [DllImport("gda-2")]
25                 public static extern IntPtr gda_client_new ();
26
27                 [DllImport("gda-2")]
28                 public static extern IntPtr gda_client_open_connection (IntPtr client,
29                                                                         string dsn,
30                                                                         string username,
31                                                                         string password);
32
33                 [DllImport("gda-2")]
34                 public static extern bool gda_connection_is_open (IntPtr cnc);
35                 
36                 [DllImport("gda-2")]
37                 public static extern bool gda_connection_close (IntPtr cnc);
38
39                 [DllImport("gda-2")]
40                 public static extern string gda_connection_get_database (IntPtr cnc);
41         }
42 }