diff options
Diffstat (limited to 'drivers/rilmodem/voicecall.h')
-rw-r--r-- | drivers/rilmodem/voicecall.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/drivers/rilmodem/voicecall.h b/drivers/rilmodem/voicecall.h new file mode 100644 index 00000000..0407abeb --- /dev/null +++ b/drivers/rilmodem/voicecall.h @@ -0,0 +1,71 @@ +/* + * + * oFono - Open Source Telephony + * + * Copyright (C) 2014 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +struct ril_voicecall_data { + GSList *calls; + /* Call local hangup indicator, one bit per call (1 << call_id) */ + unsigned int local_release; + unsigned int clcc_source; + GRil *ril; + struct ofono_modem *modem; + unsigned int vendor; + unsigned char flags; + ofono_voicecall_cb_t cb; + void *data; + gchar *tone_queue; + gboolean tone_pending; +}; + +int ril_voicecall_probe(struct ofono_voicecall *vc, unsigned int vendor, + void *data); +void ril_voicecall_remove(struct ofono_voicecall *vc); +void ril_dial(struct ofono_voicecall *vc, const struct ofono_phone_number *ph, + enum ofono_clir_option clir, ofono_voicecall_cb_t cb, + void *data); +void ril_answer(struct ofono_voicecall *vc, + ofono_voicecall_cb_t cb, void *data); +void ril_hangup_all(struct ofono_voicecall *vc, ofono_voicecall_cb_t cb, + void *data); +void ril_hangup_specific(struct ofono_voicecall *vc, + int id, ofono_voicecall_cb_t cb, void *data); +void ril_send_dtmf(struct ofono_voicecall *vc, const char *dtmf, + ofono_voicecall_cb_t cb, void *data); +void ril_create_multiparty(struct ofono_voicecall *vc, + ofono_voicecall_cb_t cb, void *data); +void ril_private_chat(struct ofono_voicecall *vc, int id, + ofono_voicecall_cb_t cb, void *data); +void ril_swap_without_accept(struct ofono_voicecall *vc, + ofono_voicecall_cb_t cb, void *data); +void ril_hold_all_active(struct ofono_voicecall *vc, + ofono_voicecall_cb_t cb, void *data); +void ril_release_all_held(struct ofono_voicecall *vc, + ofono_voicecall_cb_t cb, void *data); +void ril_set_udub(struct ofono_voicecall *vc, + ofono_voicecall_cb_t cb, void *data); +void ril_release_all_active(struct ofono_voicecall *vc, + ofono_voicecall_cb_t cb, void *data); + +void ril_voicecall_start(struct ril_voicecall_driver_data *driver_data, + struct ofono_voicecall *vc, + unsigned int vendor, + struct ril_voicecall_data *vd); +void ril_call_state_notify(struct ril_msg *message, gpointer user_data); +gboolean ril_poll_clcc(gpointer user_data); |