From 5e163e482532acefd30a058745fddda2cb754fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 28 Feb 2011 23:57:19 +0100 Subject: add char* version(void) --- libk8055/k8055.h | 1 + libk8055/libk8055.c | 4 ++++ 2 files changed, 5 insertions(+) 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(); -- cgit v1.1-2-g2b99