From 39db9aca78bc69846fcad166190d20e24a55c964 Mon Sep 17 00:00:00 2001 From: Burt P Date: Thu, 26 Dec 2019 02:27:07 -0600 Subject: computer/display: add notes for wanted extern utils Signed-off-by: Burt P --- includes/hardinfo.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'includes') diff --git a/includes/hardinfo.h b/includes/hardinfo.h index 72ef780d..24cf81a0 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -210,4 +210,13 @@ gboolean hardinfo_spawn_command_line_sync(const gchar *command_line, /* a marker in text to point out problems, using markup where possible */ const char *problem_marker(); +/* hinote helpers */ +#define note_max_len 512 +#define note_printf(note_buff, fmt, ...) \ + snprintf((note_buff) + strlen(note_buff), note_max_len - strlen(note_buff) - 1, \ + fmt, ##__VA_ARGS__) +#define note_print(note_buff, str) note_printf((note_buff), "%s", str) +gboolean note_cond_bullet(gboolean cond, gchar *note_buff, const gchar *desc_str); +gboolean note_require_tool(const gchar *tool, gchar *note_buff, const gchar *desc_str); + #endif /* __HARDINFO_H__ */ -- cgit v1.2.3