libftdi Archives

Subject: [PATCH] added function-call to access version information

From: Martin Zenzes <mzenzes@xxxxxxxxxxxxxxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Thu, 08 Jul 2010 15:36:14 +0200
Whoops, the last one was based on libftdi-1.0...

Here the patch again, for discussion!

In some other project (qt-based), I used the guess-rev.sh script of
openocd to provide the git-hash during compile-time as a #define. But I
don't know how to achieve this with cmake...

See these two links for a quick idea: 

http://stackoverflow.com/questions/1537402/retrieve-revision-number-in-vs-with-qmake/3180413#3180413

http://gitorious.org/openocd/openocd/blobs/master/guess-rev.sh

Greetings
        Martin Zenzes

Am Mittwoch, den 07.07.2010, 17:35 +0200 schrieb Thomas Jarosch:
> On Wednesday, 7. July 2010 16:52:06 Uwe Bonnes wrote:
> > Any thought about Martin Zenzes proposal to have an API to query the
> > version. It would be good if applications could query the version to
> > decide if the old or new behaviour of ftdi_read_data() is available.
> 
> Thanks for reminding me. The patch doesn't apply.
> 
> Martin, can you rebase your changes against the current git tree?
> Please without the "baudrate = actual_baudrate" part...
> 
> Thomas
> 
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   



--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Attachment: 0001-added-function-call-to-access-version-information.patch
Description: Text Data

Current Thread