summaryrefslogtreecommitdiffstats
path: root/m_struct.h
diff options
context:
space:
mode:
Diffstat (limited to 'm_struct.h')
-rw-r--r--m_struct.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/m_struct.h b/m_struct.h
index bcf09dc86f..79c7c24f2f 100644
--- a/m_struct.h
+++ b/m_struct.h
@@ -19,6 +19,8 @@
#ifndef MPLAYER_M_STRUCT_H
#define MPLAYER_M_STRUCT_H
+#include "bstr.h"
+
/// \defgroup OptionsStruct Options struct
/// \ingroup Options
/// An API to manipulate structs using m_option.
@@ -87,8 +89,8 @@ m_struct_alloc(const m_struct_t* st);
* \param param New value of the field.
* \return 0 on error, 1 on success.
*/
-int
-m_struct_set(const m_struct_t* st, void* obj, const char* field, const char* param);
+int m_struct_set(const m_struct_t *st, void *obj, const char *field,
+ struct bstr param);
/// Reset a field (or all if field == NULL) to defaults.
/** \param st Struct definition.