MCPcopy Create free account
hub / github.com/Icinga/icinga2 / wmain

Function wmain

plugins/check_network.cpp:355–375  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

353}
354
355int wmain(int argc, WCHAR **argv)
356{
357 std::vector<nInterface> vInterfaces;
358 std::map<std::wstring, std::wstring> mapNames;
359 printInfoStruct printInfo;
360 po::variables_map vm;
361
362 int ret = parseArguments(argc, argv, vm, printInfo);
363
364 if (ret != -1)
365 return ret;
366
367 if (!mapSystemNamesToFamiliarNames(mapNames))
368 return 3;
369
370 ret = check_network(vInterfaces);
371 if (ret != -1)
372 return ret;
373
374 return printOutput(printInfo, vInterfaces, mapNames);
375}

Callers

nothing calls this directly

Calls 4

check_networkFunction · 0.85
parseArgumentsFunction · 0.70
printOutputFunction · 0.70

Tested by

no test coverage detected