Commit 2e1486d4ee2fc17ae90b00b098e9cea2d5d744bb

Authored by Georg Hopp
1 parent 24c2b1a0

Add a version function

@@ -8,6 +8,8 @@ @@ -8,6 +8,8 @@
8 #include "tr/interface/reader.h" 8 #include "tr/interface/reader.h"
9 #include "tr/interface/writer.h" 9 #include "tr/interface/writer.h"
10 10
  11 +const char * const TR_io_version(void);
  12 +
11 #endif // __TR_IO_H__ 13 #endif // __TR_IO_H__
12 14
13 // vim: set ts=4 sw=4: 15 // vim: set ts=4 sw=4:
1 ACLOCAL_AMFLAGS = -I m4 1 ACLOCAL_AMFLAGS = -I m4
2 AUTOMAKE_OPTIONS = subdir-objects 2 AUTOMAKE_OPTIONS = subdir-objects
3 3
4 -AM_CFLAGS += -I../include/ -std=c99 -DREENTRANT -lpthread  
5 -AM_LDFLAGS += -lpthread 4 +AM_CFLAGS += -I../include/ -std=c99
  5 +AM_LDFLAGS +=
6 6
7 TRIO = stream.c \ 7 TRIO = stream.c \
8 read.c \ 8 read.c \
@@ -18,6 +18,7 @@ TRIO = stream.c \ @@ -18,6 +18,7 @@ TRIO = stream.c \
18 tcp_socket.c \ 18 tcp_socket.c \
19 udp_socket.c \ 19 udp_socket.c \
20 remote_data.c \ 20 remote_data.c \
  21 + version.c \
21 i_socket.c \ 22 i_socket.c \
22 i_reader.c \ 23 i_reader.c \
23 i_writer.c 24 i_writer.c
  1 +#include "config.h"
  2 +
  3 +const char * const
  4 +TR_io_version(void)
  5 +{
  6 + return VERSION;
  7 +}
Please register or login to post a comment