#include <glib.h>
#include <signal.h>
-#include "stub_driver.h"
+#include "usbip_host_driver.h"
#include "usbip_common.h"
#include "usbip_network.h"
reply.ndev = 0;
/* how many devices are exported ? */
- dlist_for_each_data(stub_driver->edev_list, edev, struct usbip_exported_device) {
+ dlist_for_each_data(host_driver->edev_list, edev, struct usbip_exported_device) {
reply.ndev += 1;
}
return ret;
}
- dlist_for_each_data(stub_driver->edev_list, edev, struct usbip_exported_device) {
+ dlist_for_each_data(host_driver->edev_list, edev, struct usbip_exported_device) {
struct usbip_usb_device pdu_udev;
dump_usb_device(&edev->udev);
PACK_OP_IMPORT_REQUEST(0, &req);
- dlist_for_each_data(stub_driver->edev_list, edev, struct usbip_exported_device) {
+ dlist_for_each_data(host_driver->edev_list, edev, struct usbip_exported_device) {
if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) {
dbg("found requested device %s", req.busid);
found = 1;
usbip_set_nodelay(sockfd);
/* export_device needs a TCP/IP socket descriptor */
- ret = usbip_stub_export_device(edev, sockfd);
+ ret = usbip_host_export_device(edev, sockfd);
if (ret < 0)
error = 1;
} else {
}
- ret = usbip_stub_refresh_device_list();
+ ret = usbip_host_refresh_device_list();
if (ret < 0)
return -1;
if (ret)
err("open usb.ids");
- ret = usbip_stub_driver_open();
+ ret = usbip_host_driver_open();
if (ret < 0)
g_error("driver open failed");
freeaddrinfo(ai_head);
usbip_names_free();
- usbip_stub_driver_close();
+ usbip_host_driver_close();
return;
}