/[gr2lib]/trunk/gr2lib/core/coreapi/coreapi.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coreapi/coreapi.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 93 by william, Thu Jul 15 12:55:21 2010 UTC revision 94 by william, Sat Jul 17 05:09:42 2010 UTC
# Line 8  namespace gr2lib.core Line 8  namespace gr2lib.core
8  {  {
9      public class coreapi      public class coreapi
10      {      {
11          #region Granny API Version Support          #region Granny2 API Version Support
12          [DllImport("granny2.dll", EntryPoint = "GrannyVersionsMatch_", CallingConvention = CallingConvention.StdCall)]          [DllImport("granny2.dll", EntryPoint = "GrannyVersionsMatch_", CallingConvention = CallingConvention.StdCall)]
13          internal static extern bool GrannyVersionsMatch(granny_int32x MajorVersion, granny_int32x MinorVersion, granny_int32x Customization, granny_int32x BuildNumber);          internal static extern bool GrannyVersionsMatch(granny_int32x MajorVersion, granny_int32x MinorVersion, granny_int32x Customization, granny_int32x BuildNumber);
14          [DllImport("granny2.dll", EntryPoint = "GrannyGetVersion", CallingConvention = CallingConvention.StdCall)]          [DllImport("granny2.dll", EntryPoint = "GrannyGetVersion", CallingConvention = CallingConvention.StdCall)]
# Line 17  namespace gr2lib.core Line 17  namespace gr2lib.core
17          internal static extern string GrannyGetVersionString();          internal static extern string GrannyGetVersionString();
18          #endregion          #endregion
19    
20          #region test          #region Granny2 API File Loading Support
21          [DllImport("granny2.dll", EntryPoint = "GrannyReadEntireFile", CallingConvention = CallingConvention.StdCall)]          [DllImport("granny2.dll", EntryPoint = "GrannyReadEntireFile", CallingConvention = CallingConvention.StdCall)]
22          public static extern IntPtr GrannyReadEntireFile(string fileName);          public static extern IntPtr GrannyReadEntireFile(string fileName);
23          [DllImport("granny2.dll", EntryPoint = "GrannyGetFileInfo", CallingConvention = CallingConvention.StdCall)]          [DllImport("granny2.dll", EntryPoint = "GrannyGetFileInfo", CallingConvention = CallingConvention.StdCall)]
24          public static extern IntPtr GetFileInfo(IntPtr file);          public static extern IntPtr GetFileInfo(IntPtr file);
25          [DllImport("granny2.dll", EntryPoint = "GrannyFreeFile", CallingConvention = CallingConvention.StdCall)]          [DllImport("granny2.dll", EntryPoint = "GrannyFreeFile", CallingConvention = CallingConvention.StdCall)]
26          public static extern void FreeFile(IntPtr pointer);          public static extern void FreeFile(IntPtr pointer);
27            #endregion
28    
29            #region Granny2 API Header Support
30            [DllImport("granny2.dll", EntryPoint = "GrannyGetFileTypeTag", CallingConvention = CallingConvention.StdCall)]
31            public static extern int GrannyGetFileTypeTag(IntPtr File);
32          #endregion          #endregion
33    
34    
35      }      }
36  }  }

Legend:
Removed from v.93  
changed lines
  Added in v.94

  ViewVC Help
Powered by ViewVC 1.1.22