summaryrefslogtreecommitdiff
path: root/atari/hotlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'atari/hotlist.h')
-rwxr-xr-xatari/hotlist.h29
1 files changed, 24 insertions, 5 deletions
diff --git a/atari/hotlist.h b/atari/hotlist.h
index 78a88e27c..27e9eba6e 100755
--- a/atari/hotlist.h
+++ b/atari/hotlist.h
@@ -18,13 +18,32 @@
#ifndef NS_ATARI_HOTLIST_H
#define NS_ATARI_HOTLIST_H
-
+#include <stdbool.h>
+#include <windom.h>
+#include "desktop/tree.h"
+#include "atari/treeview.h"
/* The hotlist window, toolbar and treeview data. */
+struct atari_hotlist {
+ WINDOW * window;
+ NSTREEVIEW tv; /*< The hotlist treeview handle. */
+ bool open;
+ bool init;
+ char path[PATH_MAX];
+};
+
+extern struct atari_hotlist hl;
+
+void hotlist_init( void );
+void hotlist_open( void );
+void hotlist_close( void );
+void hotlist_destroy( void );
+void atari_hotlist_add_page( const char * url, const char * title );
-void hotlist_init(void);
-void hotlist_open(void);
-void hotlist_close(void);
-void hotlist_destroy(void);
+inline void hotlist_redraw( void );
+inline void hotlist_redraw( void )
+{
+ atari_treeview_redraw( hl.tv );
+}
#endif \ No newline at end of file