summaryrefslogtreecommitdiffstats
path: root/m_property.h
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-22 14:26:30 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-22 14:26:30 +0000
commit6ec6fcb6f3542be162c9f5114dd010d5dd74ae62 (patch)
tree54efffe1be44cb2e4b71eaf1a4969754b2817497 /m_property.h
parent05249aeb3ada9d18f8d9599a5b683df84ec4a99e (diff)
downloadmpv-6ec6fcb6f3542be162c9f5114dd010d5dd74ae62.tar.bz2
mpv-6ec6fcb6f3542be162c9f5114dd010d5dd74ae62.tar.xz
Add the declarations for mp_property_find/do.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18190 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_property.h')
-rw-r--r--m_property.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/m_property.h b/m_property.h
index dc3e436cf6..269ff1b58f 100644
--- a/m_property.h
+++ b/m_property.h
@@ -37,6 +37,14 @@ void m_properties_print_help_list(m_option_t* list);
char* m_properties_expand_string(m_option_t* prop_list,char* str);
+// Helpers to use MPlayer's properties
+
+m_option_t* mp_property_find(char* name);
+
+int mp_property_do(char* name,int action, void* val);
+
+// Helpers for property implementations
+
#define M_PROPERTY_CLAMP(prop,val) do { \
if(((prop)->flags & M_OPT_MIN) && (val) < (prop)->min) \
(val) = (prop)->min; \