diff --git a/src/status_bar.h b/src/status_bar.h
index 902ed1a22829824a9f20ba79e0a38af4ca851ac1..9c8f4a9bf0a2125d452833a4c796d237f44ac02c 100644 (file)
--- a/src/status_bar.h
+++ b/src/status_bar.h
/* ncmpc (Ncurses MPD Client)
- * (c) 2004-2009 The Music Player Daemon Project
+ * (c) 2004-2010 The Music Player Daemon Project
* Project homepage: http://musicpd.org
*
* This program is free software; you can redistribute it and/or modify
#include "window.h"
-#include <glib.h>
+#ifndef NCMPC_MINI
+#include "hscroll.h"
+#endif
-#include <stdbool.h>
+#include <glib.h>
struct mpd_status;
struct mpd_song;
struct window window;
guint message_source_id;
-};
-
-static inline void
-status_bar_init(struct status_bar *p, unsigned width, int y, int x)
-{
- window_init(&p->window, 1, width, y, x);
- leaveok(p->window.w, false);
- keypad(p->window.w, true);
+#ifndef NCMPC_MINI
+ struct hscroll hscroll;
- p->message_source_id = 0;
-}
+ const struct mpd_status *prev_status;
+ const struct mpd_song *prev_song;
+#endif
+};
-static inline void
-status_bar_deinit(struct status_bar *p)
-{
- delwin(p->window.w);
+void
+status_bar_init(struct status_bar *p, unsigned width, int y, int x);
- if (p->message_source_id != 0)
- g_source_remove(p->message_source_id);
-}
+void
+status_bar_deinit(struct status_bar *p);
void
-status_bar_paint(const struct status_bar *p, const struct mpd_status *status,
+status_bar_paint(struct status_bar *p, const struct mpd_status *status,
const struct mpd_song *song);
void
void
status_bar_message(struct status_bar *p, const char *msg);
+void
+status_bar_clear_message(struct status_bar *p);
+
#endif