~cyphermox/+junk/usb-modeswitch-2.1.1-1ubuntu1

« back to all changes in this revision

Viewing changes to usb_modeswitch.h

  • Committer: Package Import Robot
  • Author(s): Didier Raboud
  • Date: 2014-04-01 13:28:36 UTC
  • mfrom: (1.3.6)
  • Revision ID: package-import@ubuntu.com-20140401132836-wpm1v1jawwip6tk4
Tags: 2.1.1+repack0-1
* New 2.1.1 upstream release
  - "Interface" parameter was not working as expected, fixed
    (LP: #1261923)

* Repack the upstream tarball:
  - Drop the code copy of jimtcl.

* Bump usb-modeswitch-data depends to 20140327
* Append CPPFLAGS to CFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
  This file is part of usb_modeswitch, a mode switching tool for controlling
3
 
  flip flop (multiple mode) USB devices
 
3
  the mode of 'multi-state' USB devices
4
4
 
5
 
  Version 2.1.0, 2014/01/28
 
5
  Version 2.1.1, 2014/03/27
6
6
  Copyright (C) 2007 - 2014  Josua Dietze
7
7
 
8
8
  Config file parsing stuff borrowed from Guillaume Dargaud
51
51
void release_usb_device(int dummy);
52
52
struct libusb_device* search_devices( int *numFound, int vendor, char* productList,
53
53
                int targetClass, int configuration, int mode);
54
 
int find_first_bulk_output_endpoint(struct libusb_device *dev);
55
 
int find_first_bulk_input_endpoint(struct libusb_device *dev);
56
 
int get_current_configuration(struct libusb_device_handle* devh);
57
 
int get_interface_class(struct libusb_config_descriptor *cfg, int ifcNumber);
 
54
int find_first_bulk_endpoint(int direction);
 
55
int get_current_configuration();
 
56
int get_interface_class();
58
57
char* ReadParseParam(const char* FileName, char *VariableName);
59
58
int hex2num(char c);
60
59
int hex2byte(const char *hex);