1 | initial version |
From README.tapping:
The tap system uses the value of this pointer to distinguish between different instances of a tap. Just make sure that it is unique by letting it be the pointer to a struct holding all state variables. If you want to allow multiple concurrent instances, just put ALL state variables inside a struct allocated by g_new() and use that pointer.
The same paragraph is in epan/tap.h
in the comments above register_tap_listener
. Sharing the parameter will probably lead to either memory leaks or invalid memory accesses, especially upon destruction. Note that remove_tap_listener
uses the tapdata.
It might be possible to rewrite mcaststream_reset
and other functions to make it possible to share an object, but it's not supported.