From 9fd87dd344481e065c265f2763a526f3904259cc Mon Sep 17 00:00:00 2001 From: Russ Meyerriecks Date: Mon, 22 Feb 2010 20:31:10 +0000 Subject: 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 --- dahdi_tool.c | 43 +------------------------------------------ 1 file changed, 1 insertion(+), 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