Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
0a201d9d
Commit
0a201d9d
authored
Jul 07, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables: cosmetics.
parent
651b9c8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
include/vlc_variables.h
include/vlc_variables.h
+17
-10
No files found.
include/vlc_variables.h
View file @
0a201d9d
...
@@ -179,12 +179,10 @@ VLC_EXPORT( int, __var_TriggerCallback, ( vlc_object_t *, const char * ) );
...
@@ -179,12 +179,10 @@ VLC_EXPORT( int, __var_TriggerCallback, ( vlc_object_t *, const char * ) );
* __var_AddCallback() with automatic casting
* __var_AddCallback() with automatic casting
*/
*/
#define var_AddCallback(a,b,c,d) __var_AddCallback( VLC_OBJECT(a), b, c, d )
#define var_AddCallback(a,b,c,d) __var_AddCallback( VLC_OBJECT(a), b, c, d )
/**
/**
* __var_DelCallback() with automatic casting
* __var_DelCallback() with automatic casting
*/
*/
#define var_DelCallback(a,b,c,d) __var_DelCallback( VLC_OBJECT(a), b, c, d )
#define var_DelCallback(a,b,c,d) __var_DelCallback( VLC_OBJECT(a), b, c, d )
/**
/**
* __var_TriggerCallback() with automatic casting
* __var_TriggerCallback() with automatic casting
*/
*/
...
@@ -207,7 +205,7 @@ static inline int __var_SetInteger( vlc_object_t *p_obj, const char *psz_name, i
...
@@ -207,7 +205,7 @@ static inline int __var_SetInteger( vlc_object_t *p_obj, const char *psz_name, i
val
.
i_int
=
i
;
val
.
i_int
=
i
;
return
var_SetChecked
(
p_obj
,
psz_name
,
VLC_VAR_INTEGER
,
val
);
return
var_SetChecked
(
p_obj
,
psz_name
,
VLC_VAR_INTEGER
,
val
);
}
}
#define var_SetInteger(a,b,c) __var_SetInteger( VLC_OBJECT(a),b,c)
/**
/**
* Set the value of an boolean variable
* Set the value of an boolean variable
*
*
...
@@ -276,7 +274,6 @@ static inline int __var_SetVoid( vlc_object_t *p_obj, const char *psz_name )
...
@@ -276,7 +274,6 @@ static inline int __var_SetVoid( vlc_object_t *p_obj, const char *psz_name )
val
.
b_bool
=
true
;
val
.
b_bool
=
true
;
return
var_SetChecked
(
p_obj
,
psz_name
,
VLC_VAR_VOID
,
val
);
return
var_SetChecked
(
p_obj
,
psz_name
,
VLC_VAR_VOID
,
val
);
}
}
#define var_SetVoid(a,b) __var_SetVoid( VLC_OBJECT(a),b)
/**
/**
* Set the value of a pointer variable
* Set the value of a pointer variable
...
@@ -286,20 +283,21 @@ static inline int __var_SetVoid( vlc_object_t *p_obj, const char *psz_name )
...
@@ -286,20 +283,21 @@ static inline int __var_SetVoid( vlc_object_t *p_obj, const char *psz_name )
* \param ptr The new pointer value of this variable
* \param ptr The new pointer value of this variable
*/
*/
static
inline
static
inline
int
var_SetAddress
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
,
void
*
ptr
)
int
__
var_SetAddress
(
vlc_object_t
*
p_obj
,
const
char
*
psz_name
,
void
*
ptr
)
{
{
vlc_value_t
val
;
vlc_value_t
val
;
val
.
p_address
=
ptr
;
val
.
p_address
=
ptr
;
return
var_SetChecked
(
p_obj
,
psz_name
,
VLC_VAR_ADDRESS
,
val
);
return
var_SetChecked
(
p_obj
,
psz_name
,
VLC_VAR_ADDRESS
,
val
);
}
}
#define var_SetAddress(o, n, p) var_SetAddress(VLC_OBJECT(o), n, p)
/**
* __var_SetInteger() with automatic casting
*/
#define var_SetInteger(a,b,c) __var_SetInteger( VLC_OBJECT(a),b,c)
/**
/**
* __var_SetBool() with automatic casting
* __var_SetBool() with automatic casting
*/
*/
#define var_SetBool(a,b,c) __var_SetBool( VLC_OBJECT(a),b,c)
#define var_SetBool(a,b,c) __var_SetBool( VLC_OBJECT(a),b,c)
/**
/**
* __var_SetTime() with automatic casting
* __var_SetTime() with automatic casting
*/
*/
...
@@ -312,6 +310,15 @@ int var_SetAddress( vlc_object_t *p_obj, const char *psz_name, void *ptr )
...
@@ -312,6 +310,15 @@ int var_SetAddress( vlc_object_t *p_obj, const char *psz_name, void *ptr )
* __var_SetString() with automatic casting
* __var_SetString() with automatic casting
*/
*/
#define var_SetString(a,b,c) __var_SetString( VLC_OBJECT(a),b,c)
#define var_SetString(a,b,c) __var_SetString( VLC_OBJECT(a),b,c)
/**
* __var_SetVoid() with automatic casting
*/
#define var_SetVoid(a,b) __var_SetVoid( VLC_OBJECT(a),b)
/**
* __var_SetAddress() with automatic casting
*/
#define var_SetAddress(o, n, p) __var_SetAddress(VLC_OBJECT(o), n, p)
/**
/**
* Get an integer value
* Get an integer value
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment