]> git.deb.at Git - pkg/abook.git/blobdiff - list.h
Fixed 'undo' command corrupting the database when used after changing of
[pkg/abook.git] / list.h
diff --git a/list.h b/list.h
index f76928ee244328ea07ce008254f908329990b675..ac8377f1228e734ffdd2ee9bfacc95e630604da5 100644 (file)
--- a/list.h
+++ b/list.h
@@ -1,11 +1,12 @@
 #ifndef _LIST_H
 #define _LIST_H
 
+#include "ui.h"
 
 void           init_list();
 void           close_list();
 void            refresh_list();
-void           print_list_line(int i, int line);
+void           print_list_line(int i, int line, int highlight);
 void           list_headerline();
 void            scroll_up();
 void            scroll_down();
@@ -19,6 +20,9 @@ void          goto_end();
 void           highlight_line(WINDOW *win, int line);
 int            selected_items();
 void           invert_selection();
+int            list_current_item();
+int            list_is_empty();
+int            duplicate_item();
 
 
 enum {
@@ -27,14 +31,14 @@ enum {
 };
 
 #define LIST_TOP        3
-#define LIST_BOTTOM     (LINES-3)
+#define LIST_BOTTOM     (LINES-2)
 
 #define LIST_LINES     (LIST_BOTTOM-LIST_TOP)
 #define LIST_COLS      COLS
 
 #define NAMEPOS                2
-#define EMAILPOS        options_get_int("emailpos")
-#define EXTRAPOS       options_get_int("extrapos")
+#define EMAILPOS        opt_get_int(INT_EMAILPOS)
+#define EXTRAPOS       opt_get_int(INT_EXTRAPOS)
 
 #define NAMELEN                (EMAILPOS-NAMEPOS -1)
 #define EMAILLEN        (EXTRAPOS-EMAILPOS -1)