typedef struct MyGraphEntry
{
  time_t                timestamp;
  float                 rate;
  float                 duration;
/*double                keycount;*/

  struct MyGraphEntry * next;
} MyGraphEntry;

typedef struct
{
  time_t mintime;
  time_t maxtime;
  float  minrate;
  float  maxrate;

  MyGraphEntry *head;
  MyGraphEntry *tail;
} graph_window_data;

graph_window_data * new_graph(void);
void                delete_graph(graph_window_data *data);
void                free_list(graph_window_data *data);
bool                read_log_data(graph_window_data *data, char * filename);
bool                render_window(graph_window_data *data, os_box *bbox);
