Dynamicly allocate " items". make it a gpointer and cast to io_item_t items where needed. The ame is to make io_stat_graph_t generic and reusable.