ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] plugin's cleanup function

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Thu, 06 Mar 2008 18:35:49 +0100
Hi,

There's no API for that. Maybe we should create one, and modify packet_cleanup() to call them.
For now all you can do is register for exit(), assuming gtk_exit does that.
So atexit() or on_exit are your choices.

Thanx,
Jaap

Ravid Gabbay wrote:
Can my plugin register a cleanup function that will be called upon tshark termination?