aboutsummaryrefslogtreecommitdiff
path: root/src/timer.h
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-06-12 17:58:17 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-06-12 17:58:17 +0000
commit3c5cecb828cdf9618cd4ec14a15f8cc59e313db8 (patch)
tree3033dc925c58c25effc82faa6cb6f4d471efaa9f /src/timer.h
parentbd0620ff72247603a0feef286b03bd98082f69fb (diff)
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
Diffstat (limited to 'src/timer.h')
-rw-r--r--src/timer.h3
1 files changed, 0 insertions, 3 deletions
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