diff options
| author | Burt P <pburt0@gmail.com> | 2019-12-27 17:13:10 -0600 | 
|---|---|---|
| committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-12-27 22:16:36 -0800 | 
| commit | 74fe3984106ac559a2bea67a6f6fcdd5d2ca5464 (patch) | |
| tree | 0cdf7ecd0e12f8a6f8959ab14581eb4a92b42632 /includes | |
| parent | 4c386e89eb9bf28e43164b958374bee113b4cee7 (diff) | |
shell: add key flag for strings expected to contian vendors
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes')
| -rw-r--r-- | includes/info.h | 1 | ||||
| -rw-r--r-- | includes/shell.h | 6 | 
2 files changed, 5 insertions, 2 deletions
| diff --git a/includes/info.h b/includes/info.h index 8166b1d1..6aa510dc 100644 --- a/includes/info.h +++ b/includes/info.h @@ -64,6 +64,7 @@ struct InfoField {      int update_interval;      gboolean highlight;      /* select in GUI, highlight in report (flag:*) */      gboolean report_details; /* show moreinfo() in report (flag:!) */ +    gboolean value_has_vendor; /* (flag:^) */      gboolean free_name_on_flatten;      gboolean free_value_on_flatten; diff --git a/includes/shell.h b/includes/shell.h index e73dae49..b70b963e 100644 --- a/includes/shell.h +++ b/includes/shell.h @@ -223,18 +223,20 @@ void		shell_set_remote_label(Shell *shell, gchar *label);   * key syntax:   *  [$[<flags>][<tag>]$]<name>[#[<dis>]]   * flags: - *  [[!][*]] + *  [[!][*][^]]   *  ! = show details (moreinfo) in reports   *  * = highlight/select this row + *  ^ = value is/has a vendor string   */  gboolean    key_is_flagged(const gchar *key);       /* has $[<flags>][<tag>]$ at the start of the key */  gboolean    key_is_highlighted(const gchar *key);   /* flag '*' = select/highlight */  gboolean    key_wants_details(const gchar *key);    /* flag '!' = report should include the "moreinfo" */ +gboolean key_value_has_vendor_string(const gchar *key); /* flag '^' = try and match the value to a vendor */  gchar       *key_mi_tag(const gchar *key);          /* moreinfo lookup tag */  const gchar *key_get_name(const gchar *key);        /* get the key's name, flagged or not */  /*   * example for key = "$*!Foo$Bar#7": - * flags = "$*!Foo$"  // key_is/wants_*() still works on flags + * flags = "$*!^Foo$"  // key_is/wants_*() still works on flags   * tag = "Foo"        // the moreinfo/icon tag   * name = "Bar#7"     // the full unique name   * label = "Bar"      // the label displayed | 
