Changeset 86327 in vbox for trunk/src/VBox/Debugger/testcase
- Timestamp:
- Sep 28, 2020 4:20:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Debugger/testcase/tstDBGCParser.cpp
r82968 r86327 31 31 * Internal Functions * 32 32 *********************************************************************************************************************************/ 33 static DECLCALLBACK(bool) tstDBGCBackInput(P DBGCBACKpBack, uint32_t cMillies);34 static DECLCALLBACK(int) tstDBGCBackRead(P DBGCBACKpBack, void *pvBuf, size_t cbBuf, size_t *pcbRead);35 static DECLCALLBACK(int) tstDBGCBackWrite(P DBGCBACKpBack, const void *pvBuf, size_t cbBuf, size_t *pcbWritten);36 static DECLCALLBACK(void) tstDBGCBackSetReady(P DBGCBACKpBack, bool fReady);33 static DECLCALLBACK(bool) tstDBGCBackInput(PCDBGCIO pBack, uint32_t cMillies); 34 static DECLCALLBACK(int) tstDBGCBackRead(PCDBGCIO pBack, void *pvBuf, size_t cbBuf, size_t *pcbRead); 35 static DECLCALLBACK(int) tstDBGCBackWrite(PCDBGCIO pBack, const void *pvBuf, size_t cbBuf, size_t *pcbWritten); 36 static DECLCALLBACK(void) tstDBGCBackSetReady(PCDBGCIO pBack, bool fReady); 37 37 38 38 … … 43 43 static RTTEST g_hTest = NIL_RTTEST; 44 44 45 /** The DBGC backend structure for use in this testcase. */ 46 static DBGCBACK g_tstBack = 47 { 45 /** The DBGC I/O structure for use in this testcase. */ 46 static DBGCIO g_tstBack = 47 { 48 NULL, /**pfnDestroy*/ 48 49 tstDBGCBackInput, 49 50 tstDBGCBackRead, … … 71 72 * @param cMillies Number of milliseconds to wait on input data. 72 73 */ 73 static DECLCALLBACK(bool) tstDBGCBackInput(P DBGCBACKpBack, uint32_t cMillies)74 static DECLCALLBACK(bool) tstDBGCBackInput(PCDBGCIO pBack, uint32_t cMillies) 74 75 { 75 76 return g_pszInput != NULL … … 91 92 * successful return. 92 93 */ 93 static DECLCALLBACK(int) tstDBGCBackRead(P DBGCBACKpBack, void *pvBuf, size_t cbBuf, size_t *pcbRead)94 static DECLCALLBACK(int) tstDBGCBackRead(PCDBGCIO pBack, void *pvBuf, size_t cbBuf, size_t *pcbRead) 94 95 { 95 96 if (g_pszInput && *g_pszInput) … … 120 121 * If NULL the entire buffer must be successfully written. 121 122 */ 122 static DECLCALLBACK(int) tstDBGCBackWrite(P DBGCBACKpBack, const void *pvBuf, size_t cbBuf, size_t *pcbWritten)123 static DECLCALLBACK(int) tstDBGCBackWrite(PCDBGCIO pBack, const void *pvBuf, size_t cbBuf, size_t *pcbWritten) 123 124 { 124 125 const char *pch = (const char *)pvBuf; … … 159 160 * @param fReady Whether it's ready (true) or busy (false). 160 161 */ 161 static DECLCALLBACK(void) tstDBGCBackSetReady(P DBGCBACKpBack, bool fReady)162 static DECLCALLBACK(void) tstDBGCBackSetReady(PCDBGCIO pBack, bool fReady) 162 163 { 163 164 }
Note:
See TracChangeset
for help on using the changeset viewer.