static addon_reg *get_addon_from_index( enum addon_type type, u32 index,
u32 ignoreflags );
static u32 get_index_from_addon( enum addon_type type, addon_reg *a );
static addon_reg *get_addon_from_index( enum addon_type type, u32 index,
u32 ignoreflags );
static u32 get_index_from_addon( enum addon_type type, addon_reg *a );