SR.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. namespace SR {
  4. public class Core {
  5. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  6. public extern static string APIVersion();
  7. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  8. public extern static void Log(int level, string text);
  9. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  10. public extern static void Err(string text);
  11. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  12. public extern static void Dbg(string text);
  13. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  14. public extern static int ModF(string text);
  15. }
  16. public class PV {
  17. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  18. public extern static string GetS(string pvn);
  19. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  20. public extern static int GetI(string pvn);
  21. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  22. public extern static int SetS(string pvn, string val);
  23. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  24. public extern static int SetI(string pvn, int val);
  25. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  26. public extern static int Unset(string pvn);
  27. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  28. public extern static int IsNull(string pvn);
  29. }
  30. public class HDR {
  31. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  32. public extern static int Append(string hv);
  33. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  34. public extern static int Remove(string hv);
  35. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  36. public extern static int Insert(string hv);
  37. [MethodImplAttribute(MethodImplOptions.InternalCall)]
  38. public extern static int AppendToReply(string hv);
  39. }
  40. }