diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-05-23 15:43:10 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-05-23 15:43:10 +0000 |
commit | e87e5c912e690d1e89b91bfc59fcad9438484639 (patch) | |
tree | 30217c51c3fa09aefe63f603771ab20cd93b67b4 | |
parent | 56e62e55f3d7adaf434b5dc90be323a0ec2b56c1 (diff) |
add version string to all tools, visible using "strings" for now
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4346 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rwxr-xr-x | build_tools/make_version_h | 3 | ||||
-rw-r--r-- | dahdi_cfg.c | 1 | ||||
-rw-r--r-- | dahdi_diag.c | 1 | ||||
-rw-r--r-- | dahdi_monitor.c | 1 | ||||
-rw-r--r-- | dahdi_scan.c | 2 | ||||
-rw-r--r-- | dahdi_speed.c | 2 | ||||
-rw-r--r-- | dahdi_test.c | 2 | ||||
-rw-r--r-- | dahdi_tool.c | 1 | ||||
-rw-r--r-- | fxotune.c | 1 | ||||
-rw-r--r-- | fxstest.c | 1 | ||||
-rw-r--r-- | hdlcgen.c | 2 | ||||
-rw-r--r-- | hdlcstress.c | 2 | ||||
-rw-r--r-- | hdlctest.c | 2 | ||||
-rw-r--r-- | hdlcverify.c | 2 | ||||
-rw-r--r-- | patgen.c | 1 | ||||
-rw-r--r-- | patlooptest.c | 1 | ||||
-rw-r--r-- | pattest.c | 1 | ||||
-rw-r--r-- | sethdlc.c | 1 | ||||
-rw-r--r-- | timertest.c | 1 | ||||
-rw-r--r-- | tonezone.c | 1 |
20 files changed, 28 insertions, 1 deletions
diff --git a/build_tools/make_version_h b/build_tools/make_version_h index 772c8cf..f65fdd0 100755 --- a/build_tools/make_version_h +++ b/build_tools/make_version_h @@ -4,6 +4,7 @@ cat << END * version.h * Automatically generated */ -#define TOOLS_VERSION "${TOOLSVERSION}" + +static const char tools_version[] = "DAHDI Tools Version - ${TOOLSVERSION}"; END diff --git a/dahdi_cfg.c b/dahdi_cfg.c index ec7299d..04e4de5 100644 --- a/dahdi_cfg.c +++ b/dahdi_cfg.c @@ -40,6 +40,7 @@ #include <dahdi/user.h> #include "tonezone.h" +#include "version.h" #define CONFIG_FILENAME DAHDI_CONFIG #define MASTER_DEVICE "/dev/dahdi/ctl" diff --git a/dahdi_diag.c b/dahdi_diag.c index 2fd56d7..a47e107 100644 --- a/dahdi_diag.c +++ b/dahdi_diag.c @@ -5,6 +5,7 @@ #include <unistd.h> #include <dahdi/user.h> +#include "version.h" int main(int argc, char *argv[]) { diff --git a/dahdi_monitor.c b/dahdi_monitor.c index 77cd1e6..43795ef 100644 --- a/dahdi_monitor.c +++ b/dahdi_monitor.c @@ -42,6 +42,7 @@ #include <dahdi/user.h> #include "tonezone.h" +#include "version.h" #include <linux/soundcard.h> diff --git a/dahdi_scan.c b/dahdi_scan.c index 5f7fe48..ee7d5c9 100644 --- a/dahdi_scan.c +++ b/dahdi_scan.c @@ -36,6 +36,8 @@ #include <dahdi/user.h> +#include "version.h" + int main(int argc, char *argv[]) { int ctl; diff --git a/dahdi_speed.c b/dahdi_speed.c index 7b41d78..5959258 100644 --- a/dahdi_speed.c +++ b/dahdi_speed.c @@ -14,6 +14,8 @@ #include <unistd.h> #include <stdlib.h> +#include "version.h" + static long count=0; static void alm(int sig) diff --git a/dahdi_test.c b/dahdi_test.c index 1ee1a2c..d3695f8 100644 --- a/dahdi_test.c +++ b/dahdi_test.c @@ -9,6 +9,8 @@ #include <math.h> #include <getopt.h> +#include "version.h" + #define SIZE 8000 static int pass = 0; diff --git a/dahdi_tool.c b/dahdi_tool.c index fe49a54..be6aebe 100644 --- a/dahdi_tool.c +++ b/dahdi_tool.c @@ -45,6 +45,7 @@ #include <dahdi/user.h> #include "tonezone.h" +#include "version.h" static int ctl = -1; static int span_max_chan_pos; @@ -26,6 +26,7 @@ #include <dahdi/user.h> #include <dahdi/wctdm_user.h> +#include "version.h" #include "fxotune.h" #define TEST_DURATION 2000 @@ -9,6 +9,7 @@ #include <dahdi/wctdm_user.h> #include "tonezone.h" +#include "version.h" static int tones[] = { DAHDI_TONE_DIALTONE, @@ -7,6 +7,8 @@ #include <unistd.h> #include <stdlib.h> +#include "version.h" + #define RANDOM "/dev/urandom" /* Not genuinely random */ /* #define RANDOM "/dev/random" */ /* Quite genuinely random */ diff --git a/hdlcstress.c b/hdlcstress.c index 694dea0..d32dc90 100644 --- a/hdlcstress.c +++ b/hdlcstress.c @@ -13,6 +13,8 @@ #define FAST_HDLC_NEED_TABLES #include "kernel/fasthdlc.h" +#include "version.h" + /* #define BLOCK_SIZE 2048 */ #define BLOCK_SIZE 2041 @@ -13,6 +13,8 @@ #define FAST_HDLC_NEED_TABLES #include "kernel/fasthdlc.h" +#include "version.h" + #define BLOCK_SIZE 2039 static unsigned short fcstab[256] = diff --git a/hdlcverify.c b/hdlcverify.c index 8212b2a..eeffadb 100644 --- a/hdlcverify.c +++ b/hdlcverify.c @@ -7,6 +7,8 @@ #include <unistd.h> #include <stdlib.h> +#include "version.h" + int myread(int fd, char *buf, int len) { int sofar; @@ -11,6 +11,7 @@ #include "bittest.h" #include <dahdi/user.h> +#include "version.h" /* #define BLOCK_SIZE 2048 */ #define BLOCK_SIZE 2041 diff --git a/patlooptest.c b/patlooptest.c index c53cf96..e844eaf 100644 --- a/patlooptest.c +++ b/patlooptest.c @@ -9,6 +9,7 @@ #include <time.h> #include <dahdi/user.h> +#include "version.h" #define BLOCK_SIZE 2039 @@ -11,6 +11,7 @@ #include "bittest.h" #include <dahdi/user.h> +#include "version.h" #define BLOCK_SIZE 2039 @@ -24,6 +24,7 @@ #include <linux/sockios.h> #include <dahdi/user.h> +#include "version.h" #if GENERIC_HDLC_VERSION != 4 #error Generic HDLC layer version mismatch, please get correct sethdlc.c diff --git a/timertest.c b/timertest.c index 28e76ed..480a822 100644 --- a/timertest.c +++ b/timertest.c @@ -9,6 +9,7 @@ #include <errno.h> #include <dahdi/user.h> +#include "version.h" int main(int argc, char *argv[]) { @@ -32,6 +32,7 @@ #include "dahdi/user.h" #include "tonezone.h" +#include "version.h" #define DEFAULT_DAHDI_DEV "/dev/dahdi/ctl" |