Commit e86cfc54 authored by rswindell's avatar rswindell
Browse files

Support the query of the com i/o library version string.

parent 3bdca889
......@@ -67,6 +67,7 @@
extern "C" {
char* comVersion(char* str, size_t len);
COM_HANDLE comOpen(const char* device);
long comGetBaudRate(COM_HANDLE);
......@@ -36,6 +36,16 @@
#include "comio.h"
#include "genwrap.h"
char* comVersion(char* str, size_t len)
char revision[16];
sscanf("$Revision$", "%*s %s", revision);
safe_snprintf(str,len,"Synchronet Communications I/O Library for "PLATFORM_DESC" v%s", revision);
return str;
COM_HANDLE comOpen(const char* device)
COM_HANDLE handle;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment