aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-10-08player_control: no CamelCaseMax Kellermann1-1/+1
2009-09-25automatically update the database with Linux inotifyMax Kellermann1-0/+6
This patch implements a light-weight inotify library, and watches all directories below the music directory. It updates all directories where files changed after a delay of 5 seconds.
2009-09-24command: added command "rescan"Max Kellermann1-1/+1
"rescan" is the same as "update", but it discards existing songs in the database.
2009-09-24cmdline: handle fatal errors with GErrorMax Kellermann1-1/+6
Don't call g_error(), which will abort the process and dump core.
2009-09-24listen: handle fatal errors with GErrorMax Kellermann1-1/+8
Don't call g_error(), which will abort the process and dump core.
2009-09-24update: renamed directory_update_init() to update_enqueue()Max Kellermann1-1/+1
2009-09-20cmdline: removed options --create-db and --no-create-dbMax Kellermann1-12/+4
Both options are deprecated, and should not be used anymore. Many users get confused by their presence.
2009-07-22cmdline: renamed options.stderr to options.log_stderrEugeny N Dzhurinsky1-2/+2
On FreeBSD, "stderr" is a macro, and using this name for a struct member breaks the build. [mk: renamed _stderr to log_stderr]
2009-07-19daemon: added "group" configuration optionMichal Nazarewicz1-0/+1
The "group" configuration option is similar to "user" as it sets user set what group MPD shall run as. With "user" option, MPD changed GID to the GID of the user, however, more control could be desired. Moreover, the patch changes the way of checking whether no setuid(2)/setgid(2) is required -- previously user names were compered, now UID and GIDs are compered (ie. the one we already have (getuid(2)/getgid(2)) with the one we want to change to).
2009-07-15mapper: pass music and playlist directory to mapper_init()Max Kellermann1-1/+17
Added another glue function in main().
2009-07-15main: moved complex initialization code to glue functionsMax Kellermann1-17/+36
The glue_*() functions act as a glue between MPD's main() function and its libraries. They handle disabled features, and pass validated configuration options.
2009-07-15main: renamed openDB() to glue_db_init_and_load()Max Kellermann1-2/+2
No CamelCase.
2009-07-15cmdline: no CamelCaseMax Kellermann1-7/+7
Renamed type, variables and functions.
2009-07-14playlist: no CamelCaseMax Kellermann1-2/+2
2009-07-06main: fix "unused local variable" warningMax Kellermann1-0/+2
The variables "success" and "error" are only used if SQLite support is enabled.
2009-07-05sticker: use GError for error handlingMax Kellermann1-1/+6
2009-06-25conf: log unused/unknown block parametersMax Kellermann1-0/+2
2009-03-27Winsock2 is needed on MinGW (or other pure Win32 toolchains) forSean McNamara1-0/+36
networking, select(), ntohl(), etc.
2009-03-15log: removed DEBUG() and FATAL()Max Kellermann1-3/+3
Use GLib the logging functions g_debug(), g_error() instead.
2009-03-13all: Update copyright header.Avuton Olrich1-6/+7
This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy.
2009-03-06pipe: added music_buffer, rewrite music_pipeMax Kellermann1-4/+1
Turn the music_pipe into a simple music_chunk queue. The music_chunk allocation code is moved to music_buffer, and is now managed with a linked list instead of a ring buffer. Two separate music_pipe objects are used by the decoder for the "current" and the "next" song, which greatly simplifies the cross-fading code.
2009-03-03music_pipe: moved struct music_chunk to chunk.hMax Kellermann1-0/+1
2009-03-02database: db_load() returns GErrorMax Kellermann1-1/+5
Do error reporting with GLib's GError library.
2009-02-24listen: no CamelCaseMax Kellermann1-2/+2
Renamed functions.
2009-02-10output_all: no CamelCaseMax Kellermann1-2/+2
Renamed functions and variables.
2009-02-10audio: moved code to output_all.cMax Kellermann1-0/+1
Moved code which deals with all audio outputs at once into a separate library.
2009-02-04playlist: renamed global "playlist" variable to "g_playlist"Max Kellermann1-1/+0
Export the "g_playlist" variable, and pass it to all playlist functions. This way, we can split playlist.c easier into separate parts. The code which initializes the singleton variable is moved to playlist_global.c.
2009-02-02main: don't pass argv[0] to openDB()Max Kellermann1-6/+4
Don't mention the program name in the error message.
2009-02-02main: create database after daemonizationMax Kellermann1-8/+29
When the update thread is started before MPD has forked (for daemonization), it is killed, because threads do not survive a fork(). This induces an inconsistent state where MPD won't start any update thread at all, because it thinks the thread is already running.
2009-01-25mixer: configure legacy mixer before the audio outputsMax Kellermann1-1/+1
Reimplemented the legacy mixer configuration: copy the deprecated configuration values into the audio_output section. Don't configure the mixers twice (once for the audio_output, and a second time for the legacy values). This requires volume_init() to be called before initAudioDriver().
2009-01-25conf: const pointers in block get functionsMax Kellermann1-1/+1
All config_get_block_*() functions should accept constant config_param pointers.
2009-01-25stored_playlist: moved configuration variables from playlist.cMax Kellermann1-0/+2
Don't declare and export variables specific to stored playlists in playlist.c/playlist.h.
2009-01-25player_thread: start decoder thread in player threadMax Kellermann1-2/+0
Start the decoder thread when the player thread starts. The decoder thread is already stopped by the player thread.
2009-01-19sticker: new library for storing dynamic information about songsMax Kellermann1-0/+12
"Stickers" are pieces of information attached to existing MPD objects (e.g. song files, directories, albums). Clients can create arbitrary name/value pairs. MPD itself does not assume any special meaning in them.
2009-01-18daemon: pass "detach" flag to daemonize()Max Kellermann1-1/+1
This way, we don't have to pass the full "Options" object to daemonize().
2009-01-18daemon: added daemonize_init(), daemonize_finish()Max Kellermann1-1/+4
The constructor/destructor functions parse and free the configuration properly. This way, we don't have to load the pid file path more than once.
2009-01-18main: moved the save_state timer to state_file.cMax Kellermann1-18/+0
The state_file library should manage its own regular saves.
2009-01-18state_file: added state_file_init() and state_file_finish()Max Kellermann1-2/+3
The constructor/destructor interface should hide the functions read_state_file() and write_state_file().
2009-01-18conf: added config_get_path()Max Kellermann1-5/+6
config_get_path() is an simpler interface than parseConfigFilePath().
2009-01-18removed playerData.cMax Kellermann1-5/+55
Fetch the configuration variables buffered_chunks and buffered_before_play just when they are needed.
2009-01-18main: moved code to daemon.cMax Kellermann1-98/+3
Moved changeToUser(), cleanUpPidFile(), killFromPidFile() to daemon.c. These are daemonization functions.
2009-01-18mapper: make the music_directory optionalMax Kellermann1-1/+10
Without a music_directory, MPD is an excellent streaming client.
2009-01-18database: pass database file name to db_init()Max Kellermann1-1/+4
Don't include conf.h in database.c.
2009-01-18stats: use GTimer instead of time(NULL)Max Kellermann1-0/+1
time(NULL) shows the wrong results when the machine's clock is changed.
2009-01-18stats: no CamelCaseMax Kellermann1-1/+1
Renamed functions and types.
2009-01-17conf: no CamelCase, part IMax Kellermann1-5/+7
Renamed functions, types, variables.
2009-01-10main: remove "save_state" timer event on exitMax Kellermann1-1/+4
2009-01-10main: deinitialize main_notify on exitMax Kellermann1-0/+1
2009-01-08added missing explicit config.h includesMax Kellermann1-1/+1
2009-01-05configure.ac: use AC_CHECK_HEADERS to check for locale.hMax Kellermann1-2/+2
AC_CHECK_HEADERS defines HAVE_LOCALE_H, so we don't have to manually define HAVE_LOCALE.