Updated Firebird provider with latest sources from sourceforge
[mono.git] / mcs / class / FirebirdSql.Data.Firebird / FirebirdSql.Data.Embedded / XSQLDA.cs
1 /*\r
2  *      Firebird ADO.NET Data provider for .NET and     Mono \r
3  * \r
4  *         The contents of this file are subject to the Initial \r
5  *         Developer's Public License Version 1.0 (the "License"); \r
6  *         you may not use this file except in compliance with the \r
7  *         License. You may obtain a copy of the License at \r
8  *         http://www.firebirdsql.org/index.php?op=doc&id=idpl\r
9  *\r
10  *         Software distributed under the License is distributed on \r
11  *         an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either \r
12  *         express or implied. See the License for the specific \r
13  *         language governing rights and limitations under the License.\r
14  * \r
15  *      Copyright (c) 2002, 2005 Carlos Guzman Alvarez\r
16  *      All Rights Reserved.\r
17  */\r
18 \r
19 using System;\r
20 using System.IO;\r
21 using System.Text;\r
22 using System.Runtime.InteropServices;\r
23 \r
24 namespace FirebirdSql.Data.Embedded\r
25 {\r
26         [StructLayout(LayoutKind.Sequential)]\r
27         internal struct XSQLDA\r
28         {\r
29                 public short            version;\r
30                 [MarshalAs(UnmanagedType.ByValTStr,     SizeConst=8)] \r
31                 public string           sqldaid;\r
32                 public int                      sqldabc;\r
33                 public short            sqln;\r
34                 public short            sqld;\r
35         }\r
36 \r
37         [StructLayout(LayoutKind.Sequential)] \r
38         internal struct XSQLVAR\r
39         {\r
40                 public short    sqltype;        \r
41                 public short    sqlscale;\r
42                 public short    sqlsubtype;     \r
43                 public short    sqllen;\r
44                 public IntPtr   sqldata;\r
45                 public IntPtr   sqlind;\r
46                 public short    sqlname_length;\r
47                 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]\r
48                 public byte[]   sqlname;\r
49                 public short    relname_length;\r
50                 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]\r
51                 public byte[]   relname;\r
52                 public short    ownername_length;\r
53                 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]\r
54                 public byte[]   ownername;\r
55                 public short    aliasname_length;\r
56                 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)]\r
57                 public byte[]   aliasname;\r
58         }\r
59 }\r