todo_new_item() added and id added to todo_s structure

This commit is contained in:
Frederic Culot 2006-08-30 17:47:35 +00:00
parent 11a7ed0c7b
commit 8cf62c4fac

View File

@ -1,4 +1,4 @@
/* $calcurse: todo.h,v 1.1 2006/07/31 21:00:03 culot Exp $ */ /* $calcurse: todo.h,v 1.2 2006/08/30 17:47:35 culot Exp $ */
/* /*
* Calcurse - text-based organizer * Calcurse - text-based organizer
@ -30,12 +30,14 @@
struct todo_s { struct todo_s {
struct todo_s *next; struct todo_s *next;
char *mesg; char *mesg;
int id;
}; };
extern struct todo_s *todolist; extern struct todo_s *todolist;
int todo_new_item(int total, int colr);
struct todo_s *todo_insert(char *mesg); struct todo_s *todo_insert(char *mesg);
struct todo_s *todo_add(char *mesg); struct todo_s *todo_add(char *mesg, int id);
void todo_delete_bynum(unsigned num); void todo_delete_bynum(unsigned num);
#endif /* CALCURSE_TODO_H */ #endif /* CALCURSE_TODO_H */