From 6679aa2f08c81d44f17f75cd463e82a22bfb7fef Mon Sep 17 00:00:00 2001 From: markster Date: Sat, 6 Nov 2004 16:40:42 +0000 Subject: Makefile fixes from bug #2798 and rename wcfxs to wctdm git-svn-id: http://svn.digium.com/svn/zaptel/trunk@491 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- fxstest.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'fxstest.c') diff --git a/fxstest.c b/fxstest.c index a99943c..c99707c 100755 --- a/fxstest.c +++ b/fxstest.c @@ -7,7 +7,7 @@ #include #include "zaptel.h" #include "tonezone.h" -#include "wcfxs.h" +#include "wctdm.h" static int tones[] = { ZT_TONE_DIALTONE, @@ -55,8 +55,8 @@ int main(int argc, char *argv[]) x=(x+1) % (sizeof(tones) / sizeof(tones[0])); } } else if (!strcasecmp(argv[2], "stats")) { - struct wcfxs_stats stats; - res = ioctl(fd, WCFXS_GET_STATS, &stats); + struct wctdm_stats stats; + res = ioctl(fd, WCTDM_GET_STATS, &stats); if (res) { fprintf(stderr, "Unable to get stats on channel %s\n", argv[1]); } else { @@ -65,10 +65,10 @@ int main(int argc, char *argv[]) printf("VBAT: %7.4f Volts\n", (float)stats.batvolt / 1000.0); } } else if (!strcasecmp(argv[2], "regdump")) { - struct wcfxs_regs regs; + struct wctdm_regs regs; int numregs = NUM_REGS; memset(®s, 0, sizeof(regs)); - res = ioctl(fd, WCFXS_GET_REGS, ®s); + res = ioctl(fd, WCTDM_GET_REGS, ®s); if (res) { fprintf(stderr, "Unable to get registers on channel %s\n", argv[1]); } else { @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) } } else if (!strcasecmp(argv[2], "setdirect") || !strcasecmp(argv[2], "setindirect")) { - struct wcfxs_regop regop; + struct wctdm_regop regop; int val; int reg; if ((argc < 5) || (sscanf(argv[3], "%i", ®) != 1) || @@ -111,7 +111,7 @@ int main(int argc, char *argv[]) } else { regop.indirect = 0; } - res = ioctl(fd, WCFXS_SET_REG, ®op); + res = ioctl(fd, WCTDM_SET_REG, ®op); if (res) fprintf(stderr, "Unable to get registers on channel %s\n", argv[1]); else -- cgit v1.2.3