diff options
| author | Burt P <pburt0@gmail.com> | 2018-10-22 21:46:48 -0500 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-11-04 15:02:12 -0800 | 
| commit | 7f3cfdb1247f4a578062b8587ebde1be99708a36 (patch) | |
| tree | 9b63597297550bb60910536f6f38a7b274ff15a2 /includes | |
| parent | dfd6d42930d668a7dcc3587d47a89c4de652fdce (diff) | |
dmi_util: make ignoring string detectable
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/dmi_util.h | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/includes/dmi_util.h b/includes/dmi_util.h index 7ef33681..efc0ea21 100644 --- a/includes/dmi_util.h +++ b/includes/dmi_util.h @@ -21,7 +21,12 @@  #ifndef __DMI_UTIL_H__  #define __DMI_UTIL_H__ -char *dmi_get_str(const char *id_str); +/* -1 = yes, but will be ignored + *  0 = no + *  1 = yes */ +int dmi_str_status(const char *id_str); +char *dmi_get_str(const char *id_str);     /* ignore nonsense */ +char *dmi_get_str_abs(const char *id_str); /* include nonsense */  /* if chassis_type is <=0 it will be fetched from DMI.   * with_val = true, will return a string like "[3] Desktop" instead of just | 
