|
a/src/utils/execmd.h |
|
b/src/utils/execmd.h |
|
... |
|
... |
123 |
: m_advise(0), m_provide(0), m_cancelRequest(false), m_timeoutMs(1000)
|
123 |
: m_advise(0), m_provide(0), m_cancelRequest(false), m_timeoutMs(1000)
|
124 |
{}
|
124 |
{}
|
125 |
|
125 |
|
126 |
/**
|
126 |
/**
|
127 |
* Utility routine: check if/where a command is found according to the
|
127 |
* Utility routine: check if/where a command is found according to the
|
128 |
* current PATH
|
128 |
* current PATH (or the specified one
|
|
|
129 |
* @param cmd command name
|
|
|
130 |
* @param exe on return, executable path name if found
|
|
|
131 |
* @param path exec seach path to use instead of getenv(PATH)
|
|
|
132 |
* @return true if found
|
129 |
*/
|
133 |
*/
|
130 |
static bool which(const string& cmd, string& path);
|
134 |
static bool which(const string& cmd, string& exepath,
|
|
|
135 |
const char* path = 0);
|
131 |
|
136 |
|
132 |
private:
|
137 |
private:
|
133 |
vector<string> m_env;
|
138 |
vector<string> m_env;
|
134 |
ExecCmdAdvise *m_advise;
|
139 |
ExecCmdAdvise *m_advise;
|
135 |
ExecCmdProvide *m_provide;
|
140 |
ExecCmdProvide *m_provide;
|