summaryrefslogtreecommitdiffstats
path: root/audio/telephony-dummy.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/telephony-dummy.c')
-rw-r--r--audio/telephony-dummy.c35
1 files changed, 25 insertions, 10 deletions
diff --git a/audio/telephony-dummy.c b/audio/telephony-dummy.c
index 85bd0d12..6c003066 100644
--- a/audio/telephony-dummy.c
+++ b/audio/telephony-dummy.c
@@ -28,40 +28,55 @@
#include <stdlib.h>
#include <stdio.h>
+#include <stdint.h>
+#include <glib.h>
#include "telephony.h"
+static gboolean events_enabled = FALSE;
+
+/* Response and hold state
+ * -1 = none
+ * 0 = incoming call is put on hold in the AG
+ * 1 = held incoming call is accepted in the AG
+ * 2 = held incoming call is rejected in the AG
+ */
+static int response_and_hold = -1;
+
static struct indicator indicators[] =
{
{ "battchg", "0-5", 5 },
{ "signal", "0-5", 5 },
{ "service", "0,1", 1 },
- { "sounder", "0,1", 0 },
- { "message", "0,1", 0 },
{ "call", "0,1", 0 },
{ "callsetup", "0-3", 0 },
- { "vox", "0,1", 0 },
+ { "callheld", "0-2", 0 },
{ "roam", "0,1", 0 },
- { "smsfull", "0,1", 0 },
{ NULL }
};
-int telephony_features_req(void)
+int telephony_event_reporting_req(int ind)
{
- uint32_t features = 0;
-
- telephony_features_rsp(features);
+ events_enabled = ind == 1 ? TRUE : FALSE;
return 0;
}
-struct indicator *telephony_indicators_req(void)
+int telephony_response_and_hold_req(int rh)
{
- return indicators;
+ response_and_hold = rh;
+
+ telephony_response_and_hold_ind(response_and_hold);
+
+ return 0;
}
int telephony_init(void)
{
+ uint32_t features = 0;
+
+ telephony_ready(features, indicators, response_and_hold);
+
return 0;
}