From 3c5cecb828cdf9618cd4ec14a15f8cc59e313db8 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Tue, 12 Jun 2007 17:58:17 +0000 Subject: Redoing remiss's shout patch. This time, just block on open() instead of pretending to play while we wait for the connection to timeout. This removes the need for timers, and thus removes the now unnecessary timer_get_runtime_* function(s) from the timer code. The changes made compared to the pre-patch shout plugin are: * Block while connecting, timing out after 2 seconds. * Close the device, and not just the connection, if play returns -1. * Remove sd->last_err (it's always assigned before use). * Some minor cleanups. git-svn-id: https://svn.musicpd.org/mpd/trunk@6555 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/timer.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/timer.h') diff --git a/src/timer.h b/src/timer.h index 7e84d907..c8018e26 100644 --- a/src/timer.h +++ b/src/timer.h @@ -23,7 +23,6 @@ #include "mpd_types.h" typedef struct _Timer { - uint64_t start_time; uint64_t time; int started; int rate; @@ -41,6 +40,4 @@ void timer_add(Timer *timer, int size); void timer_sync(Timer *timer); -uint64_t timer_get_runtime_us(Timer *timer); - #endif -- cgit v1.2.3