refactor + man
[taskasaur.git] / menu.c
diff --git a/menu.c b/menu.c
index e9071d6..96ad1e5 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -19,6 +19,7 @@
 typedef struct MenuItem {
     char* title;
     char* description;
+    void* user_data;
 } MenuItem;
 
 typedef struct Menu {
@@ -32,6 +33,7 @@ typedef struct Menu {
     WINDOW* sub_win;
     int max_height;
     int max_width;
+    void* user_data;
 } Menu;
 
 int swap_item(Menu* menu, int src_index, int dest_index);