Changeset 41ebc36 in mainline for uspace/app/tmon/test.c


Ignore:
Timestamp:
2017-12-18T12:32:07Z (6 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7faf0f0
Parents:
fc338e0
Message:

usbdiag: move contents of libusbdiag to libdrv, registered usbdiag interface into the master routing table, repaired broken references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/test.c

    rfc338e0 r41ebc36  
    4040#include <errno.h>
    4141#include <str_error.h>
    42 #include <usb/diag/diag.h>
    43 #include <usb/diag/iface.h>
     42#include <usbdiag_iface.h>
    4443#include "commands.h"
    4544
     
    5352        int rc;
    5453
    55         if ((rc = loc_category_get_id(USB_DIAG_CATEGORY, &diag_cat, 0))) {
    56                 printf(NAME ": Error resolving category '%s'", USB_DIAG_CATEGORY);
     54        if ((rc = loc_category_get_id(USBDIAG_CATEGORY, &diag_cat, 0))) {
     55                printf(NAME ": Error resolving category '%s'", USBDIAG_CATEGORY);
    5756                return rc;
    5857        }
     
    116115
    117116static int bulk_worker(devman_handle_t fun) {
    118         async_sess_t *sess = usb_diag_connect(fun);
     117        async_sess_t *sess = usbdiag_connect(fun);
    119118        async_exch_t *exch = async_exchange_begin(sess);
    120119
    121120        // TODO: do some testing
    122121        int y;
    123         int rc = usb_diag_test(exch, 4200, &y);
     122        int rc = usbdiag_test(exch, 4200, &y);
    124123
    125124        if (rc) {
     
    130129
    131130        async_exchange_end(exch);
    132         usb_diag_disconnect(sess);
     131        usbdiag_disconnect(sess);
    133132        return 0;
    134133}
Note: See TracChangeset for help on using the changeset viewer.