aboutsummaryrefslogtreecommitdiff
path: root/includes/shell.h
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2018-10-22 14:25:12 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-11-04 15:01:49 -0800
commit9eaf1a7a96aabc021594bcc6f5fe2ef60da8fb0c (patch)
treeb95cc8ce0c7de380c1d11ca9a52e2e86cb74ac61 /includes/shell.h
parent2c9c2955701a845e7c09e19431a6b31b72d8c3a5 (diff)
shell/report: allow "moreinfo" details to appear in reports
Fixes https://github.com/lpereira/hardinfo/issues/223 The first item to use it will be Devices/Processors/Package Info. Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/shell.h')
-rw-r--r--includes/shell.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/includes/shell.h b/includes/shell.h
index 2eb9e6d2..d03355f3 100644
--- a/includes/shell.h
+++ b/includes/shell.h
@@ -97,10 +97,10 @@ struct _Shell {
ShellViewType view_type;
gboolean normalize_percentage;
-
+
gint _pulses;
ShellOrderType _order_type;
-
+
GKeyFile *hosts;
HelpViewer *help_viewer;
};
@@ -109,7 +109,7 @@ struct _ShellSummary {
GtkWidget *header;
GtkWidget *scroll;
GtkWidget *view;
-
+
GSList *items;
};
@@ -127,7 +127,7 @@ struct _ShellInfoTree {
GtkWidget *view;
GtkTreeModel *model;
GtkTreeSelection *selection;
-
+
GtkTreeViewColumn *col_progress, *col_value, *col_extra1, *col_extra2, *col_textvalue;
};
@@ -144,7 +144,7 @@ struct _ShellModule {
gpointer (*aboutfunc) ();
gchar *(*summaryfunc) ();
void (*deinit) ();
-
+
guchar weight;
GSList *entries;
@@ -162,7 +162,7 @@ struct _ShellModuleEntry {
gboolean selected;
gint number;
guint32 flags;
-
+
gchar *(*func) ();
void (*scan_func) ();
@@ -220,6 +220,13 @@ void shell_update_remote_menu(void);
void shell_set_remote_label(Shell *shell, gchar *label);
+/* decode special information in keys */
+gboolean key_is_flagged(gchar *key); /* has $[<flags>][<tag>]$ at the start of the key */
+gboolean key_is_highlighted(gchar *key); /* flag '*' = select/highlight */
+gboolean key_wants_details(gchar *key); /* flag '!' = report should include the "moreinfo" */
+gchar *key_mi_tag(gchar *key); /* moreinfo lookup tag */
+const gchar *key_get_name(gchar *key); /* get the key's name, flagged or not */
+
#endif /* __SHELL_H__ */