The tapping readme is out of date and the gtk/rpc_stat.c
tap does not seem correct. I think.
I have a dialog popping up but the "packet" function never gets
called.
The function "gtk_ansi_a_stat_init()" used in register_ethereal_tap()
doesn't get called, so I moved most of it's content after that function
call.
(The rtp_stream.c tap seems to indicate that the callback will not get
called as well.)
Now I have some problems with complaints about my widget pointer being NULL.
Thanks.
void
register_tap_listener_gtkansi_a_stat(void)
{
ansi_a_stat_t *stat_p;
GString *err_p;
register_ethereal_tap("ansi_a,", gtk_ansi_a_stat_init);
stat_p = g_malloc(sizeof(ansi_a_stat_t));
memset(stat_p, 0, sizeof(ansi_a_stat_t));
err_p =
register_tap_listener("ansi_a", stat_p, NULL,
ansi_a_stat_reset,
ansi_a_stat_packet,
ansi_a_stat_draw);
if (err_p != NULL)
{
simple_dialog(ESD_TYPE_WARN, NULL, err_p->str);
g_string_free(err_p, TRUE);
g_free(stat_p);
exit(1);
}
}
void
register_tap_menu_gtkansi_a_stat(void)
{
register_tap_menu_item("Statistics/ANSI A-Interface",
gtk_ansi_a_stat_cb, NULL, NULL);
}
--
Michael Lum Architect
4600 Jacombs Road (604) 276-0055
Richmond, B.C.
Canada V6V 3B1
Telos Technology
Winner of the 2003 GSM Association Award
for Technology Innovation
Best Infrastructure