Date:2011-05-11 08:20:36 (8 years 3 months ago)
Author:Werner Almesberger
Commit:6fc212848a7a5738c35d5a17a042a7ca831ae1fc
Message:tools/lib/usbopen.h: moved to tools/include/, to allow for sharing

Files: tools/include/usbopen.h (1 diff)
tools/lib/usbopen.h (1 diff)

Change Details

tools/include/usbopen.h
1/*
2 * lib/usbopen.h - Common USB device lookup and open code
3 *
4 * Written 2008-2011 by Werner Almesberger
5 * Copyright 2008-2011 Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13
14#ifndef USB_OPEN_H
15#define USB_OPEN_H
16
17#include <stdint.h>
18#include <usb.h>
19
20
21usb_dev_handle *open_usb(uint16_t default_vendor, uint16_t default_product);
22void parse_usb_id(const char *id);
23void restrict_usb_path(const char *path);
24void usb_unrestrict(void);
25
26#endif /* !USB_OPEN_H */
tools/lib/usbopen.h
1/*
2 * lib/usbopen.h - Common USB device lookup and open code
3 *
4 * Written 2008-2011 by Werner Almesberger
5 * Copyright 2008-2011 Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13
14#ifndef USB_OPEN_H
15#define USB_OPEN_H
16
17#include <stdint.h>
18#include <usb.h>
19
20
21usb_dev_handle *open_usb(uint16_t default_vendor, uint16_t default_product);
22void parse_usb_id(const char *id);
23void restrict_usb_path(const char *path);
24void usb_unrestrict(void);
25
26#endif /* !USB_OPEN_H */

Archive Download the corresponding diff file



interactive