libcef.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. namespace Xilium.CefGlue.Interop
  2. {
  3. using System;
  4. using System.Runtime.InteropServices;
  5. using System.Security;
  6. #if !DEBUG
  7. [SuppressUnmanagedCodeSecurity]
  8. #endif
  9. internal static unsafe partial class libcef
  10. {
  11. internal const string DllName = "libcef";
  12. internal const int ALIGN = 0;
  13. internal const CallingConvention CEF_CALL = CallingConvention.Cdecl;
  14. // Windows: CallingConvention.StdCall
  15. // Unix: CallingConvention.Cdecl
  16. // FIXME: CEF#598 (http://code.google.com/p/chromiumembedded/issues/detail?id=598)
  17. internal const CallingConvention CEF_CALLBACK = CallingConvention.Winapi;
  18. #region cef_version.h
  19. [DllImport(libcef.DllName, EntryPoint = "cef_build_revision", CallingConvention = libcef.CEF_CALL)]
  20. public static extern int build_revision();
  21. [DllImport(libcef.DllName, EntryPoint = "cef_version_info", CallingConvention = libcef.CEF_CALL)]
  22. public static extern int version_info(int entry);
  23. [DllImport(libcef.DllName, EntryPoint = "cef_api_hash", CallingConvention = libcef.CEF_CALL)]
  24. public static extern sbyte* api_hash(int entry);
  25. #endregion
  26. }
  27. }