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
939003c1
Commit
939003c1
authored
Sep 27, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OutputAll: add pure/const attributes
parent
a10f3a8a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
OutputAll.cxx
src/OutputAll.cxx
+1
-0
OutputAll.hxx
src/OutputAll.hxx
+5
-0
No files found.
src/OutputAll.cxx
View file @
939003c1
...
@@ -89,6 +89,7 @@ audio_output_find(const char *name)
...
@@ -89,6 +89,7 @@ audio_output_find(const char *name)
return
NULL
;
return
NULL
;
}
}
gcc_const
static
unsigned
static
unsigned
audio_output_config_count
(
void
)
audio_output_config_count
(
void
)
{
{
...
...
src/OutputAll.hxx
View file @
939003c1
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#define OUTPUT_ALL_H
#define OUTPUT_ALL_H
#include "replay_gain_info.h"
#include "replay_gain_info.h"
#include "gcc.h"
struct
AudioFormat
;
struct
AudioFormat
;
class
MusicBuffer
;
class
MusicBuffer
;
...
@@ -51,11 +52,13 @@ audio_output_all_finish(void);
...
@@ -51,11 +52,13 @@ audio_output_all_finish(void);
* Returns the total number of audio output devices, including those
* Returns the total number of audio output devices, including those
* who are disabled right now.
* who are disabled right now.
*/
*/
gcc_const
unsigned
int
audio_output_count
(
void
);
unsigned
int
audio_output_count
(
void
);
/**
/**
* Returns the "i"th audio output device.
* Returns the "i"th audio output device.
*/
*/
gcc_const
struct
audio_output
*
struct
audio_output
*
audio_output_get
(
unsigned
i
);
audio_output_get
(
unsigned
i
);
...
@@ -63,6 +66,7 @@ audio_output_get(unsigned i);
...
@@ -63,6 +66,7 @@ audio_output_get(unsigned i);
* Returns the audio output device with the specified name. Returns
* Returns the audio output device with the specified name. Returns
* NULL if the name does not exist.
* NULL if the name does not exist.
*/
*/
gcc_pure
struct
audio_output
*
struct
audio_output
*
audio_output_find
(
const
char
*
name
);
audio_output_find
(
const
char
*
name
);
...
@@ -163,6 +167,7 @@ audio_output_all_song_border(void);
...
@@ -163,6 +167,7 @@ audio_output_all_song_border(void);
* chunk. A negative value is returned when no chunk has been
* chunk. A negative value is returned when no chunk has been
* finished yet.
* finished yet.
*/
*/
gcc_pure
float
float
audio_output_all_get_elapsed_time
(
void
);
audio_output_all_get_elapsed_time
(
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