diff options
author | Burt P <pburt0@gmail.com> | 2019-12-26 02:27:07 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-12-26 17:36:21 -0800 |
commit | 39db9aca78bc69846fcad166190d20e24a55c964 (patch) | |
tree | 1bd684f40c73b88e97f444cf0aef10ac04052a9e /includes/hardinfo.h | |
parent | 211d9a993d63be21daf22834d8bcb823fe2209d3 (diff) |
computer/display: add notes for wanted extern utils
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/hardinfo.h')
-rw-r--r-- | includes/hardinfo.h | 9 |
1 files changed, 9 insertions, 0 deletions
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__ */ |