From 90103feadf0fcbe866e82cc6f424b0662f5f5474 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 8 Aug 2017 20:52:19 -0500 Subject: Move hardinfo_clean_label() and hardinfo_clean_value() to util.c Signed-off-by: Burt P --- includes/hardinfo.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'includes') 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__ */ -- cgit v1.2.3