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

Function GetIcingaInstallPath

icinga-installer/icinga-installer.cpp:15–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13#include <sys/stat.h>
14
15static std::string GetIcingaInstallPath(void)
16{
17 char szFileName[MAX_PATH];
18 if (!GetModuleFileName(nullptr, szFileName, sizeof(szFileName)))
19 return "";
20
21 if (!PathRemoveFileSpec(szFileName))
22 return "";
23
24 if (!PathRemoveFileSpec(szFileName))
25 return "";
26
27 return szFileName;
28}
29
30
31static bool ExecuteCommand(const std::string& app, const std::string& arguments)

Callers 3

ExecuteIcingaCommandFunction · 0.85
InstallIcingaFunction · 0.85
icinga.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected