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
1c90b0c1
Commit
1c90b0c1
authored
Mar 03, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: change C-style prototypes, drop "(void)"
parent
cd776ff1
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
74 additions
and
53 deletions
+74
-53
AudioConfig.hxx
src/AudioConfig.hxx
+2
-1
IOThread.hxx
src/IOThread.hxx
+5
-5
Idle.hxx
src/Idle.hxx
+2
-2
LogInit.hxx
src/LogInit.hxx
+3
-2
Main.hxx
src/Main.hxx
+2
-2
Mapper.hxx
src/Mapper.hxx
+3
-2
Permission.hxx
src/Permission.hxx
+4
-2
PlaylistFile.hxx
src/PlaylistFile.hxx
+1
-1
ReplayGainConfig.hxx
src/ReplayGainConfig.hxx
+3
-2
Stats.hxx
src/Stats.hxx
+2
-1
ArchiveList.hxx
src/archive/ArchiveList.hxx
+4
-2
ArchivePlugin.hxx
src/archive/ArchivePlugin.hxx
+2
-2
Client.hxx
src/client/Client.hxx
+2
-1
AllCommands.cxx
src/command/AllCommands.cxx
+4
-2
AllCommands.hxx
src/command/AllCommands.hxx
+4
-2
ConfigGlobal.hxx
src/config/ConfigGlobal.hxx
+7
-3
InotifyUpdate.hxx
src/db/update/InotifyUpdate.hxx
+1
-1
DecoderList.hxx
src/decoder/DecoderList.hxx
+4
-2
DecoderPlugin.hxx
src/decoder/DecoderPlugin.hxx
+1
-1
ChainFilterPlugin.hxx
src/filter/plugins/ChainFilterPlugin.hxx
+1
-1
Init.hxx
src/input/Init.hxx
+2
-1
InputPlugin.hxx
src/input/InputPlugin.hxx
+1
-1
Volume.hxx
src/mixer/Volume.hxx
+1
-1
OutputPlugin.hxx
src/output/OutputPlugin.hxx
+1
-1
OutputState.hxx
src/output/OutputState.hxx
+1
-1
PlaylistPlugin.hxx
src/playlist/PlaylistPlugin.hxx
+1
-1
PlaylistRegistry.hxx
src/playlist/PlaylistRegistry.hxx
+2
-2
Daemon.hxx
src/unix/Daemon.hxx
+8
-8
No files found.
src/AudioConfig.hxx
View file @
1c90b0c1
...
...
@@ -26,6 +26,7 @@ AudioFormat
getOutputAudioFormat
(
AudioFormat
inFormat
);
/* make sure initPlayerData is called before this function!! */
void
initAudioConfig
(
void
);
void
initAudioConfig
();
#endif
src/IOThread.hxx
View file @
1c90b0c1
...
...
@@ -25,7 +25,7 @@
class
EventLoop
;
void
io_thread_init
(
void
);
io_thread_init
();
void
io_thread_start
();
...
...
@@ -36,7 +36,7 @@ io_thread_start();
* only.
*/
void
io_thread_run
(
void
);
io_thread_run
();
/**
* Ask the I/O thread to quit, but does not wait for it. Usually, you
...
...
@@ -44,10 +44,10 @@ io_thread_run(void);
* includes this.
*/
void
io_thread_quit
(
void
);
io_thread_quit
();
void
io_thread_deinit
(
void
);
io_thread_deinit
();
gcc_const
EventLoop
&
...
...
@@ -58,6 +58,6 @@ io_thread_get();
*/
gcc_pure
bool
io_thread_inside
(
void
);
io_thread_inside
();
#endif
src/Idle.hxx
View file @
1c90b0c1
...
...
@@ -78,13 +78,13 @@ idle_add(unsigned flags);
* Atomically reads and resets the global idle flags value.
*/
unsigned
idle_get
(
void
);
idle_get
();
/**
* Get idle names
*/
const
char
*
const
*
idle_get_names
(
void
);
idle_get_names
();
/**
* Parse an idle name and return its mask. Returns 0 if the given
...
...
src/LogInit.hxx
View file @
1c90b0c1
...
...
@@ -37,10 +37,11 @@ bool
log_init
(
bool
verbose
,
bool
use_stdout
,
Error
&
error
);
void
log_deinit
(
void
);
log_deinit
();
void
setup_log_output
(
bool
use_stdout
);
int
cycle_log_files
(
void
);
int
cycle_log_files
();
#endif
/* LOG_H */
src/Main.hxx
View file @
1c90b0c1
...
...
@@ -61,7 +61,7 @@ win32_main(int argc, char *argv[]);
* This function should be called just before entering main loop.
*/
void
win32_app_started
(
void
);
win32_app_started
();
/**
* When running as a service reports to service control manager
...
...
@@ -71,7 +71,7 @@ win32_app_started(void);
* This function should be called just after leaving main loop.
*/
void
win32_app_stopping
(
void
);
win32_app_stopping
();
#endif
...
...
src/Mapper.hxx
View file @
1c90b0c1
...
...
@@ -36,7 +36,8 @@ class AllocatedPath;
void
mapper_init
(
AllocatedPath
&&
playlist_dir
);
void
mapper_finish
(
void
);
void
mapper_finish
();
#ifdef ENABLE_DATABASE
...
...
@@ -68,7 +69,7 @@ map_fs_to_utf8(Path path_fs);
*/
gcc_const
const
AllocatedPath
&
map_spl_path
(
void
);
map_spl_path
();
/**
* Maps a playlist name (without the ".m3u" suffix) to a file system
...
...
src/Permission.hxx
View file @
1c90b0c1
...
...
@@ -28,8 +28,10 @@ static constexpr unsigned PERMISSION_ADMIN = 8;
int
getPermissionFromPassword
(
char
const
*
password
,
unsigned
*
permission
);
unsigned
getDefaultPermissions
(
void
);
unsigned
getDefaultPermissions
();
void
initPermissions
(
void
);
void
initPermissions
();
#endif
src/PlaylistFile.hxx
View file @
1c90b0c1
...
...
@@ -36,7 +36,7 @@ extern bool playlist_saveAbsolutePaths;
* Perform some global initialization, e.g. load configuration values.
*/
void
spl_global_init
(
void
);
spl_global_init
();
/**
* Determines whether the specified string is a valid name for a
...
...
src/ReplayGainConfig.hxx
View file @
1c90b0c1
...
...
@@ -29,14 +29,15 @@ extern float replay_gain_preamp;
extern
float
replay_gain_missing_preamp
;
extern
bool
replay_gain_limit
;
void
replay_gain_global_init
(
void
);
void
replay_gain_global_init
();
/**
* Returns the current replay gain mode as a machine-readable string.
*/
gcc_pure
const
char
*
replay_gain_get_mode_string
(
void
);
replay_gain_get_mode_string
();
/**
* Sets the replay gain mode, parsed from a string.
...
...
src/Stats.hxx
View file @
1c90b0c1
...
...
@@ -22,7 +22,8 @@
class
Client
;
void
stats_global_init
(
void
);
void
stats_global_init
();
void
stats_invalidate
();
...
...
src/archive/ArchiveList.hxx
View file @
1c90b0c1
...
...
@@ -39,9 +39,11 @@ const ArchivePlugin *
archive_plugin_from_name
(
const
char
*
name
);
/* this is where we "load" all the "plugins" ;-) */
void
archive_plugin_init_all
(
void
);
void
archive_plugin_init_all
();
/* this is where we "unload" all the "plugins" */
void
archive_plugin_deinit_all
(
void
);
void
archive_plugin_deinit_all
();
#endif
src/archive/ArchivePlugin.hxx
View file @
1c90b0c1
...
...
@@ -32,13 +32,13 @@ struct ArchivePlugin {
* have/need one this must false if there is an error and
* true otherwise
*/
bool
(
*
init
)(
void
);
bool
(
*
init
)();
/**
* optional, set this to nullptr if the archive plugin doesn't
* have/need one
*/
void
(
*
finish
)(
void
);
void
(
*
finish
)();
/**
* tryes to open archive file and associates handle with archive
...
...
src/client/Client.hxx
View file @
1c90b0c1
...
...
@@ -200,7 +200,8 @@ private:
virtual
void
OnTimeout
()
override
;
};
void
client_manager_init
(
void
);
void
client_manager_init
();
void
client_new
(
EventLoop
&
loop
,
Partition
&
partition
,
...
...
src/command/AllCommands.cxx
View file @
1c90b0c1
...
...
@@ -257,7 +257,8 @@ handle_not_commands(Client &client, gcc_unused ConstBuffer<const char *> args)
return
CommandResult
::
OK
;
}
void
command_init
(
void
)
void
command_init
()
{
#ifndef NDEBUG
/* ensure that the command list is sorted */
...
...
@@ -266,7 +267,8 @@ void command_init(void)
#endif
}
void
command_finish
(
void
)
void
command_finish
()
{
}
...
...
src/command/AllCommands.hxx
View file @
1c90b0c1
...
...
@@ -24,9 +24,11 @@
class
Client
;
void
command_init
(
void
);
void
command_init
();
void
command_finish
(
void
);
void
command_finish
();
CommandResult
command_process
(
Client
&
client
,
unsigned
num
,
char
*
line
);
...
...
src/config/ConfigGlobal.hxx
View file @
1c90b0c1
...
...
@@ -29,14 +29,18 @@ class AllocatedPath;
struct
config_param
;
struct
ConfigBlock
;
void
config_global_init
(
void
);
void
config_global_finish
(
void
);
void
config_global_init
();
void
config_global_finish
();
/**
* Call this function after all configuration has been evaluated. It
* checks for unused parameters, and logs warnings.
*/
void
config_global_check
(
void
);
void
config_global_check
();
bool
ReadConfigFile
(
Path
path
,
Error
&
error
);
...
...
src/db/update/InotifyUpdate.hxx
View file @
1c90b0c1
...
...
@@ -32,6 +32,6 @@ mpd_inotify_init(EventLoop &loop, Storage &storage, UpdateService &update,
unsigned
max_depth
);
void
mpd_inotify_finish
(
void
);
mpd_inotify_finish
();
#endif
src/decoder/DecoderList.hxx
View file @
1c90b0c1
...
...
@@ -34,10 +34,12 @@ const struct DecoderPlugin *
decoder_plugin_from_name
(
const
char
*
name
);
/* this is where we "load" all the "plugins" ;-) */
void
decoder_plugin_init_all
(
void
);
void
decoder_plugin_init_all
();
/* this is where we "unload" all the "plugins" */
void
decoder_plugin_deinit_all
(
void
);
void
decoder_plugin_deinit_all
();
template
<
typename
F
>
static
inline
const
DecoderPlugin
*
...
...
src/decoder/DecoderPlugin.hxx
View file @
1c90b0c1
...
...
@@ -50,7 +50,7 @@ struct DecoderPlugin {
* Deinitialize a decoder plugin which was initialized
* successfully. Optional method.
*/
void
(
*
finish
)(
void
);
void
(
*
finish
)();
/**
* Decode a stream (data read from an #InputStream object).
...
...
src/filter/plugins/ChainFilterPlugin.hxx
View file @
1c90b0c1
...
...
@@ -33,7 +33,7 @@ class Filter;
* Creates a new filter chain.
*/
Filter
*
filter_chain_new
(
void
);
filter_chain_new
();
/**
* Appends a new filter at the end of the filter chain. You must call
...
...
src/input/Init.hxx
View file @
1c90b0c1
...
...
@@ -31,6 +31,7 @@ input_stream_global_init(Error &error);
/**
* Deinitializes this library and all #InputStream implementations.
*/
void
input_stream_global_finish
(
void
);
void
input_stream_global_finish
();
#endif
src/input/InputPlugin.hxx
View file @
1c90b0c1
...
...
@@ -75,7 +75,7 @@ struct InputPlugin {
* Global deinitialization. Called once before MPD shuts
* down (only if init() has returned true).
*/
void
(
*
finish
)(
void
);
void
(
*
finish
)();
InputStream
*
(
*
open
)(
const
char
*
uri
,
Mutex
&
mutex
,
Cond
&
cond
,
...
...
src/mixer/Volume.hxx
View file @
1c90b0c1
...
...
@@ -49,6 +49,6 @@ save_sw_volume_state(BufferedOutputStream &os);
*/
gcc_pure
unsigned
sw_volume_state_get_hash
(
void
);
sw_volume_state_get_hash
();
#endif
src/output/OutputPlugin.hxx
View file @
1c90b0c1
...
...
@@ -44,7 +44,7 @@ struct AudioOutputPlugin {
* Test if this plugin can provide a default output, in case
* none has been configured. This method is optional.
*/
bool
(
*
test_default_device
)(
void
);
bool
(
*
test_default_device
)();
/**
* Configure and initialize the device, but do not open it
...
...
src/output/OutputState.hxx
View file @
1c90b0c1
...
...
@@ -41,6 +41,6 @@ audio_output_state_save(BufferedOutputStream &os,
* whether the state has changed and the state file should be saved.
*/
unsigned
audio_output_state_get_version
(
void
);
audio_output_state_get_version
();
#endif
src/playlist/PlaylistPlugin.hxx
View file @
1c90b0c1
...
...
@@ -44,7 +44,7 @@ struct playlist_plugin {
* Deinitialize a plugin which was initialized successfully.
* Optional method.
*/
void
(
*
finish
)(
void
);
void
(
*
finish
)();
/**
* Opens the playlist on the specified URI. This URI has
...
...
src/playlist/PlaylistRegistry.hxx
View file @
1c90b0c1
...
...
@@ -37,13 +37,13 @@ extern const struct playlist_plugin *const playlist_plugins[];
* Initializes all playlist plugins.
*/
void
playlist_list_global_init
(
void
);
playlist_list_global_init
();
/**
* Deinitializes all playlist plugins.
*/
void
playlist_list_global_finish
(
void
);
playlist_list_global_finish
();
/**
* Opens a playlist by its URI.
...
...
src/unix/Daemon.hxx
View file @
1c90b0c1
...
...
@@ -33,10 +33,10 @@ daemonize_init(const char *user, const char *group, AllocatedPath &&pidfile)
#ifndef WIN32
void
daemonize_finish
(
void
);
daemonize_finish
();
#else
static
inline
void
daemonize_finish
(
void
)
daemonize_finish
()
{
/* nop */
}
#endif
...
...
@@ -46,11 +46,11 @@ daemonize_finish(void)
*/
#ifndef WIN32
void
daemonize_kill
(
void
);
daemonize_kill
();
#else
#include "system/FatalError.hxx"
static
inline
void
daemonize_kill
(
void
)
daemonize_kill
()
{
FatalError
(
"--kill is not available on WIN32"
);
}
...
...
@@ -61,10 +61,10 @@ daemonize_kill(void)
*/
#ifndef WIN32
void
daemonize_close_stdin
(
void
);
daemonize_close_stdin
();
#else
static
inline
void
daemonize_close_stdin
(
void
)
{}
daemonize_close_stdin
()
{}
#endif
/**
...
...
@@ -72,10 +72,10 @@ daemonize_close_stdin(void) {}
*/
#ifndef WIN32
void
daemonize_set_user
(
void
);
daemonize_set_user
();
#else
static
inline
void
daemonize_set_user
(
void
)
daemonize_set_user
()
{
/* nop */
}
#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