diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-02-28 23:57:19 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-02-28 23:57:19 +0100 |
commit | 5e163e482532acefd30a058745fddda2cb754fb2 (patch) | |
tree | 094acba5ff496472aa4175700a4a794e3db5ec3d /libk8055 | |
parent | b1485d0f76763cb40850b6153eb7363a3444a768 (diff) | |
download | k8055-5e163e482532acefd30a058745fddda2cb754fb2.zip k8055-5e163e482532acefd30a058745fddda2cb754fb2.tar.gz |
add char* version(void)
Diffstat (limited to 'libk8055')
-rw-r--r-- | libk8055/k8055.h | 1 | ||||
-rw-r--r-- | libk8055/libk8055.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libk8055/k8055.h b/libk8055/k8055.h index 044349e..d1d4f9e 100644 --- a/libk8055/k8055.h +++ b/libk8055/k8055.h @@ -32,6 +32,7 @@ extern "C" { unsigned char data_out[PACKET_LEN+1]; }; + char* version( void ); long search_devices( void ); int open_device( struct k8055_dev* dev, long board_address ); int close_device( struct k8055_dev* dev ); diff --git a/libk8055/libk8055.c b/libk8055/libk8055.c index 37f05d8..ba03cf9 100644 --- a/libk8055/libk8055.c +++ b/libk8055/libk8055.c @@ -172,6 +172,10 @@ static int takeover_device( usb_dev_handle* udev, int interface ) { return 0; } +char* version( void ) { + return( VERSION ); +} + int open_device( struct k8055_dev* dev, long board_address ) { usb_init(); usb_find_busses(); |