aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-04-08 13:52:35 +0000
committerOmar Polo <op@omarpolo.com>2022-04-08 13:52:35 +0000
commit54203115cd0121ee0e44f5e58202a4d8054b9c09 (patch)
treed28758a8d5ce0dd1448ba2e35e30de6d9bbe6b2d /gmid.h
parent9b6499535963c128de4a5a891a70b2636a54dad1 (diff)
don't load the built-in list when using `types'
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/gmid.h b/gmid.h
index 4acbf71..3bf9798 100644
--- a/gmid.h
+++ b/gmid.h
@@ -182,8 +182,15 @@ struct etm { /* extension to mime */
struct mime {
struct etm *t;
- size_t len;
- size_t cap;
+ size_t len;
+ size_t cap;
+
+ /*
+ * Backward compatibility: types override the built-in list,
+ * but the deprecated `mime' and `map' don't. It's still too
+ * early to remove `mime' and `map' from the config parser.
+ */
+ int skip_defaults;
};
struct conf {