From 8de7399360e64d292198251da8fc8ae2ffbb7a7d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 14 Feb 2013 11:09:53 +0100 Subject: Mark todo_get_position() public This is needed in "ui-todo.c" now. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 1 + src/todo.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/calcurse.h b/src/calcurse.h index 8d76bba..64c8808 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -930,6 +930,7 @@ void todo_write(struct todo *, FILE *); void todo_delete_note(struct todo *); void todo_delete(struct todo *); void todo_flag(struct todo *); +int todo_get_position(struct todo *); void ui_todo_chg_priority(struct todo *, int); void ui_todo_update_panel(int); void todo_edit_note(struct todo *, const char *); diff --git a/src/todo.c b/src/todo.c index 160e84a..a0d464f 100644 --- a/src/todo.c +++ b/src/todo.c @@ -123,7 +123,7 @@ void todo_flag(struct todo *t) * Returns the position into the linked list corresponding to the * given todo item. */ -static int todo_get_position(struct todo *needle) +int todo_get_position(struct todo *needle) { llist_item_t *i; int n = 0; -- cgit v1.2.3-70-g09d2