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
45e63d59
Commit
45e63d59
authored
Sep 19, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factor variable operations, as they're always the same for a type
parent
7b67031a
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
51 deletions
+56
-51
include/vlc_common.h
include/vlc_common.h
+0
-1
src/libvlc.h
src/libvlc.h
+2
-0
src/misc/variables.c
src/misc/variables.c
+46
-44
src/misc/variables.h
src/misc/variables.h
+8
-6
No files found.
include/vlc_common.h
View file @
45e63d59
...
@@ -139,7 +139,6 @@ static inline void __vlc_fourcc_to_char( vlc_fourcc_t fcc, char *psz_fourcc )
...
@@ -139,7 +139,6 @@ static inline void __vlc_fourcc_to_char( vlc_fourcc_t fcc, char *psz_fourcc )
typedef
struct
vlc_list_t
vlc_list_t
;
typedef
struct
vlc_list_t
vlc_list_t
;
typedef
struct
vlc_object_t
vlc_object_t
;
typedef
struct
vlc_object_t
vlc_object_t
;
typedef
struct
libvlc_int_t
libvlc_int_t
;
typedef
struct
libvlc_int_t
libvlc_int_t
;
typedef
struct
variable_t
variable_t
;
typedef
struct
date_t
date_t
;
typedef
struct
date_t
date_t
;
typedef
struct
dict_entry_t
dict_entry_t
;
typedef
struct
dict_entry_t
dict_entry_t
;
typedef
struct
dict_t
dict_t
;
typedef
struct
dict_t
dict_t
;
...
...
src/libvlc.h
View file @
45e63d59
...
@@ -25,6 +25,8 @@
...
@@ -25,6 +25,8 @@
#ifndef LIBVLC_LIBVLC_H
#ifndef LIBVLC_LIBVLC_H
# define LIBVLC_LIBVLC_H 1
# define LIBVLC_LIBVLC_H 1
typedef
struct
variable_t
variable_t
;
extern
const
char
vlc_usage
[];
extern
const
char
vlc_usage
[];
/* Hotkey stuff */
/* Hotkey stuff */
...
...
src/misc/variables.c
View file @
45e63d59
This diff is collapsed.
Click to expand it.
src/misc/variables.h
View file @
45e63d59
...
@@ -30,6 +30,13 @@
...
@@ -30,6 +30,13 @@
typedef
struct
callback_entry_t
callback_entry_t
;
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
;
/**
/**
* The structure describing a variable.
* The structure describing a variable.
* \note vlc_value_t is the common union for variable values
* \note vlc_value_t is the common union for variable values
...
@@ -46,12 +53,7 @@ struct variable_t
...
@@ -46,12 +53,7 @@ struct variable_t
/** The variable display name, mainly for use by the interfaces */
/** The variable display name, mainly for use by the interfaces */
char
*
psz_text
;
char
*
psz_text
;
/** A pointer to a comparison function */
const
variable_ops_t
*
ops
;
int
(
*
pf_cmp
)
(
vlc_value_t
,
vlc_value_t
);
/** A pointer to a duplication function */
void
(
*
pf_dup
)
(
vlc_value_t
*
);
/** A pointer to a deallocation function */
void
(
*
pf_free
)
(
vlc_value_t
*
);
/** Creation count: we only destroy the variable if it reaches 0 */
/** Creation count: we only destroy the variable if it reaches 0 */
int
i_usage
;
int
i_usage
;
...
...
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