version 1.24, 2009/03/23 13:22:05
|
version 1.25, 2010/10/29 05:29:50
|
|
|
const char* path) = 0; | const char* path) = 0; |
| |
virtual int startProviderAgent( | virtual int startProviderAgent( |
|
unsigned short bitness, |
const char* module, | const char* module, |
const String& pegasusHome, | const String& pegasusHome, |
const String& userName, | const String& userName, |
|
|
| |
| |
virtual int startProviderAgent( | virtual int startProviderAgent( |
|
unsigned short bitness, |
const char* module, | const char* module, |
const String& pegasusHome, | const String& pegasusHome, |
const String& userName, | const String& userName, |
|
|
// Resolve full path of "cimprovagt" program. | // Resolve full path of "cimprovagt" program. |
| |
String path = FileSystem::getAbsolutePath( | String path = FileSystem::getAbsolutePath( |
pegasusHome.getCString(), PEGASUS_PROVIDER_AGENT_PROC_NAME); |
pegasusHome.getCString(), |
|
bitness == PG_PROVMODULE_BITNESS_32 ? |
|
PEGASUS_PROVIDER_AGENT32_PROC_NAME : |
|
PEGASUS_PROVIDER_AGENT_PROC_NAME); |
| |
// Create CString handles for cimprovagt arguments | // Create CString handles for cimprovagt arguments |
| |
|
|
} | } |
| |
virtual int startProviderAgent( | virtual int startProviderAgent( |
|
unsigned short bitness, |
const char* module, | const char* module, |
const String& pegasusHome, | const String& pegasusHome, |
const String& userName, | const String& userName, |
|
|
memset(&request, 0, sizeof(request)); | memset(&request, 0, sizeof(request)); |
memcpy(request.module, module, moduleNameLength); | memcpy(request.module, module, moduleNameLength); |
memcpy(request.userName, userNameCString, userNameLength); | memcpy(request.userName, userNameCString, userNameLength); |
|
request.moduleBitness = bitness; |
| |
if (SendBlock(_sock, &request, sizeof(request)) != sizeof(request)) | if (SendBlock(_sock, &request, sizeof(request)) != sizeof(request)) |
return -1; | return -1; |
|
|
} | } |
| |
int Executor::startProviderAgent( | int Executor::startProviderAgent( |
|
unsigned short bitness, |
const char* module, | const char* module, |
const String& pegasusHome, | const String& pegasusHome, |
const String& userName, | const String& userName, |
|
|
AnonymousPipe*& writePipe) | AnonymousPipe*& writePipe) |
{ | { |
once(&_executorImplOnce, _initExecutorImpl); | once(&_executorImplOnce, _initExecutorImpl); |
return _executorImpl->startProviderAgent( |
return _executorImpl->startProviderAgent(bitness, |
module, pegasusHome, userName, pid, readPipe, writePipe); | module, pegasusHome, userName, pid, readPipe, writePipe); |
} | } |
| |