summaryrefslogtreecommitdiffstats
path: root/options/m_property.h
diff options
context:
space:
mode:
authorChristoph Heinrich <christoph.heinrich@student.tugraz.at>2023-02-20 06:53:09 +0100
committerDudemanguy <random342@airmail.cc>2023-02-21 17:15:17 +0000
commit17d91b9d4d2d208f4a847395198cdbbcad18de93 (patch)
treee87e6f96d1b9f29a268a43a7d16ad4bed2e8b857 /options/m_property.h
parent4ebfe9851c63c8aa55292c01f23fedd9313ed191 (diff)
downloadmpv-17d91b9d4d2d208f4a847395198cdbbcad18de93.tar.bz2
mpv-17d91b9d4d2d208f4a847395198cdbbcad18de93.tar.xz
options: transition properties from flag to bool
Diffstat (limited to 'options/m_property.h')
-rw-r--r--options/m_property.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/options/m_property.h b/options/m_property.h
index 6ec537fa97..0f5b4bc2cf 100644
--- a/options/m_property.h
+++ b/options/m_property.h
@@ -176,7 +176,7 @@ char* m_properties_expand_string(const struct m_property *prop_list,
const char *str, void *ctx);
// Trivial helpers for implementing properties.
-int m_property_flag_ro(int action, void* arg, int var);
+int m_property_bool_ro(int action, void* arg, int var);
int m_property_int_ro(int action, void* arg, int var);
int m_property_int64_ro(int action, void* arg, int64_t var);
int m_property_float_ro(int action, void* arg, float var);
@@ -207,8 +207,8 @@ struct m_sub_property {
.type = {.type = CONF_TYPE_FLOAT}, .value = {.float_ = (f)}
#define SUB_PROP_DOUBLE(f) \
.type = {.type = CONF_TYPE_DOUBLE}, .value = {.double_ = (f)}
-#define SUB_PROP_FLAG(f) \
- .type = {.type = CONF_TYPE_FLAG}, .value = {.flag = (f)}
+#define SUB_PROP_BOOL(f) \
+ .type = {.type = CONF_TYPE_BOOL}, .value = {.bool_ = (f)}
#define SUB_PROP_PTS(f) \
.type = {.type = &m_option_type_time}, .value = {.double_ = (f)}