aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-12-29main: disable non-portable code on WIN32Max Kellermann1-0/+14
Disable changeToUser(), daemonize(), killFromPidFile().
2008-12-29main: use g_setenv() instead of setenv()Max Kellermann1-42/+1
Removed the fallback setenv() implementation for solaris.
2008-12-29main: use GLib loggingMax Kellermann1-33/+34
2008-12-29removed os_compat.hMax Kellermann1-1/+8
Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
2008-12-28tag & tag_pool: migrate from pthread to glib threadsThomas Jansen1-0/+3
2008-12-28songvec: migrate from pthread to glib threadsThomas Jansen1-0/+3
2008-12-28dirvec: migrate from pthread to glib threadsThomas Jansen1-0/+3
2008-12-28idle: migrate from pthread to glib threadsThomas Jansen1-0/+2
2008-12-28log: merged initLog() and open_log_files().Max Kellermann1-3/+1
The logging library currently has 3 constructor functions: initLog(), open_log_files(), setup_log_output(), called in this order. Merged the first two.
2008-12-27moved command line parser to cmdline.cMax Kellermann1-137/+1
2008-12-27disable archive API without pluginsMax Kellermann1-1/+10
When there are no archive plugins, we do not need the archive API at all. Drop all its overhead.
2008-12-16new archive api, input_archive streamViliam Mateicka1-0/+8
2008-11-27update: added update_global_init() and update_global_finish()Max Kellermann1-0/+2
Those two functions are called when MPD starts and exits. It allows the update library to perform global initialization and deinitialization. The implementations are currently empty.
2008-11-25main: destroy the save_state timer on exitMax Kellermann1-0/+2
Make valgrind happier.
2008-11-21state_file: save state_file every 5 minutesMax Kellermann1-0/+9
When MPD quits in a non-clean way, the state file isn't written, and on the next start, MPD time warps to the previous clean shutdown. Save the state file every 5 minutes; this will probably be configurable at a later time. Note that we don't set a wakeup timer for that: when there is no MPD traffic, MPD won't wake up to save the state file. This minor bug is tolerated, because usually there is no change in MPD's state when the main thread is idle.
2008-11-11replay_gain: no CamelCaseMax Kellermann1-1/+1
Renamed functions and variables.
2008-11-11replay_gain: renamed sources to replay_gain.c, replay_gain.hMax Kellermann1-1/+1
No CamelCase file names.
2008-11-05main: print usage to stdoutMax Kellermann1-26/+25
Using the logging library here is inappropriate.
2008-11-05log: removed warning bufferMax Kellermann1-1/+0
The warning buffer is a complex piece of code for no good reason. Remove it and find a better solution, e.g. open the log file earlier.
2008-11-05main: initialize locale (LC_CTYPE)Max Kellermann1-0/+9
Initialize libc's locale functions. Currently, we are only interested in LC_CTYPE (character classification), because this is what is used by GLib's g_get_charset().
2008-11-05path: no CamelCaseMax Kellermann1-2/+2
Rename variables and functions.
2008-11-05enable GLib threadingMax Kellermann1-0/+3
Call g_thread_init() from main() to enable the GLib features which make it thread safe.
2008-11-05main: don't close all file descriptors on startupMax Kellermann1-11/+0
Removed closeAllFDs(). The caller is responsible for closing all file handles.
2008-11-02music_pipe: renamed ob_* functions to music_pipe_*Max Kellermann1-2/+2
Rename all functions to the new prefix.
2008-11-02renamed outputBuffer.[ch] to pipe.[ch]Max Kellermann1-1/+1
No CamelCase in the file name. The output_buffer struct is going to be renamed to music_pipe. There are so many buffer levels in MPD, and calling this one "output buffer" is wrong, because it's not the last buffer before the music reaches the output devices.
2008-10-28utils: use g_str_has_prefix() instead of prefixcmp()Max Kellermann1-2/+3
Remove duplicated code from MPD.
2008-10-26input_stream: no CamelCaseMax Kellermann1-1/+1
Renamed all functions and variables.
2008-10-26input_stream: renamed sources, no CamelCaseMax Kellermann1-1/+1
Renamed inputStream.c and inputStream_file.c.
2008-10-26input_stream: added input_stream_global_finish()Max Kellermann1-0/+1
The hook input_stream_global_finish() deinitializes global structures of all input stream implementations.
2008-10-22command: no CamelCaseMax Kellermann1-2/+2
Eliminate CamelCase in all public and static functions.
2008-10-15mapper: moved musicDir initialization from path.cMax Kellermann1-0/+3
Moved the musicDir variable and its initialization code from path.c to mapper.c.
2008-10-14command: added command "idle"Max Kellermann1-0/+9
"idle" waits until something noteworthy happens on the server, e.g. song change, playlist modified, database updated. This allows clients to keep up to date without polling.
2008-10-14changed package name to "mpd-mk", updated version numberMax Kellermann1-1/+2
This git branch has become a real MPD fork now. Time to change the package name to the code name "mpd-mk". Set the version number to "0.14~git" to mark this as a non-released version.
2008-10-09update: don't export updateDirectory()Max Kellermann1-1/+2
If the user requests database update during startup, call directory_update_init(). This should be changed to fully asynchronous update later. For this to work, main_notify has to be initialized before db_init().
2008-10-08database: renamed functions, "db_" prefix and no CamelCaseMax Kellermann1-6/+6
Yet another CamelCase removal patch.
2008-10-08directory: moved code to database.cMax Kellermann1-1/+1
Taming the directory.c monster, part II: move the database management stuff to database. directory.c should only contain code which works on directory objects.
2008-10-08directory: moved code to update.cMax Kellermann1-0/+1
The source directory.c mixes several libraries: directory object management, database management and database update, resulting in a 1000+ line monster. Move the whole database update code to update.c.
2008-09-29directory: remove "Mp3" referencesEric Wong1-3/+3
MPD has supported more audio formats than just MP3 for over five years...
2008-09-24notify: added notify_deinit()Max Kellermann1-0/+4
Destroy the mutex when it is not used anymore.
2008-09-23directory: update do its work inside a threadEric Wong1-1/+1
A lot of the preparation was needed (and done in previous months) in making update thread-safe, but here it is. This was the first thing I made work inside a thread when I started mpd-uclinux many years ago, and also the last thing I've done in mainline mpd to work inside a thread, go figure.
2008-09-23start using prefixcmp()Eric Wong1-1/+1
LOC reduction and less noise makes things easier for tired old folks to follow.
2008-09-08output: static audio_output_plugin list as arrayMax Kellermann1-1/+0
Instead of having to register each output plugin, store them statically in an array. This eliminates the need for the List library here, and saves some small allocations during startup.
2008-08-29tag: renamed functions, no CamelCaseMax Kellermann1-1/+1
2008-08-28client: renamed all public functionsMax Kellermann1-4/+4
Functions which operate on the whole client list are prefixed with "client_manager_", and functions which handle just one client just get "client_".
2008-08-28renamed interface.c to client.cMax Kellermann1-1/+1
I don't believe "interface" is a good name for something like "connection by a client to MPD", let's call it "client". This is the first patch in the series which changes the name, beginning with the file name.
2008-08-28include cleanupMax Kellermann1-1/+0
Only include headers which are really needed.
2008-08-26moved code to pc_init(), dc_init()Max Kellermann1-0/+6
2008-08-26renamed player.c to player_control.cMax Kellermann1-1/+1
Give player.c a better name, meaning that the code is used to control the player thread.
2008-08-26renamed decoderInit() to decoder_thread_start()Max Kellermann1-1/+1
2008-08-26renamed decode.c to decoder_thread.cMax Kellermann1-1/+1
It should be obvious in which thread or context a function is being executed at runtime. The code which was left in decode.c is for the decoder thread itself; give the file a better name.