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
499145b8
Commit
499145b8
authored
May 21, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables: privatize internal variable data types
parent
af4bb51c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
55 deletions
+54
-55
src/misc/variables.c
src/misc/variables.c
+54
-1
src/misc/variables.h
src/misc/variables.h
+0
-54
No files found.
src/misc/variables.c
View file @
499145b8
...
...
@@ -45,7 +45,8 @@
/*****************************************************************************
* Private types
*****************************************************************************/
struct
callback_entry_t
typedef
struct
callback_entry_t
{
union
{
...
...
@@ -54,6 +55,58 @@ struct callback_entry_t
void
*
p_callback
;
}
u
;
void
*
p_data
;
}
callback_entry_t
;
typedef
struct
variable_ops_t
{
int
(
*
pf_cmp
)
(
vlc_value_t
,
vlc_value_t
);
void
(
*
pf_dup
)
(
vlc_value_t
*
);
void
(
*
pf_free
)
(
vlc_value_t
*
);
}
variable_ops_t
;
typedef
struct
callback_table_t
{
int
i_entries
;
callback_entry_t
*
p_entries
;
}
callback_table_t
;
/**
* The structure describing a variable.
* \note vlc_value_t is the common union for variable values
*/
struct
variable_t
{
char
*
psz_name
;
/**< The variable unique name (must be first) */
/** The variable's exported value */
vlc_value_t
val
;
/** The variable display name, mainly for use by the interfaces */
char
*
psz_text
;
const
variable_ops_t
*
ops
;
int
i_type
;
/**< The type of the variable */
unsigned
i_usage
;
/**< Reference count */
/** If the variable has min/max/step values */
vlc_value_t
min
,
max
,
step
;
/** Index of the default choice, if the variable is to be chosen in
* a list */
int
i_default
;
/** List of choices */
vlc_list_t
choices
;
/** List of friendly names for the choices */
vlc_list_t
choices_text
;
/** Set to TRUE if the variable is in a callback */
bool
b_incallback
;
/** Registered value callbacks */
callback_table_t
value_callbacks
;
/** Registered list callbacks */
callback_table_t
list_callbacks
;
};
/*****************************************************************************
...
...
src/misc/variables.h
View file @
499145b8
...
...
@@ -58,60 +58,6 @@ struct vlc_object_internals
void
DumpVariables
(
vlc_object_t
*
obj
);
typedef
struct
callback_entry_t
callback_entry_t
;
typedef
struct
variable_ops_t
{
int
(
*
pf_cmp
)
(
vlc_value_t
,
vlc_value_t
);
void
(
*
pf_dup
)
(
vlc_value_t
*
);
void
(
*
pf_free
)
(
vlc_value_t
*
);
}
variable_ops_t
;
typedef
struct
callback_table_t
{
int
i_entries
;
callback_entry_t
*
p_entries
;
}
callback_table_t
;
/**
* The structure describing a variable.
* \note vlc_value_t is the common union for variable values
*/
struct
variable_t
{
char
*
psz_name
;
/**< The variable unique name (must be first) */
/** The variable's exported value */
vlc_value_t
val
;
/** The variable display name, mainly for use by the interfaces */
char
*
psz_text
;
const
variable_ops_t
*
ops
;
int
i_type
;
/**< The type of the variable */
unsigned
i_usage
;
/**< Reference count */
/** If the variable has min/max/step values */
vlc_value_t
min
,
max
,
step
;
/** Index of the default choice, if the variable is to be chosen in
* a list */
int
i_default
;
/** List of choices */
vlc_list_t
choices
;
/** List of friendly names for the choices */
vlc_list_t
choices_text
;
/** Set to TRUE if the variable is in a callback */
bool
b_incallback
;
/** Registered value callbacks */
callback_table_t
value_callbacks
;
/** Registered list callbacks */
callback_table_t
list_callbacks
;
};
extern
void
var_DestroyAll
(
vlc_object_t
*
);
#endif
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