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
c1ba47be
Commit
c1ba47be
authored
Oct 25, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MixerAll, Volume: add "pure" attributes
parent
ac8e5be9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
MixerAll.hxx
src/MixerAll.hxx
+4
-0
Volume.hxx
src/Volume.hxx
+4
-0
No files found.
src/MixerAll.hxx
View file @
c1ba47be
...
@@ -25,10 +25,13 @@
...
@@ -25,10 +25,13 @@
#ifndef MPD_MIXER_ALL_HXX
#ifndef MPD_MIXER_ALL_HXX
#define MPD_MIXER_ALL_HXX
#define MPD_MIXER_ALL_HXX
#include "Compiler.h"
/**
/**
* Returns the average volume of all available mixers (range 0..100).
* Returns the average volume of all available mixers (range 0..100).
* Returns -1 if no mixer can be queried.
* Returns -1 if no mixer can be queried.
*/
*/
gcc_pure
int
int
mixer_all_get_volume
(
void
);
mixer_all_get_volume
(
void
);
...
@@ -46,6 +49,7 @@ mixer_all_set_volume(unsigned volume);
...
@@ -46,6 +49,7 @@ mixer_all_set_volume(unsigned volume);
* software mixers. See #software_mixer_plugin. This function fails
* software mixers. See #software_mixer_plugin. This function fails
* if no software mixer is configured.
* if no software mixer is configured.
*/
*/
gcc_pure
int
int
mixer_all_get_software_volume
(
void
);
mixer_all_get_software_volume
(
void
);
...
...
src/Volume.hxx
View file @
c1ba47be
...
@@ -20,12 +20,15 @@
...
@@ -20,12 +20,15 @@
#ifndef MPD_VOLUME_HXX
#ifndef MPD_VOLUME_HXX
#define MPD_VOLUME_HXX
#define MPD_VOLUME_HXX
#include "Compiler.h"
#include <stdio.h>
#include <stdio.h>
void
volume_init
(
void
);
void
volume_init
(
void
);
void
volume_finish
(
void
);
void
volume_finish
(
void
);
gcc_pure
int
volume_level_get
(
void
);
int
volume_level_get
(
void
);
bool
volume_level_change
(
unsigned
volume
);
bool
volume_level_change
(
unsigned
volume
);
...
@@ -41,6 +44,7 @@ void save_sw_volume_state(FILE *fp);
...
@@ -41,6 +44,7 @@ void save_sw_volume_state(FILE *fp);
* determine whether the state has changed and the state file should
* determine whether the state has changed and the state file should
* be saved.
* be saved.
*/
*/
gcc_pure
unsigned
unsigned
sw_volume_state_get_hash
(
void
);
sw_volume_state_get_hash
(
void
);
...
...
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