diff options
author | Burt P <pburt0@gmail.com> | 2017-08-08 20:52:19 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-08-14 01:56:47 -0700 |
commit | 90103feadf0fcbe866e82cc6f424b0662f5f5474 (patch) | |
tree | 326d2a5ac00b87c49570bd069c9b644e567c59c7 /includes/hardinfo.h | |
parent | b7086345dc5402ceda5e079fdb9f848f00216e40 (diff) |
Move hardinfo_clean_label() and hardinfo_clean_value() to util.c
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/hardinfo.h')
-rw-r--r-- | includes/hardinfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/hardinfo.h b/includes/hardinfo.h index 243f850f..8d5f70f1 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -169,4 +169,12 @@ gchar *moreinfo_lookup(gchar *key); gboolean g_strv_contains(const gchar * const * strv, const gchar *str); #endif +/* Hardinfo labels that have # are truncated and/or hidden. + * Labels can't have $ because that is the delimiter in + * moreinfo. + * replacing = true will free v */ +gchar *hardinfo_clean_label(const gchar *v, int replacing); +/* hardinfo uses the values as {ht,x}ml, apparently */ +gchar *hardinfo_clean_value(const gchar *v, int replacing); + #endif /* __HARDINFO_H__ */ |