[vlc-devel] commit: variables: add var_CreategetAddress. ( Rémi Duraffort )
git version control
git at videolan.org
Sat Oct 10 17:37:06 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Oct 10 17:30:21 2009 +0200| [0957d357b60b09397e6ad7208388f29d03b7b535] | committer: Rémi Duraffort
variables: add var_CreategetAddress.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0957d357b60b09397e6ad7208388f29d03b7b535
---
include/vlc_variables.h | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/include/vlc_variables.h b/include/vlc_variables.h
index 5c84a7a..64876ee 100644
--- a/include/vlc_variables.h
+++ b/include/vlc_variables.h
@@ -555,6 +555,20 @@ static inline char *__var_CreateGetNonEmptyString( vlc_object_t *p_obj,
}
/**
+ * Create an address variable with inherit and get its value.
+ *
+ * \param p_obj The object that holds the variable
+ * \param psz_name The name of the variable
+ */
+LIBVLC_USED
+static inline char *__var_CreateGetAddress( vlc_object_t *p_obj,
+ const char *psz_name )
+{
+ __var_Create( p_obj, psz_name, VLC_VAR_ADDRESS | VLC_VAR_DOINHERIT );
+ return __var_GetAddress( p_obj, psz_name );
+}
+
+/**
* __var_CreateGetInteger() with automatic casting
*/
#define var_CreateGetInteger(a,b) __var_CreateGetInteger( VLC_OBJECT(a),b)
@@ -575,6 +589,10 @@ static inline char *__var_CreateGetNonEmptyString( vlc_object_t *p_obj,
*/
#define var_CreateGetString(a,b) __var_CreateGetString( VLC_OBJECT(a),b)
#define var_CreateGetNonEmptyString(a,b) __var_CreateGetNonEmptyString( VLC_OBJECT(a),b)
+/**
+ * __var_CreateGetString() with automatic casting
+ */
+#define var_CreateGetAddress(a,b) __var_CreateGetAddress( VLC_OBJECT(a),b)
/**
* Create a integer command variable with inherit and get its value.
More information about the vlc-devel
mailing list