#ifndef _LIBADT_LIST_COMMONS_H
#define _LIBADT_LIST_COMMONS_H

typedef void (*t_destroyfunc)(void *data);

enum list_insert_el_mode {
	HEAD,
	TAIL
};

typedef struct _list_root list_root;

typedef struct _list_node list_node;

struct _list_node;

struct _list_root {
	int size;			// Size of the list structure.
	t_destroyfunc destroyfunc;
	list_node *head;	// Position from where we start walking the list.
	list_node *tail;	// Last item on the list.
	enum list_insert_el_mode mode;
};

/*
 * Returns the size of the list.
 */
#define list_size(list) ((list) ->size)

#endif /* _LIBADT_LIST_COMMONS_H */

Rename to reflect the list situation of this header
Rename to reflect the list situation of this header
