summaryrefslogtreecommitdiff
path: root/src/fe-text/statusbar-item.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/statusbar-item.h')
-rw-r--r--src/fe-text/statusbar-item.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fe-text/statusbar-item.h b/src/fe-text/statusbar-item.h
new file mode 100644
index 00000000..788fed75
--- /dev/null
+++ b/src/fe-text/statusbar-item.h
@@ -0,0 +1,16 @@
+#ifndef IRSSI_STATUSBAR_ITEM_H
+#define IRSSI_STATUSBAR_ITEM_H
+
+struct SBAR_ITEM_REC;
+
+typedef void (*STATUSBAR_FUNC) (struct SBAR_ITEM_REC *item, int get_size_only);
+
+void statusbar_item_register(const char *name, const char *value,
+ STATUSBAR_FUNC func);
+void statusbar_item_unregister(const char *name);
+void statusbar_item_default_handler(struct SBAR_ITEM_REC *item, int get_size_only,
+ const char *str, const char *data,
+ int escape_vars);
+void statusbar_items_redraw(const char *name);
+
+#endif