Lines Matching refs:pTable
36 extern "C" DECLCALLBACK(DECLEXPORT(int)) VBoxHGCMSvcLoad(VBOXHGCMSVCFNTABLE *pTable);
56 * @param pTable the table to initialise
58 int initTable(VBOXHGCMSVCFNTABLE *pTable, VBOXHGCMSVCHELPERS *pHelpers)
60 pTable->cbSize = sizeof (VBOXHGCMSVCFNTABLE);
61 pTable->u32Version = VBOX_HGCM_SVC_VERSION;
63 pTable->pHelpers = pHelpers;
101 static int testHostCmd(const VBOXHGCMSVCFNTABLE *pTable, const PCMDHOST pCmd, uint32_t uNumTests)
104 if (!VALID_PTR(pTable->pfnHostCall))
118 int client_rc = pTable->pfnConnect(pTable->pvService, 1000 /* Client ID */, NULL /* pvClient */);
125 int host_rc = pTable->pfnHostCall(pTable->pvService,
140 int client_rc = pTable->pfnDisconnect(pTable->pvService, 1000 /* Client ID */, NULL /* pvClient */);
150 static int testHost(const VBOXHGCMSVCFNTABLE *pTable)
195 int rc = testHostCmd(pTable, &s_aCmdHostAll[0], RT_ELEMENTS(s_aCmdHostAll));
200 static int testClient(const VBOXHGCMSVCFNTABLE *pTable)
204 int rc = pTable->pfnConnect(pTable->pvService, 1 /* Client ID */, NULL /* pvClient */);
213 pTable->pfnCall(pTable->pvService, &callHandle, 1 /* Client ID */, NULL /* pvClient */,
223 rc = pTable->pfnHostCall(pTable->pvService, HOST_EXEC_CMD, 3, &s_aParmsHost[0]);
227 int rc2 = pTable->pfnDisconnect(pTable->pvService, 1000 /* Client ID */, NULL /* pvClient */);