Lines Matching defs:pMachine
65 * @param pMachine Pointer to the machine's internal structure.
69 int getMetric(PVBOXWATCHDOG_MACHINE pMachine, const Bstr& strName, LONG *pulData)
71 AssertPtrReturn(pMachine, VERR_INVALID_POINTER);
77 pMachine->machine.queryInterfaceTo(&metricObjects[0]);
95 Assert(!pMachine->collector.isNull());
96 HRESULT hrc = pMachine->collector->QueryMetricsData(
139 * @param pMachine Machine to get payload for.
142 void* payloadFrom(PVBOXWATCHDOG_MACHINE pMachine, const char *pszModule)
144 AssertPtrReturn(pMachine, NULL);
146 mapPayloadIter it = pMachine->payload.find(pszModule);
147 if (it == pMachine->payload.end())
153 int payloadAlloc(PVBOXWATCHDOG_MACHINE pMachine, const char *pszModule,
156 AssertPtrReturn(pMachine, VERR_INVALID_POINTER);
163 mapPayloadIter it = pMachine->payload.find(pszModule);
164 AssertReturn(it == pMachine->payload.end(), VERR_INVALID_PARAMETER);
173 pMachine->payload.insert(std::make_pair(pszModule, p));
178 void payloadFree(PVBOXWATCHDOG_MACHINE pMachine, const char *pszModule)
180 AssertPtrReturnVoid(pMachine);
183 mapPayloadIter it = pMachine->payload.find(pszModule);
184 if (it != pMachine->payload.end())
187 pMachine->payload.erase(it);
199 MachineState_T getMachineState(const PVBOXWATCHDOG_MACHINE pMachine)
201 AssertPtrReturn(pMachine, MachineState_Null);
203 Assert(!pMachine->machine.isNull());
204 HRESULT rc = pMachine->machine->COMGETTER(State)(&machineState);