#ifndef _LINKMAP_H_
#define _LINKMAP_H_

typedef struct __entry {
char *key;
void *value;
struct __entry *next;
} entry_t;

typedef struct __linkMap {
entry_t *firstEntry;
entry_t *lastEntry;
void (*put)(struct __linkMap *this, const char *key, void *value);
void* (*get)(struct __linkMap *this, const char *key);
void (*destructor)(struct __linkMap *this);
} linkMap_t;


extern linkMap_t *linkMap_newInstance();

#endif //_LINKMAP_H_