summaryrefslogtreecommitdiff
path: root/fxstest.c
diff options
context:
space:
mode:
authormarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-11-06 16:40:42 +0000
committermarkster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2004-11-06 16:40:42 +0000
commit6679aa2f08c81d44f17f75cd463e82a22bfb7fef (patch)
tree94aa1bd3baae6f8f738a60d0d5225d05f8ae3bfb /fxstest.c
parent721c2d8b7dfcb7715ece631172ed0c3d915f5b91 (diff)
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
Diffstat (limited to 'fxstest.c')
-rwxr-xr-xfxstest.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/fxstest.c b/fxstest.c
index a99943c..c99707c 100755
--- a/fxstest.c
+++ b/fxstest.c
@@ -7,7 +7,7 @@
#include <sys/ioctl.h>
#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(&regs, 0, sizeof(regs));
- res = ioctl(fd, WCFXS_GET_REGS, &regs);
+ res = ioctl(fd, WCTDM_GET_REGS, &regs);
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", &reg) != 1) ||
@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
} else {
regop.indirect = 0;
}
- res = ioctl(fd, WCFXS_SET_REG, &regop);
+ res = ioctl(fd, WCTDM_SET_REG, &regop);
if (res)
fprintf(stderr, "Unable to get registers on channel %s\n", argv[1]);
else