Changeset e1dbcbc in mainline for uspace/app/vuhid/stdreq.h
- Timestamp:
- 2011-04-29T13:43:01Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a81a1d09
- Parents:
- 380e0364 (diff), f19f1b7 (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
r380e0364 re1dbcbc 1 1 /* 2 * Copyright (c) 2007 Jan Hudecek 3 * Copyright (c) 2008 Martin Decky 2 * Copyright (c) 2011 Vojtech Horky 4 3 * All rights reserved. 5 4 * … … 28 27 */ 29 28 30 /** @addtogroup genericproc29 /** @addtogroup usbvirthid 31 30 * @{ 32 31 */ 33 /** @file tasklet.h34 * @brief Tasklets declarations32 /** @file 33 * Device request handlers. 35 34 */ 35 #ifndef VUHID_STDREQ_H_ 36 #define VUHID_STDREQ_H_ 36 37 37 #ifndef KERN_TASKLET_H_ 38 #define KERN_TASKLET_H_ 38 #include <usbvirt/device.h> 39 39 40 #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); 41 43 42 /** Tasklet callback type */ 43 typedef void (* tasklet_callback_t)(void *arg); 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); 44 47 45 /** Tasklet state */ 46 typedef enum { 47 NotActive, 48 Scheduled, 49 InProgress, 50 Disabled 51 } tasklet_state_t; 52 53 /** Structure describing a tasklet */ 54 typedef struct tasklet_descriptor { 55 link_t link; 56 57 /** Callback to call */ 58 tasklet_callback_t callback; 59 60 /** Argument passed to the callback */ 61 void *arg; 62 63 /** State of the tasklet */ 64 tasklet_state_t state; 65 } tasklet_descriptor_t; 66 67 68 extern void tasklet_init(void); 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); 69 51 70 52 #endif 71 72 /** @}53 /** 54 * @} 73 55 */
Note:
See TracChangeset
for help on using the changeset viewer.