add_get_state_hook
void add_get_state_hook(void (*fn)(int owner, const char *name, struct symbol *sym));
add_get_state_hook(&get_state_hook);