#ifndef SHARED_RECORD_PARSER_H
#define SHARED_RECORD_PARSER_H


typedef struct value_count
{
    char *value;
    int count;
    struct value_count *next;
}VALUE_COUNT;

typedef struct result
{
    int id;
    int count;
    VALUE_COUNT *value_head;
    VALUE_COUNT *value_current;
    struct result *next;
}RESULT;

typedef struct record
{
    int expect_takers;
    RESULT *head;
    RESULT *current;
}RECORD;



void
free_record_list(RECORD *list);
	
RECORD *record_parser(char *filename);
#endif
