2 * Asterisk -- A telephony toolkit for Linux.
4 * KDE Console monitor -- Mostly glue code
6 * Copyright (C) 1999, Mark Spencer
8 * Mark Spencer <markster@linux-support.net>
10 * This program is free software, distributed under the terms of
11 * the GNU General Public License
14 #include "asterisk/module.h"
15 #include "asterisk/channel.h"
16 #include "asterisk/logger.h"
17 #include "asterisk/lock.h"
18 #include "pbx_kdeconsole.h"
20 static char *dtext
= "KDE Console Monitor";
24 static KAsteriskConsole
*w
;
26 static void verboser(char *stuff
, int opos
, int replacelast
, int complete
)
32 printf("Removing %d\n", w
->verbose
->count());
33 w
->verbose
->removeItem(w
->verbose
->count());
35 w
->verbose
->insertStrList(s2
, 1, -1);
36 w
->verbose
->setBottomItem(w
->verbose
->count());
39 static int kde_main(int argc
, char *argv
[])
41 KApplication
a ( argc
, argv
);
42 w
= new KAsteriskConsole();
45 ast_register_verbose(verboser
);
49 static void *kdemain(void *data
)
51 /* It would appear kde really wants to be main */;
52 char *argv
[1] = { "asteriskconsole" };
59 int unload_module(void)
67 pthread_create(&t
, NULL
, kdemain
, NULL
);
76 char *description(void)