2005-10-24 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / System.Data.OracleClient / System.Data.OracleClient.Oci / OciEnvironmentHandle.cs
index 2c435656267a8e3356c5af7a1610a8fb8ef4123d..663fe51f6e15d3d0cdf7b6058c87ad975c8574fe 100644 (file)
@@ -31,9 +31,8 @@ namespace System.Data.OracleClient.Oci {
                public OciEnvironmentHandle (OciEnvironmentMode mode)
                        : base (OciHandleType.Environment, null, IntPtr.Zero)
                {
-                       int status = 0;
                        IntPtr newHandle = IntPtr.Zero;
-                       status = OCIEnvCreate (out newHandle, 
+                       OciCalls.OCIEnvCreate (out newHandle, 
                                                mode, 
                                                IntPtr.Zero, 
                                                IntPtr.Zero, 
@@ -49,16 +48,6 @@ namespace System.Data.OracleClient.Oci {
 
                #region Methods
 
-               [DllImport ("oci")]
-               static extern int OCIEnvCreate (out IntPtr envhpp,
-                                               [MarshalAs (UnmanagedType.U4)] OciEnvironmentMode mode,
-                                               IntPtr ctxp,
-                                               IntPtr malocfp,
-                                               IntPtr ralocfp,
-                                               IntPtr mfreep,
-                                               int xtramem_sz,
-                                               IntPtr usrmempp);
-
                public OciErrorInfo HandleError ()
                {
                        int errbufSize = 512;
@@ -68,7 +57,7 @@ namespace System.Data.OracleClient.Oci {
                        info.ErrorCode = 0;
                        info.ErrorMessage = String.Empty;
 
-                       OciGlue.OCIErrorGet (Handle,
+                       OciCalls.OCIErrorGet (Handle,
                                        1,
                                        IntPtr.Zero,
                                        out info.ErrorCode,