diff options
author | Burt P <pburt0@gmail.com> | 2019-07-05 23:47:20 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-07-06 13:08:54 -0700 |
commit | 1d22dffebc3ef27b0fd3cf6fc7f0a47124ca5e5d (patch) | |
tree | 96e438320c355324f310975afd2c7f14703c9e21 /includes/info.h | |
parent | 5bd8021f5355b022845f0688a13c0881a56c3b53 (diff) |
struct info: try bools instead of flags
Diffstat (limited to 'includes/info.h')
-rw-r--r-- | includes/info.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/includes/info.h b/includes/info.h index 47e41980..4e86c146 100644 --- a/includes/info.h +++ b/includes/info.h @@ -21,13 +21,6 @@ #include <stdarg.h> #include <glib.h> -enum { - INFO_NONE = 0, - INFO_FIELD_SELECTED = 1, /* '*' */ - INFO_FIELD_REPORT_DETAILS - = 1<<1, /* '!' */ -}; - struct Info { GArray *groups; @@ -58,7 +51,8 @@ struct InfoField { gchar *tag; /* moreinfo() lookup tag */ int update_interval; - unsigned int flags; + gboolean highlight; /* select in GUI, highlight in report (flag:*) */ + gboolean report_details; /* show moreinfo() in report (flag:!) */ gboolean free_value_on_flatten; int magic; @@ -89,18 +83,6 @@ static inline struct InfoField info_field_with_icon(struct InfoField field, cons field.icon = icon; return field; } -static inline struct InfoField info_field_set_flags(struct InfoField field, int flags) -{ - field.flags |= flags; - return field; -} -#define info_field_selected(field, INFO_FIELD_SELECTED); -#define info_field_report_details(field, INFO_FIELD_REPORT_DETAILS); -static inline struct InfoField info_field_with_tag(struct InfoField field, const gchar *tag) -{ - field.tag = g_strdup(tag); - return field; -} void info_set_column_title(struct Info *info, const gchar *column, const gchar *title); void info_set_column_headers_visible(struct Info *info, gboolean setting); |