first version of textlog with GUI

introducing generic "view" with two instantiations: stdout and textlist
This commit is contained in:
Cedric Roux
2016-04-28 15:02:01 +02:00
parent 29859bb930
commit ca945b53de
10 changed files with 326 additions and 11 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef _UTILS_H_
#define _UTILS_H_
void new_thread(void *(*f)(void *), void *data);
void sleepms(int ms);
/****************************************************************************/
/* list */
/****************************************************************************/
typedef struct list {
struct list *last, *next;
void *data;
} list;
list *list_remove_head(list *l);
list *list_append(list *l, void *data);
#endif /* _UTILS_H_ */