Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
16951099
Commit
16951099
authored
Aug 08, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
player_control: inline trivial functions
parent
050ba302
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
40 deletions
+25
-40
player_control.c
src/player_control.c
+0
-30
player_control.h
src/player_control.h
+25
-10
No files found.
src/player_control.c
View file @
16951099
...
...
@@ -228,12 +228,6 @@ pc_get_status(struct player_control *pc, struct player_status *status)
player_unlock
(
pc
);
}
enum
player_state
pc_get_state
(
struct
player_control
*
pc
)
{
return
pc
->
state
;
}
void
pc_clear_error
(
struct
player_control
*
pc
)
{
...
...
@@ -243,12 +237,6 @@ pc_clear_error(struct player_control *pc)
player_unlock
(
pc
);
}
enum
player_error
pc_get_error
(
struct
player_control
*
pc
)
{
return
pc
->
error
;
}
static
char
*
pc_errored_song_uri
(
struct
player_control
*
pc
)
{
...
...
@@ -348,12 +336,6 @@ pc_set_cross_fade(struct player_control *pc, float cross_fade_seconds)
idle_add
(
IDLE_OPTIONS
);
}
float
pc_get_mixramp_db
(
const
struct
player_control
*
pc
)
{
return
pc
->
mixramp_db
;
}
void
pc_set_mixramp_db
(
struct
player_control
*
pc
,
float
mixramp_db
)
{
...
...
@@ -362,12 +344,6 @@ pc_set_mixramp_db(struct player_control *pc, float mixramp_db)
idle_add
(
IDLE_OPTIONS
);
}
float
pc_get_mixramp_delay
(
const
struct
player_control
*
pc
)
{
return
pc
->
mixramp_delay_seconds
;
}
void
pc_set_mixramp_delay
(
struct
player_control
*
pc
,
float
mixramp_delay_seconds
)
{
...
...
@@ -375,9 +351,3 @@ pc_set_mixramp_delay(struct player_control *pc, float mixramp_delay_seconds)
idle_add
(
IDLE_OPTIONS
);
}
double
pc_get_total_play_time
(
const
struct
player_control
*
pc
)
{
return
pc
->
total_play_time
;
}
src/player_control.h
View file @
16951099
...
...
@@ -213,8 +213,11 @@ pc_kill(struct player_control *pc);
void
pc_get_status
(
struct
player_control
*
pc
,
struct
player_status
*
status
);
enum
player_state
pc_get_state
(
struct
player_control
*
pc
);
static
inline
enum
player_state
pc_get_state
(
struct
player_control
*
pc
)
{
return
pc
->
state
;
}
void
pc_clear_error
(
struct
player_control
*
pc
);
...
...
@@ -227,8 +230,11 @@ pc_clear_error(struct player_control *pc);
char
*
pc_get_error_message
(
struct
player_control
*
pc
);
enum
player_error
pc_get_error
(
struct
player_control
*
pc
);
static
inline
enum
player_error
pc_get_error
(
struct
player_control
*
pc
)
{
return
pc
->
error
;
}
void
pc_stop
(
struct
player_control
*
pc
);
...
...
@@ -257,16 +263,25 @@ pc_get_cross_fade(const struct player_control *pc);
void
pc_set_mixramp_db
(
struct
player_control
*
pc
,
float
mixramp_db
);
float
pc_get_mixramp_db
(
const
struct
player_control
*
pc
);
static
inline
float
pc_get_mixramp_db
(
const
struct
player_control
*
pc
)
{
return
pc
->
mixramp_db
;
}
void
pc_set_mixramp_delay
(
struct
player_control
*
pc
,
float
mixramp_delay_seconds
);
float
pc_get_mixramp_delay
(
const
struct
player_control
*
pc
);
static
inline
float
pc_get_mixramp_delay
(
const
struct
player_control
*
pc
)
{
return
pc
->
mixramp_delay_seconds
;
}
double
pc_get_total_play_time
(
const
struct
player_control
*
pc
);
static
inline
double
pc_get_total_play_time
(
const
struct
player_control
*
pc
)
{
return
pc
->
total_play_time
;
}
#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