{
  "name": "scorpiox-prometheus-winperf",
  "version": "1.0.0",
  "exports": [
    {
      "name": "winperf_init",
      "return": "int",
      "csharp_return": "int",
      "args": []
    },
    {
      "name": "winperf_cleanup",
      "return": "void",
      "csharp_return": "void",
      "args": []
    },
    {
      "name": "winperf_collect",
      "return": "int",
      "csharp_return": "int",
      "args": []
    },
    {
      "name": "winperf_get_cpu",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {
          "name": "out_cpu",
          "type": "winperf_cpu_info_t*",
          "csharp_type": "ref WinPerfCpuInfo"
        }
      ]
    },
    {
      "name": "winperf_get_memory",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {
          "name": "out_memory",
          "type": "winperf_memory_info_t*",
          "csharp_type": "ref WinPerfMemoryInfo"
        }
      ]
    },
    {
      "name": "winperf_get_disks",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {
          "name": "out_disks",
          "type": "winperf_disk_info_t*",
          "csharp_type": "[Out] WinPerfDiskInfo[]"
        },
        {
          "name": "max_disks",
          "type": "int",
          "csharp_type": "int"
        },
        {
          "name": "out_count",
          "type": "int*",
          "csharp_type": "out int"
        }
      ]
    },
    {
      "name": "winperf_get_network",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {
          "name": "out_adapters",
          "type": "winperf_net_info_t*",
          "csharp_type": "[Out] WinPerfNetInfo[]"
        },
        {
          "name": "max_adapters",
          "type": "int",
          "csharp_type": "int"
        },
        {
          "name": "out_count",
          "type": "int*",
          "csharp_type": "out int"
        }
      ]
    },
    {
      "name": "winperf_get_system",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {
          "name": "out_system",
          "type": "winperf_system_info_t*",
          "csharp_type": "ref WinPerfSystemInfo"
        }
      ]
    },
    {
      "name": "winperf_get_snapshot_json",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": []
    },
    {
      "name": "winperf_last_error",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": []
    }
  ]
}
