Changeset 73301a0 in mainline for uspace/app/virtusbkbd/virtusbkbd.c


Ignore:
Timestamp:
2010-10-15T12:57:35Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
47e3a8e
Parents:
cbc00a4d
Message:

Virtual USB keyboard sends its report

Also, the virtual USB framework now handles the standard requests
differently. First, all requests has standalone callbacks and the
user callbacks are always called first. If they return EFORWARD,
the framework will try to satisfy the request by itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/virtusbkbd/virtusbkbd.c

    rcbc00a4d r73301a0  
    5454#include "kbdconfig.h"
    5555#include "keys.h"
     56#include "stdreq.h"
    5657
    5758#define LOOPS 5
     
    7677static int on_class_request(struct usbvirt_device *dev,
    7778    usb_device_request_setup_packet_t *request, uint8_t *data)
    78 {
     79{       
    7980        printf("%s: class request (%d)\n", NAME, (int) request->request);
    8081       
     
    8687 */
    8788static usbvirt_device_ops_t keyboard_ops = {
    88         .on_devreq_class = on_class_request,
     89        .standard_request_ops = &standard_request_ops,
     90        .on_class_device_request = on_class_request,
    8991        .on_data = on_incoming_data
    9092};
Note: See TracChangeset for help on using the changeset viewer.