diff --git a/include/trbase.h b/include/trbase.h index 0b4f16b..e679d6c 100644 --- a/include/trbase.h +++ b/include/trbase.h @@ -17,6 +17,8 @@ #include "tr/interface/indexable.h" #include "tr/interface/logger.h" +const char * const TR_base_version(void); + #endif // __TR_BASE_H__ // vim: set ts=4 sw=4: diff --git a/src/Makefile.am b/src/Makefile.am index 14750a0..8942de9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4 AUTOMAKE_OPTIONS = subdir-objects AM_CFLAGS += -I../include/ -std=c99 -AM_LDFLAGS += +AM_LDFLAGS += TR_CLASS = memory.c \ interface.c \ @@ -16,6 +16,7 @@ TR_CLASS = memory.c \ math.c \ sized_data.c \ sized_data_set_data.c \ + version.c \ i_class.c \ i_subject.c \ i_observer.c \ diff --git a/src/version.c b/src/version.c new file mode 100644 index 0000000..50a6af0 --- /dev/null +++ b/src/version.c @@ -0,0 +1,8 @@ +#include "config.h" + +const char * const +TR_base_version(void) +{ + return VERSION; +} +