summaryrefslogtreecommitdiffstats
path: root/audio/telephony.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 12:49:39 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-05 12:49:39 +0300
commit624760ab4e7eb0480aea751ceb1876e7a846f67a (patch)
tree1d5ecb42d3ca1a9fb582ca2740ca3b82c507731f /audio/telephony.h
parent1b971b060ba37714d970089e978fa720a2c9326c (diff)
Implement telephony plugin support for terminate call (AT+CHUP)
Diffstat (limited to 'audio/telephony.h')
-rw-r--r--audio/telephony.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/audio/telephony.h b/audio/telephony.h
index 398f98df..60b1d423 100644
--- a/audio/telephony.h
+++ b/audio/telephony.h
@@ -52,6 +52,8 @@ int telephony_response_and_hold_ind(int rh);
int telephony_last_dialed_number(void);
+int telephony_terminate_call(void);
+
int telephony_ready(uint32_t features, struct indicator *indicators, int rh);
/* Helper function for quick indicator updates */
@@ -77,5 +79,18 @@ static inline int telephony_update_indicator(struct indicator *indicators,
return telephony_event_ind(i);
}
+static inline int telephony_get_indicator(struct indicator *indicators,
+ const char *desc)
+{
+ int i;
+
+ for (i = 0; indicators[i].desc != NULL; i++) {
+ if (g_str_equal(indicators[i].desc, desc))
+ return indicators[i].val;
+ }
+
+ return -ENOENT;
+}
+
int telephony_init(void);
void telephony_exit(void);