Changeset 41811af in mainline for uspace/app/vuhid/stdreq.h
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab547063
- Parents:
- 9536e6e (diff), 390d80d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/vuhid/stdreq.h
r9536e6e r41811af 1 1 /* 2 * Copyright (c) 201 0 Jakub Jermar2 * Copyright (c) 2011 Vojtech Horky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libc29 /** @addtogroup usbvirthid 30 30 * @{ 31 31 */ 32 32 /** @file 33 * Device request handlers. 33 34 */ 35 #ifndef VUHID_STDREQ_H_ 36 #define VUHID_STDREQ_H_ 34 37 35 #ifndef LIBC_ASYNC_SESS_H_ 36 #define LIBC_ASYNC_SESS_H_ 38 #include <usbvirt/device.h> 37 39 38 #include <adt/list.h> 40 int req_get_descriptor(usbvirt_device_t *device, 41 const usb_device_request_setup_packet_t *setup_packet, 42 uint8_t *data, size_t *act_size); 39 43 40 typedef struct { 41 int sess_phone; /**< Phone for cloning off the connections. */ 42 sysarg_t connect_arg1; /**< Argument for CONNECT_ME_TO. */ 43 link_t conn_head; /**< List of open data connections. */ 44 link_t sess_link; /**< Link in global list of open sessions. */ 45 } async_sess_t; 44 int req_set_protocol(usbvirt_device_t *device, 45 const usb_device_request_setup_packet_t *setup_packet, 46 uint8_t *data, size_t *act_size); 46 47 47 extern void async_session_create(async_sess_t *, int, sysarg_t); 48 extern void async_session_destroy(async_sess_t *); 49 extern int async_exchange_begin(async_sess_t *); 50 extern void async_exchange_end(async_sess_t *, int); 48 int req_set_report(usbvirt_device_t *device, 49 const usb_device_request_setup_packet_t *setup_packet, 50 uint8_t *data, size_t *act_size); 51 51 52 52 #endif 53 54 /** @}53 /** 54 * @} 55 55 */
Note:
See TracChangeset
for help on using the changeset viewer.