linked list api (doubly linked, track head and tail)

Dependents:   snake

Revision:
0:4212f9128c1b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/list.h	Thu Oct 11 18:55:02 2012 +0000
@@ -0,0 +1,22 @@
+#ifndef LIST_H
+#define LIST_H
+#include "mbed.h"
+
+ typedef struct _lnode{
+    int row;
+    int col;
+    struct _lnode* next;
+    struct _lnode* prev;
+} Lnode;
+
+
+typedef struct _list{
+    Lnode* head;
+    Lnode* tail;
+} List;
+
+void addToHead(List* list, int row, int col);
+void removeFromTail(List* list);
+void deleteList(List* list);
+
+#endif