summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Meyerriecks <rmeyerreicks@digium.com>2010-02-22 20:31:10 +0000
committerRuss Meyerriecks <rmeyerreicks@digium.com>2010-02-22 20:31:10 +0000
commit9fd87dd344481e065c265f2763a526f3904259cc (patch)
tree2edb2f7adcd930fe54844ae4d78521f38f11619a
parentdcff613ee39416e66529c471e829b092839450e6 (diff)
Removed "loop" button
This button's functinality (if/when it ever worked) now resides in dahdi_maint. This resolves jsmith's dahdi-189 issue. git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@8070 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r--dahdi_tool.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/dahdi_tool.c b/dahdi_tool.c
index cafc544..5840323 100644
--- a/dahdi_tool.c
+++ b/dahdi_tool.c
@@ -287,45 +287,11 @@ static void show_bits(int span, newtComponent bitbox, newtComponent inuse, newtC
}
-static void do_loop(int span, int looped)
-{
- newtComponent form;
- newtComponent label;
- char s1[256];
- struct dahdi_maintinfo m;
- int res;
- struct newtExitStruct es;
-
- newtOpenWindow(20,12,40,4, s[span].desc);
-
- form = newtForm(NULL, NULL, 0);
- m.spanno = span;
- if (looped) {
- snprintf(s1, sizeof(s1), "Looping UP span %d...\n", span);
- m.command = DAHDI_MAINT_LOOPUP;
- } else {
- snprintf(s1, sizeof(s1), "Looping DOWN span %d...\n", span);
- m.command = DAHDI_MAINT_LOOPDOWN;
- }
-
- label = newtLabel(3,1,s1);
- newtFormAddComponent(form, label);
- newtPushHelpLine("Please wait...");
-
- newtFormSetTimer(form, 200);
- newtFormRun(form, &es);
- res = ioctl(ctl, DAHDI_MAINT, &m);
- newtFormDestroy(form);
- newtPopWindow();
- newtPopHelpLine();
-}
-
static newtComponent spans;
static void show_span(int span)
{
newtComponent form;
newtComponent back;
- newtComponent loop;
newtComponent label;
newtComponent bitbox;
newtComponent inuse;
@@ -338,7 +304,6 @@ static void show_span(int span)
char s1[] = " 1111111111222222222233";
char s2[] = "1234567890123456789012345678901";
int x;
- int looped = 0;
struct newtExitStruct es;
void *ss;
@@ -357,10 +322,9 @@ static void show_span(int span)
newtPushHelpLine(info2);
back = newtButton(48,8,"Back");
- loop = newtButton(48,14,"Loop");
form = newtForm(NULL, NULL, 0);
- newtFormAddComponents(form, back, loop, NULL);
+ newtFormAddComponents(form, back, NULL);
span_max_chan_pos = s[span].totalchans;
for (x=0;x<DAHDI_MAX_CHANNELS;x++) {
@@ -461,11 +425,6 @@ static void show_span(int span)
} while(es.reason == NEWT_EXIT_TIMER);
switch(es.reason) {
case NEWT_EXIT_COMPONENT:
- if (es.u.co == loop) {
- looped = !looped;
- do_loop(span, looped);
- newtFormSetTimer(form, 200);
- }
if (es.u.co == back) {
goto out;
}