aboutsummaryrefslogtreecommitdiffstats
path: root/test/read_conf.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-09-24conf: handle fatal errors with GErrorMax Kellermann1-1/+8
Don't call g_error(), which will abort the process and dump core. This patch does not affect all the config_get_X() functions. These need some more refactoring.
2009-04-10test: added configuration file readerMax Kellermann1-34/+32
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-01-27zeroconf: corrected default service name usageMax Kellermann1-2/+2
The variable "serviceName" is initialized with SERVICE_NAME, but was overwritten with NULL when the setting is not configured.
2009-01-25use config_get_string() instead of config_get_param()Max Kellermann1-5/+1
config_get_string() is easier to use than config_get_param() because it unpacks the config_param struct.
2009-01-17conf: use config_get_bool() instead of getBoolConfigParam()Max Kellermann1-4/+2
2009-01-17conf: no CamelCase, part IMax Kellermann1-2/+2
Renamed functions, types, variables.
2009-01-08added missing explicit config.h includesMax Kellermann1-0/+1
2008-12-30zeroconf: eliminated strlen() usage from initZeroconf()Max Kellermann1-3/+1
To test if a string is empty, we can just see if the first byte is 0. No need to include string.h for strlen() here.
2008-12-30zeroconf: moved code to zeroconf-avahi.c and zeroconf-bonjour.cMax Kellermann1-555/+3
Moved implementation specific code to their own sources, internal declarations in zeroconf-internal.h.
2008-12-30zeroconf: fail if avahi service name is invalidMax Kellermann1-8/+4
If the configured avahi service name is invalid, abort MPD. Don't fall back to the default service name.
2008-12-29pcm: use GLib loggingMax Kellermann1-43/+42
2008-12-29removed os_compat.hMax Kellermann1-3/+2
Only include headers which are really needed. os_compat.h aimed to make MPD easily portable, but was never actually made portable.
2008-11-24zeroconf.c: replaced mpd_unused by G_GNUC_UNUSEDThomas Jansen1-4/+6
2008-10-17Makefile.am: don't compile disabled sourcesMax Kellermann1-4/+0
If a feature is disabled, don't compile the source file at all, disable it completely in Makefile.am instead.
2008-08-26enable -Wpointer-arith, -Wstrict-prototypesMax Kellermann1-4/+5
Also enable -Wunused-parameter - this forces us to add the gcc "unused" attribute to a lot of parameters (mostly library callback functions), but it's worth it during code refactorizations.
2008-01-03zeroconf: reformat (with mpd-indent.sh + manual tweaks)Eric Wong1-221/+245
Also, lower the impact of compiling this w/o zeroconf by making the init/teardown functions static no-ops. Eventually, we should separate the Bonjour and Avahi code into separate files and have callbacks registered for each one, avoiding the #ifdef mess we have now... git-svn-id: https://svn.musicpd.org/mpd/trunk@7132 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2008-01-03Cleanup #includes of standard system headers and put them in one placeEric Wong1-5/+1
This will make refactoring features easier, especially now that pthreads support and larger refactorings are on the horizon. Hopefully, this will make porting to other platforms (even non-UNIX-like ones for masochists) easier, too. os_compat.h will house all the #includes for system headers considered to be the "core" of MPD. Headers for optional features will be left to individual source files. git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-09-05conf: improved boolean config parameter handling from -keEric Wong1-4/+2
the force flag will issue FATAL() if an invalid value is specified git-svn-id: https://svn.musicpd.org/mpd/trunk@6857 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-09-02zeroconf: avoid passing NULLs to Avahi *_free() routinesEric Wong1-4/+6
This should fix Debian bug #428551 (mpd crashes when restarting the dbus daemon) git-svn-id: https://svn.musicpd.org/mpd/trunk@6844 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-03Define HAVE_ZEROCONF if Avahi or Bonjour support is enabled, so that we canJ. Alexander Treuman1-0/+2
silence a warning about an unused variable without using stupid checks for HAVE_AVAHI || HAVE_BONJOUR. git-svn-id: https://svn.musicpd.org/mpd/trunk@6471 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-03Oops, forgot to test that last bool commit. Fixing an error and warning.J. Alexander Treuman1-4/+4
git-svn-id: https://svn.musicpd.org/mpd/trunk@6470 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-03Making some bool options more consistent.J. Alexander Treuman1-5/+12
git-svn-id: https://svn.musicpd.org/mpd/trunk@6468 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-03allow zeroconf to be disabled.Patrik Weiskircher1-0/+9
git-svn-id: https://svn.musicpd.org/mpd/trunk@6467 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-02Adding a missing include.J. Alexander Treuman1-0/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@6462 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-02Added Bonjour zeroconf support. This works now natively on MacOS X.Patrik Weiskircher1-10/+106
I couldn't test mDNSResponder support on Linux, as Debian doesn't include it - but should work as well. git-svn-id: https://svn.musicpd.org/mpd/trunk@6453 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-06-01Removing the getBoundPort() function and just making boundPort an extern.J. Alexander Treuman1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@6445 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-05-15Changing "//" comments to "/* */" comments.J. Alexander Treuman1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@6112 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-04-05The massive copyright updateAvuton Olrich1-1/+1
git-svn-id: https://svn.musicpd.org/mpd/trunk@5834 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-01-14avahi: malloc => xmallocEric Wong1-2/+3
git-svn-id: https://svn.musicpd.org/mpd/trunk@5262 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-01-14avahi: use #ifdef instead of #if because AVAHI may not be defined at allEric Wong1-2/+2
git-svn-id: https://svn.musicpd.org/mpd/trunk@5259 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-01-14Don't initialize globals to zero (or NULL)Eric Wong1-4/+4
Some compilers and linkers aren't smart enough to optimize this, as global variables are implictly initialized to zero. As a result, binaries are a bit smaller as more goes in the .bss and less in the text section. git-svn-id: https://svn.musicpd.org/mpd/trunk@5254 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-01-14zeroconf: avoid mixing declarations and codeEric Wong1-15/+19
git-svn-id: https://svn.musicpd.org/mpd/trunk@5243 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2007-01-11Added zeroconf service publishing using avahiJim Ramsay1-0/+493
git-svn-id: https://svn.musicpd.org/mpd/trunk@5238 09075e82-0dd4-0310-85a5-a0d7c8717e4f