Changeset a8723748 in mainline for uspace/lib/usbdiag/src/test.c
- Timestamp:
- 2017-12-15T10:55:09Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 64d138b
- Parents:
- 837d53d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdiag/src/test.c
r837d53d ra8723748 34 34 */ 35 35 36 #include <async.h> 36 37 #include <usb/diag/diag.h> 37 38 38 int usb_diag_test(int x )39 int usb_diag_test(int x, int *out) 39 40 { 40 return x + 42; 41 sysarg_t _out; 42 async_sess_t *session = NULL; 43 async_exch_t *exch = async_exchange_begin(session); 44 const int rc = async_req_1_1(exch, USB_DIAG_IN_TEST, x, &_out); 45 async_exchange_end(exch); 46 47 if (out) 48 *out = (int) _out; 49 50 return rc; 41 51 } 42 52
Note:
See TracChangeset
for help on using the changeset viewer.