summaryrefslogtreecommitdiffstats
path: root/options/m_property.h
Commit message (Collapse)AuthorAgeFilesLines
* command: add helper function to split property pathswm42014-03-301-0/+6
| | | | | | We've just checked whether a sub-path started with "name/", but that changes behavior whether the property name has a trailing '/' or not. Using a helper function to split of path components avoids this problem.
* m_property: add mechanism to access properties as mpv_nodewm42014-02-241-0/+11
| | | | | | | | Allows retrieving properties by their native values (or something close to it), rather than having to go through string conversion. The caller could actually just copy the value itself and then use the m_option functions to convert it to mpv_node, but maybe it's more flexible this way.
* m_property: add a mechanism to organize a list of sub-propertieswm42014-02-161-0/+12
| | | | | This automatically adds a "count" sub-property, and for each entry in the range [0, count), a numbered sub-property to access the item.
* m_property: add a sub-property mechanismwm42014-02-161-1/+27
| | | | | | | This adds a mechanism for easier export of sub-properties. The following commits will make use of it to export fine grained information about certain things. The sub-property mechanism reduces the amount of code needed to export a data value to 1 line.
* m_property: mp_msg conversionswm42013-12-211-3/+5
| | | | | Includes some semi-crappy hacks to avoid changing too much code for this conversion (allowing NULL log argument for m_property_do()).
* Move options/config related files from mpvcore/ to options/wm42013-12-171-0/+142
Since m_option.h and options.h are extremely often included, a lot of files have to be changed. Moving path.c/h to options/ is a bit questionable, but since this is mainly about access to config files (which are also handled in options/), it's probably ok.