aboutsummaryrefslogtreecommitdiffstats
path: root/src/dtmf_scheduler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dtmf_scheduler.c')
-rw-r--r--src/dtmf_scheduler.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dtmf_scheduler.c b/src/dtmf_scheduler.c
index a344e76..4f64eb0 100644
--- a/src/dtmf_scheduler.c
+++ b/src/dtmf_scheduler.c
@@ -1,6 +1,6 @@
/*
- * (C) 2012 by Holger Hans Peter Freyther
- * (C) 2012 by On-Waves
+ * (C) 2012-2013 by Holger Hans Peter Freyther
+ * (C) 2012-2013 by On-Waves
* All Rights Reserved
*
* This program is free software: you can redistribute it and/or modify
@@ -37,7 +37,7 @@ int dtmf_state_add(struct dtmf_state *state, char tone)
return 0;
}
-void dtmf_state_get_pending(struct dtmf_state *state, char *tones)
+unsigned int dtmf_state_get_pending(struct dtmf_state *state, char *tones)
{
int pos;
@@ -51,6 +51,7 @@ void dtmf_state_get_pending(struct dtmf_state *state, char *tones)
if (pos > 0)
state->playing = 1;
tones[pos] = '\0';
+ return pos;
}
void dtmf_state_played(struct dtmf_state *state)