Wireshark-dev: Re: [Wireshark-dev] Why are ett[] arrays static?
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 19 Oct 2018 10:15:58 -0700
On Oct 19, 2018, at 7:51 AM, Jeff Morriss <jeff.morriss.ws@xxxxxxxxx> wrote:

> Is it just me or is there no reason for ett[] arrays:
> 
>     /* Setup protocol subtree array */
>     static gint *ett[] = {
>         &ett_PROTOABBREV
> 
> to be static?

Given that they represent persistent UI state - i.e., whether, when packet details are displayed, a particular type of subtree should be displayed as opened up or not - that would seem to indicate that they should be static (in the "in static storage" sense, not in the "with internal linkage" sense).