Code

ncmpc.git
7 years agompdclient: move code to mpdclient_invoke_error_callback()
Max Kellermann [Fri, 17 Mar 2017 21:47:32 +0000 (22:47 +0100)]
mpdclient: move code to mpdclient_invoke_error_callback()

7 years agompdclient: include cleanup
Max Kellermann [Fri, 17 Mar 2017 21:45:14 +0000 (22:45 +0100)]
mpdclient: include cleanup

7 years agompdclient: remove unused macro BUFSIZE
Max Kellermann [Fri, 17 Mar 2017 21:44:12 +0000 (22:44 +0100)]
mpdclient: remove unused macro BUFSIZE

7 years agompdclient: remove unused function compare_filelistentry_format()
Max Kellermann [Fri, 17 Mar 2017 21:43:28 +0000 (22:43 +0100)]
mpdclient: remove unused function compare_filelistentry_format()

7 years agomain: move mpd_glib_new() call to mpdclient.c
Max Kellermann [Fri, 17 Mar 2017 21:26:37 +0000 (22:26 +0100)]
main: move mpd_glib_new() call to mpdclient.c

7 years agocallbacks: rename functions
Max Kellermann [Fri, 17 Mar 2017 21:24:24 +0000 (22:24 +0100)]
callbacks: rename functions

7 years agoscreen_client: move functions to callbacks.c
Max Kellermann [Fri, 17 Mar 2017 21:14:11 +0000 (22:14 +0100)]
screen_client: move functions to callbacks.c

7 years agomain: remove redundant mpdclient_disconnect() call
Max Kellermann [Fri, 17 Mar 2017 21:41:16 +0000 (22:41 +0100)]
main: remove redundant mpdclient_disconnect() call

mpdclient_free() will do this implicitly.

7 years agomain: remove the "idle" fallback code
Max Kellermann [Fri, 17 Mar 2017 17:01:38 +0000 (18:01 +0100)]
main: remove the "idle" fallback code

ncmpc has been requiring MPD 0.14+ for 7 years (commit e25d7523), and
we really don't need the timer fallback.  "idle" just has to be
supported.

7 years agoconfigure.ac: remove redundant libmpdclient version test
Max Kellermann [Fri, 17 Mar 2017 16:00:55 +0000 (17:00 +0100)]
configure.ac: remove redundant libmpdclient version test

Obsoleted by 323d2239df7d8b6a3b8005f14c7e90b5271a77e9

7 years agoMakefile.am: merge ncmpc_headers into src_ncmpc_SOURCES
Max Kellermann [Fri, 17 Mar 2017 14:58:40 +0000 (15:58 +0100)]
Makefile.am: merge ncmpc_headers into src_ncmpc_SOURCES

7 years agoupdate copyright year
Max Kellermann [Fri, 17 Mar 2017 14:54:09 +0000 (15:54 +0100)]
update copyright year

7 years agomain: eliminate local dummy variable
Max Kellermann [Fri, 17 Mar 2017 14:47:52 +0000 (15:47 +0100)]
main: eliminate local dummy variable

7 years agocommand: fix swapped help texts
Max Kellermann [Sat, 11 Mar 2017 16:48:57 +0000 (17:48 +0100)]
command: fix swapped help texts

7 years agoscreen_song: show "dsd64" etc. shortcuts
Max Kellermann [Fri, 10 Mar 2017 20:50:20 +0000 (21:50 +0100)]
screen_song: show "dsd64" etc. shortcuts

7 years agoscreen_song: show "f" and "dsd" formats
Max Kellermann [Fri, 10 Mar 2017 20:48:52 +0000 (21:48 +0100)]
screen_song: show "f" and "dsd" formats

7 years agoscreen_song: move code to audio_format_to_string()
Max Kellermann [Fri, 10 Mar 2017 20:44:53 +0000 (21:44 +0100)]
screen_song: move code to audio_format_to_string()

7 years agoscreen_{find,search}: work around gcc7 -Wimplicit-fallthrough
Max Kellermann [Fri, 10 Mar 2017 20:41:02 +0000 (21:41 +0100)]
screen_{find,search}: work around gcc7 -Wimplicit-fallthrough

7 years agoCompiler.h: exclude clang from GCC_CHECK_VERSION()
Max Kellermann [Fri, 10 Mar 2017 20:39:42 +0000 (21:39 +0100)]
Compiler.h: exclude clang from GCC_CHECK_VERSION()

7 years agoCompiler.h: reimplement GCC_CHECK_VERSION() using GCC_MAKE_VERSION()
Max Kellermann [Fri, 10 Mar 2017 20:38:59 +0000 (21:38 +0100)]
Compiler.h: reimplement GCC_CHECK_VERSION() using GCC_MAKE_VERSION()

7 years agoCompiler.h: add macro CLANG_OR_GCC_VERSION()
Max Kellermann [Fri, 10 Mar 2017 20:34:28 +0000 (21:34 +0100)]
Compiler.h: add macro CLANG_OR_GCC_VERSION()

7 years agoCompiler.h: add macro GCC_OLDER_THAN()
Max Kellermann [Fri, 10 Mar 2017 20:36:23 +0000 (21:36 +0100)]
Compiler.h: add macro GCC_OLDER_THAN()

7 years agoCompiler.h: add macro CLANG_VERSION
Max Kellermann [Fri, 10 Mar 2017 20:33:54 +0000 (21:33 +0100)]
Compiler.h: add macro CLANG_VERSION

7 years agoCompiler.h: add macro GCC_MAKE_VERSION()
Max Kellermann [Fri, 10 Mar 2017 20:32:54 +0000 (21:32 +0100)]
Compiler.h: add macro GCC_MAKE_VERSION()

7 years agorequire libmpdclient 2.9, remove several #ifdefs
Max Kellermann [Fri, 10 Mar 2017 20:20:55 +0000 (21:20 +0100)]
require libmpdclient 2.9, remove several #ifdefs

7 years agolyrics: lyrics area regex fix for LyricWikia
Lazaros Koromilas [Thu, 10 Nov 2016 17:04:47 +0000 (18:04 +0100)]
lyrics: lyrics area regex fix for LyricWikia

8 years agoconfigure.ac: detect lirc 0.9.4
Gianfranco Costamagna [Fri, 28 Oct 2016 10:22:59 +0000 (12:22 +0200)]
configure.ac: detect lirc 0.9.4

8 years agoconfigure.ac: prepare for 0.26
Max Kellermann [Fri, 28 Oct 2016 10:23:28 +0000 (12:23 +0200)]
configure.ac: prepare for 0.26

8 years agorelease v0.25 v0.25
Max Kellermann [Thu, 18 Aug 2016 10:06:24 +0000 (12:06 +0200)]
release v0.25

8 years agostrfsong: implement "%disc%"
Max Kellermann [Thu, 18 Aug 2016 09:52:44 +0000 (11:52 +0200)]
strfsong: implement "%disc%"

https://bugs.musicpd.org/view.php?id=4479

8 years agom4/ax_*.m4: update from autoconf-archive 20150925-1
Max Kellermann [Thu, 18 Aug 2016 09:23:07 +0000 (11:23 +0200)]
m4/ax_*.m4: update from autoconf-archive 20150925-1

8 years agom4/pkg.m4: update from pkg-config 0.29
Max Kellermann [Thu, 18 Aug 2016 09:22:14 +0000 (11:22 +0200)]
m4/pkg.m4: update from pkg-config 0.29

8 years agom4/{nls,po,progtest}.m4: update from gettest 0.19.8.1
Max Kellermann [Thu, 18 Aug 2016 09:21:22 +0000 (11:21 +0200)]
m4/{nls,po,progtest}.m4: update from gettest 0.19.8.1

8 years agom4/glib-gettext.m4: update from GLib 2.48.1
Max Kellermann [Thu, 18 Aug 2016 09:18:52 +0000 (11:18 +0200)]
m4/glib-gettext.m4: update from GLib 2.48.1

Fixes "error: m4_copy: won't overwrite defined macro: glib_DEFUN".

8 years agolyrics: no extra XML tags in lyricbox anymore
Lazaros Koromilas [Sun, 12 Jun 2016 18:55:46 +0000 (20:55 +0200)]
lyrics: no extra XML tags in lyricbox anymore

8 years agolyrics: use open-uri to handle HTTP 301 redirection
Lazaros Koromilas [Sun, 12 Jun 2016 18:55:45 +0000 (20:55 +0200)]
lyrics: use open-uri to handle HTTP 301 redirection

9 years agolyrics: fixed XML tag removal on wikia.com
Guilherme Costa [Tue, 19 May 2015 17:33:53 +0000 (19:33 +0200)]
lyrics: fixed XML tag removal on wikia.com

9 years agoconfigure.ac: prepare for 0.25
Max Kellermann [Mon, 10 Aug 2015 11:48:49 +0000 (13:48 +0200)]
configure.ac: prepare for 0.25

10 years agorelease v0.24 v0.24
Max Kellermann [Mon, 14 Jul 2014 09:46:41 +0000 (11:46 +0200)]
release v0.24

10 years agom4: import ax_require_defined.m4 from autoconf-archive
Max Kellermann [Mon, 14 Jul 2014 09:51:56 +0000 (11:51 +0200)]
m4: import ax_require_defined.m4 from autoconf-archive

10 years agoscreen_song: draw bit rate in screen_song_update()
Max Kellermann [Mon, 2 Nov 2009 20:11:57 +0000 (21:11 +0100)]
screen_song: draw bit rate in screen_song_update()

Drawing the bit rate in screen_song_add_song() requires some redundant
checks.

10 years agomain: make variables more local
Max Kellermann [Mon, 14 Jul 2014 08:49:50 +0000 (10:49 +0200)]
main: make variables more local

10 years agoscreen_keydef: save keys to path specified by --key-file
Max Kellermann [Mon, 14 Jul 2014 09:24:27 +0000 (11:24 +0200)]
screen_keydef: save keys to path specified by --key-file

Implements Mantis ticket 0004022.

10 years agoconf: check_user_conf_dir() returns bool
Max Kellermann [Mon, 14 Jul 2014 09:24:42 +0000 (11:24 +0200)]
conf: check_user_conf_dir() returns bool

10 years agoconf: include cleanup
Max Kellermann [Mon, 14 Jul 2014 09:16:36 +0000 (11:16 +0200)]
conf: include cleanup

10 years agoconf: remove WIN32 debug logs
Max Kellermann [Mon, 14 Jul 2014 09:19:05 +0000 (11:19 +0200)]
conf: remove WIN32 debug logs

10 years agocommand: return bool for success/failure
Max Kellermann [Mon, 14 Jul 2014 08:51:59 +0000 (10:51 +0200)]
command: return bool for success/failure

10 years agocommand: make variables more local
Max Kellermann [Mon, 14 Jul 2014 08:52:20 +0000 (10:52 +0200)]
command: make variables more local

10 years agoscreen_browser: fix crash on "jump" (hotkey ".")
Max Kellermann [Mon, 14 Jul 2014 08:40:18 +0000 (10:40 +0200)]
screen_browser: fix crash on "jump" (hotkey ".")

Regression caused by commit 4345c919f: screen_browser_paint_callback()
now expects a struct screen_browser pointer instead of a struct
filelist pointer, because it now requires access to the song format.
However, browser_lw_callback() still wants a struct filelist, and the
CMD_LIST_JUMP handler passes the former to screen_jump() for both
callbacks.

10 years agoscreen_find: fix indent
Max Kellermann [Mon, 14 Jul 2014 08:40:23 +0000 (10:40 +0200)]
screen_find: fix indent

10 years agoconfigure.ac: prepare for 0.24
Max Kellermann [Mon, 14 Jul 2014 08:18:37 +0000 (10:18 +0200)]
configure.ac: prepare for 0.24

10 years agorelease v0.23 v0.23
Max Kellermann [Thu, 10 Jul 2014 08:11:07 +0000 (10:11 +0200)]
release v0.23

10 years agoREADME: update URLs
Max Kellermann [Thu, 10 Jul 2014 08:13:36 +0000 (10:13 +0200)]
README: update URLs

10 years agoconfigure.ac: use $srcdir to refer to po/LINGUAS
Max Kellermann [Thu, 10 Jul 2014 08:06:51 +0000 (10:06 +0200)]
configure.ac: use $srcdir to refer to po/LINGUAS

Fixes out-of-tree builds.  Previously, no PO file was used, and thus
no PO files were included in the tarball (Mantis 0004016).

10 years agoconfigure.ac: prepare for 0.23
Max Kellermann [Thu, 10 Jul 2014 08:07:59 +0000 (10:07 +0200)]
configure.ac: prepare for 0.23

10 years agorelease v0.22 v0.22
Max Kellermann [Mon, 9 Jun 2014 09:21:23 +0000 (11:21 +0200)]
release v0.22

10 years agom4/po.m4: update to gettext 0.18.3
Max Kellermann [Mon, 9 Jun 2014 09:48:24 +0000 (11:48 +0200)]
m4/po.m4: update to gettext 0.18.3

10 years agom4/pkg.m4: update to serial 1
Max Kellermann [Mon, 9 Jun 2014 09:47:46 +0000 (11:47 +0200)]
m4/pkg.m4: update to serial 1

10 years agom4/ax_check*: update to serial 3
Max Kellermann [Mon, 9 Jun 2014 09:29:01 +0000 (11:29 +0200)]
m4/ax_check*: update to serial 3

10 years agom4/ax_append*: update to serial 4
Max Kellermann [Mon, 9 Jun 2014 09:28:25 +0000 (11:28 +0200)]
m4/ax_append*: update to serial 4

10 years agom4/ax_with_curses.m4: update to serial 15
Max Kellermann [Mon, 9 Jun 2014 09:27:39 +0000 (11:27 +0200)]
m4/ax_with_curses.m4: update to serial 15

10 years agoMakefile.am: disable dist-bzip2
Max Kellermann [Mon, 9 Jun 2014 09:23:52 +0000 (11:23 +0200)]
Makefile.am: disable dist-bzip2

bzip2-compressed tarballs are obsolete, xz is better and widely
understood.

10 years agoscreen_song: show audio format
Jonathan Neuschäfer [Mon, 9 Jun 2014 09:17:44 +0000 (11:17 +0200)]
screen_song: show audio format

10 years agoremove broken leoslyrics plugin
Max Kellermann [Wed, 28 May 2014 16:18:28 +0000 (18:18 +0200)]
remove broken leoslyrics plugin

10 years agoImplement a search-format configuration option (Mantis #4007)
Simon Arlott [Mon, 19 May 2014 23:52:28 +0000 (00:52 +0100)]
Implement a search-format configuration option (Mantis #4007)

This configures the song format for the search window,
and defaults to the value of list-format if not specified.

10 years agoFlush stdout to change xterm title.
noname [Fri, 25 Apr 2014 14:48:38 +0000 (18:48 +0400)]
Flush stdout to change xterm title.

If stdout is not flushed, printf may not terminate control string
properly.  This way xterm title changes only sometimes.

Also use standard (ECMA-048) control string terminator ^[\ instead of \a.

10 years agocharset: work around "unused function" compiler warnings
Max Kellermann [Tue, 13 May 2014 07:18:29 +0000 (09:18 +0200)]
charset: work around "unused function" compiler warnings

10 years agoFixed colours for status-flags (previously documented but not a feature)
James McGlashan (DarkFox) [Wed, 8 Jan 2014 00:36:00 +0000 (11:36 +1100)]
Fixed colours for status-flags (previously documented but not a feature)

10 years agofix typo in error message
Max Kellermann [Fri, 13 Dec 2013 10:18:18 +0000 (11:18 +0100)]
fix typo in error message

11 years ago*: make variables more local
Max Kellermann [Fri, 8 Nov 2013 18:52:09 +0000 (19:52 +0100)]
*: make variables more local

11 years agoconfigure.ac: require libmpdclient 2.3
Max Kellermann [Fri, 8 Nov 2013 18:49:02 +0000 (19:49 +0100)]
configure.ac: require libmpdclient 2.3

11 years ago*: use Compiler.h macros instead of glib.h
Max Kellermann [Fri, 8 Nov 2013 18:43:01 +0000 (19:43 +0100)]
*: use Compiler.h macros instead of glib.h

11 years agoconf: simplify read_configuration()
Max Kellermann [Fri, 8 Nov 2013 18:41:53 +0000 (19:41 +0100)]
conf: simplify read_configuration()

Move code to find_config_file() and find_keys_file().

11 years agoconf: convert runtime check to assertion
Max Kellermann [Fri, 8 Nov 2013 18:36:49 +0000 (19:36 +0100)]
conf: convert runtime check to assertion

11 years agoconf: eliminate local variable "match_found"
Max Kellermann [Fri, 8 Nov 2013 18:35:04 +0000 (19:35 +0100)]
conf: eliminate local variable "match_found"

11 years ago*: add "pure" attributes
Max Kellermann [Fri, 8 Nov 2013 17:14:31 +0000 (18:14 +0100)]
*: add "pure" attributes

11 years agomain: remove useless "Connected to ..." message
Max Kellermann [Fri, 8 Nov 2013 16:57:00 +0000 (17:57 +0100)]
main: remove useless "Connected to ..." message

This message has no use, because the user already knows where he asked
ncmpc to connect to.  And it was annoying, because it delays the
progress display in the status bar.

11 years agostatus_bar: export _clear_message()
Max Kellermann [Fri, 8 Nov 2013 17:04:36 +0000 (18:04 +0100)]
status_bar: export _clear_message()

11 years agomain: require MPD 0.16
Max Kellermann [Thu, 7 Nov 2013 22:36:48 +0000 (23:36 +0100)]
main: require MPD 0.16

Remove a few version checks and some fallback code.

11 years agomatch,charset: add obsolete GLib version checks
Max Kellermann [Thu, 7 Nov 2013 22:33:30 +0000 (23:33 +0100)]
match,charset: add obsolete GLib version checks

11 years agoresolver: remove unused library
Max Kellermann [Thu, 7 Nov 2013 22:27:27 +0000 (23:27 +0100)]
resolver: remove unused library

11 years agoglib_compat.h: remove obsolete header
Max Kellermann [Thu, 7 Nov 2013 22:25:20 +0000 (23:25 +0100)]
glib_compat.h: remove obsolete header

We require GLib 2.14, and the GLib 2.16 functions are not used by
ncmpc.

11 years agoconfigure.ac: enable automake silent-rules
Max Kellermann [Thu, 7 Nov 2013 22:22:43 +0000 (23:22 +0100)]
configure.ac: enable automake silent-rules

11 years agoconfigure.ac: update VERSION_MINOR
Max Kellermann [Thu, 7 Nov 2013 22:21:04 +0000 (23:21 +0100)]
configure.ac: update VERSION_MINOR

11 years agoscreen_queue: rename "playlist" to "queue"
Max Kellermann [Thu, 7 Nov 2013 22:18:45 +0000 (23:18 +0100)]
screen_queue: rename "playlist" to "queue"

"Playlists" are m3u files, and the "queue" is the current list of
songs that are about to be played by MPD.

11 years agoconfigure.ac: add more optimization flags
Max Kellermann [Thu, 7 Nov 2013 22:13:48 +0000 (23:13 +0100)]
configure.ac: add more optimization flags

11 years agoconfigure.ac: prepare for 0.22
Max Kellermann [Thu, 7 Nov 2013 22:08:41 +0000 (23:08 +0100)]
configure.ac: prepare for 0.22

11 years agorelease 0.21 release-0.21 v0.21
Max Kellermann [Thu, 11 Apr 2013 08:05:51 +0000 (10:05 +0200)]
release 0.21

11 years agoMakefile.am: remove src/win/ncmpc.rc from SOURCES
Max Kellermann [Thu, 11 Apr 2013 08:12:45 +0000 (10:12 +0200)]
Makefile.am: remove src/win/ncmpc.rc from SOURCES

11 years agopo: regenerate ncmpc.pot
Max Kellermann [Thu, 11 Apr 2013 08:12:50 +0000 (10:12 +0200)]
po: regenerate ncmpc.pot

11 years agopo/POTFILES.in: add screen_chat.c
Max Kellermann [Thu, 11 Apr 2013 08:24:23 +0000 (10:24 +0200)]
po/POTFILES.in: add screen_chat.c

11 years agopo: update Spanish translation
Adolfo Jayme Barrientos [Thu, 11 Apr 2013 08:03:42 +0000 (10:03 +0200)]
po: update Spanish translation

11 years agoconfigure.ac: require GLib 2.14
Max Kellermann [Thu, 11 Apr 2013 07:35:30 +0000 (09:35 +0200)]
configure.ac: require GLib 2.14

Required for GRegex.

11 years agostrfsong: Add fallback mpd tags for more compatibility
Jari Vetoniemi [Thu, 11 Apr 2013 07:23:17 +0000 (09:23 +0200)]
strfsong: Add fallback mpd tags for more compatibility

11 years agoscreen_lyrics: return if fork fails
Max Kellermann [Thu, 11 Apr 2013 07:30:37 +0000 (09:30 +0200)]
screen_lyrics: return if fork fails

Avoids the clang warning due to uninitialized "status".

11 years agoautogen.sh: use $AUTOMAKE_FLAGS
Max Kellermann [Thu, 11 Apr 2013 07:31:19 +0000 (09:31 +0200)]
autogen.sh: use $AUTOMAKE_FLAGS

Allows caller to pass --copy.

11 years agolyricswiki: fix Ruby 2.0 and UTF-8
Cedric Fung [Thu, 11 Apr 2013 07:11:29 +0000 (09:11 +0200)]
lyricswiki: fix Ruby 2.0 and UTF-8

12 years agoscreen_song: show song position
Valmiky Arquissandas [Tue, 14 Aug 2012 03:58:15 +0000 (04:58 +0100)]
screen_song: show song position

12 years agoscreen_queue: fix CMD_SCREEN_SWAP with an empty queue
Jonathan Neuschäfer [Fri, 10 Aug 2012 11:21:39 +0000 (13:21 +0200)]
screen_queue: fix CMD_SCREEN_SWAP with an empty queue

It crashed without this patch.

12 years agoTry to keep the cursor position when reloading lyrics
Jonathan Neuschäfer [Fri, 10 Aug 2012 11:21:39 +0000 (13:21 +0200)]
Try to keep the cursor position when reloading lyrics