Changeset 58184 in vbox for trunk/src/VBox/Additions/common/VBoxControl/testcase
- Timestamp:
- Oct 12, 2015 1:48:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxControl/testcase/tstVBoxControl.cpp
r57358 r58184 40 40 } 41 41 42 VBGLR3DECL(int) VbglR3GuestPropConnect( uint32_t *pu32ClientId)43 { 44 AssertPtrReturn(p u32ClientId, VERR_INVALID_POINTER);42 VBGLR3DECL(int) VbglR3GuestPropConnect(HGCMCLIENTID *pidClient) 43 { 44 AssertPtrReturn(pidClient, VERR_INVALID_POINTER); 45 45 RTPrintf("Connect to guest property service...\n"); 46 *p u32ClientId= 1;47 return VINF_SUCCESS; 48 } 49 50 VBGLR3DECL(int) VbglR3GuestPropDisconnect( uint32_t u32ClientId)51 { 52 RTPrintf("Disconnect client %d from guest property service...\n", u32ClientId);53 return VINF_SUCCESS; 54 } 55 56 VBGLR3DECL(int) VbglR3GuestPropWrite( uint32_t u32ClientId,46 *pidClient = 1; 47 return VINF_SUCCESS; 48 } 49 50 VBGLR3DECL(int) VbglR3GuestPropDisconnect(HGCMCLIENTID idClient) 51 { 52 RTPrintf("Disconnect client %d from guest property service...\n", idClient); 53 return VINF_SUCCESS; 54 } 55 56 VBGLR3DECL(int) VbglR3GuestPropWrite(HGCMCLIENTID idClient, 57 57 const char *pszName, 58 58 const char *pszValue, … … 60 60 { 61 61 RTPrintf("Called SET_PROP, client %d, name %s, value %s, flags %s...\n", 62 u32ClientId, pszName, pszValue, pszFlags);63 return VINF_SUCCESS; 64 } 65 66 VBGLR3DECL(int) VbglR3GuestPropWriteValue( uint32_t u32ClientId,62 idClient, pszName, pszValue, pszFlags); 63 return VINF_SUCCESS; 64 } 65 66 VBGLR3DECL(int) VbglR3GuestPropWriteValue(HGCMCLIENTID idClient, 67 67 const char *pszName, 68 68 const char *pszValue) 69 69 { 70 70 RTPrintf("Called SET_PROP_VALUE, client %d, name %s, value %s...\n", 71 u32ClientId, pszName, pszValue);71 idClient, pszName, pszValue); 72 72 return VINF_SUCCESS; 73 73 } 74 74 75 75 #ifdef VBOX_WITH_GUEST_PROPS 76 VBGLR3DECL(int) VbglR3GuestPropRead( uint32_t u32ClientId,76 VBGLR3DECL(int) VbglR3GuestPropRead(HGCMCLIENTID idClient, 77 77 const char *pszName, 78 78 void *pvBuf, … … 84 84 { 85 85 RTPrintf("Called GET_PROP, client %d, name %s...\n", 86 u32ClientId, pszName);86 idClient, pszName); 87 87 static char szValue[] = "Value"; 88 88 static char szFlags[] = "TRANSIENT"; … … 98 98 } 99 99 100 VBGLR3DECL(int) VbglR3GuestPropDelete( uint32_t u32ClientId,100 VBGLR3DECL(int) VbglR3GuestPropDelete(HGCMCLIENTID idClient, 101 101 const char *pszName) 102 102 { 103 103 RTPrintf("Called DEL_PROP, client %d, name %s...\n", 104 u32ClientId, pszName);104 idClient, pszName); 105 105 return VINF_SUCCESS; 106 106 } … … 111 111 }; 112 112 113 VBGLR3DECL(int) VbglR3GuestPropEnum( uint32_t u32ClientId,113 VBGLR3DECL(int) VbglR3GuestPropEnum(HGCMCLIENTID idClient, 114 114 char const * const *ppaszPatterns, 115 115 uint32_t cPatterns, … … 120 120 char const **ppszFlags) 121 121 { 122 RTPrintf("Called ENUM_PROPS, client %d...\n", u32ClientId);122 RTPrintf("Called ENUM_PROPS, client %d...\n", idClient); 123 123 AssertPtrReturn(ppHandle, VERR_INVALID_POINTER); 124 124 static VBGLR3GUESTPROPENUM Handle = { 0 }; … … 163 163 } 164 164 165 VBGLR3DECL(int) VbglR3GuestPropWait( uint32_t u32ClientId,165 VBGLR3DECL(int) VbglR3GuestPropWait(HGCMCLIENTID idClient, 166 166 const char *pszPatterns, 167 167 void *pvBuf, … … 178 178 RTPrintf("Called GET_NOTIFICATION, client %d, patterns %s, timestamp %llu,\n" 179 179 " timeout RT_INDEFINITE_WAIT...\n", 180 u32ClientId, pszPatterns, u64Timestamp);180 idClient, pszPatterns, u64Timestamp); 181 181 else 182 182 RTPrintf("Called GET_NOTIFICATION, client %d, patterns %s, timestamp %llu,\n" 183 183 " timeout %u...\n", 184 u32ClientId, pszPatterns, u64Timestamp, u32Timeout);184 idClient, pszPatterns, u64Timestamp, u32Timeout); 185 185 static char szName[] = "Name"; 186 186 static char szValue[] = "Value";
Note:
See TracChangeset
for help on using the changeset viewer.