summaryrefslogtreecommitdiffstats
path: root/options/m_property.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-24 20:02:32 +0100
committerwm4 <wm4@nowhere>2014-02-24 20:50:47 +0100
commit43ad09393cef89fd4ad4795ef98397f04597bfc9 (patch)
tree52cf6db45d4b5004b5259de5834f9b555f376fe9 /options/m_property.c
parent1e27d130a2c7d09ae9b9a97c7431f0a1c1d73ea2 (diff)
downloadmpv-43ad09393cef89fd4ad4795ef98397f04597bfc9.tar.bz2
mpv-43ad09393cef89fd4ad4795ef98397f04597bfc9.tar.xz
client API: add more data formats, add a structured data type
This adds declarations for new formats. The implementation will be added in the following commits. (It still compiles and runs with this commit, because it adds constants only.) The obvious new types are MPV_FORMAT_FLAG, MPV_FORMAT_INT64, MPV_FORMAT_DOUBLE. MPV_FORMAT_FLAG is a boolean, but to avoid nasty ABI issues or with languages that don't have a bool data type (C89), it uses int. Thus the format is not named MPV_FORMAT_BOOL, to avoid confusion. The MPV_FORMAT_NONE type (mpv_node) is a generic structured type, like a variant or, say, JSON. It can store strings/bools/numbers, as well as arrays and key/value pairs (with string keys only). The MPV_FORMAT_NODE_ARRAY and MPV_FORMAT_NODE_MAP types are used internally by mpv_node only and can't be used with most of the other API (like mpv_set_property()) directly.
Diffstat (limited to 'options/m_property.c')
0 files changed, 0 insertions, 0 deletions