Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3fd49ca4
Commit
3fd49ca4
authored
Feb 13, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
var_GetChecked and var_SetChecked object auto-cast
parent
61f0547b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
include/vlc_variables.h
include/vlc_variables.h
+2
-0
src/misc/variables.c
src/misc/variables.c
+2
-0
No files found.
include/vlc_variables.h
View file @
3fd49ca4
...
@@ -147,7 +147,9 @@ VLC_EXPORT( int, var_Get, ( vlc_object_t *, const char *, vlc_value_t * ) );
...
@@ -147,7 +147,9 @@ VLC_EXPORT( int, var_Get, ( vlc_object_t *, const char *, vlc_value_t * ) );
#define var_Get(a,b,c) var_Get( VLC_OBJECT(a), b, c )
#define var_Get(a,b,c) var_Get( VLC_OBJECT(a), b, c )
VLC_EXPORT
(
int
,
var_SetChecked
,
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
)
);
VLC_EXPORT
(
int
,
var_SetChecked
,
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
)
);
#define var_SetChecked(o,n,t,v) var_SetChecked(VLC_OBJECT(o),n,t,v)
VLC_EXPORT
(
int
,
var_GetChecked
,
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
*
)
);
VLC_EXPORT
(
int
,
var_GetChecked
,
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
*
)
);
#define var_GetChecked(o,n,t,v) var_GetChecked(VLC_OBJECT(o),n,t,v)
VLC_EXPORT
(
int
,
var_GetAndSet
,
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
*
)
);
VLC_EXPORT
(
int
,
var_GetAndSet
,
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
*
)
);
VLC_EXPORT
(
int
,
var_Inherit
,
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
*
)
);
VLC_EXPORT
(
int
,
var_Inherit
,
(
vlc_object_t
*
,
const
char
*
,
int
,
vlc_value_t
*
)
);
...
...
src/misc/variables.c
View file @
3fd49ca4
...
@@ -734,6 +734,7 @@ int var_Type( vlc_object_t *p_this, const char *psz_name )
...
@@ -734,6 +734,7 @@ int var_Type( vlc_object_t *p_this, const char *psz_name )
return
i_type
;
return
i_type
;
}
}
#undef var_SetChecked
int
var_SetChecked
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
,
int
var_SetChecked
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
,
int
expected_type
,
vlc_value_t
val
)
int
expected_type
,
vlc_value_t
val
)
{
{
...
@@ -795,6 +796,7 @@ int var_Set( vlc_object_t *p_this, const char *psz_name, vlc_value_t val )
...
@@ -795,6 +796,7 @@ int var_Set( vlc_object_t *p_this, const char *psz_name, vlc_value_t val )
return
var_SetChecked
(
p_this
,
psz_name
,
0
,
val
);
return
var_SetChecked
(
p_this
,
psz_name
,
0
,
val
);
}
}
#undef var_GetChecked
int
var_GetChecked
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
,
int
var_GetChecked
(
vlc_object_t
*
p_this
,
const
char
*
psz_name
,
int
expected_type
,
vlc_value_t
*
p_val
)
int
expected_type
,
vlc_value_t
*
p_val
)
{
{
...
...
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