2008-09-02 03:55:09 +08:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* BlueZ - Bluetooth protocol stack for Linux
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006-2007 Nokia Corporation
|
|
|
|
* Copyright (C) 2004-2008 Marcel Holtmann <marcel@holtmann.org>
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2008-09-03 18:50:50 +08:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2008-09-03 22:07:27 +08:00
|
|
|
#define AG_FEATURE_THREE_WAY_CALLING 0x0001
|
|
|
|
#define AG_FEATURE_EC_ANDOR_NR 0x0002
|
|
|
|
#define AG_FEATURE_VOICE_RECOGNITION 0x0004
|
|
|
|
#define AG_FEATURE_INBAND_RINGTONE 0x0008
|
|
|
|
#define AG_FEATURE_ATTACH_NUMBER_TO_VOICETAG 0x0010
|
|
|
|
#define AG_FEATURE_REJECT_A_CALL 0x0020
|
|
|
|
#define AG_FEATURE_ENHANCES_CALL_STATUS 0x0040
|
|
|
|
#define AG_FEATURE_ENHANCES_CALL_CONTROL 0x0080
|
|
|
|
#define AG_FEATURE_EXTENDED_ERROR_RESULT_CODES 0x0100
|
|
|
|
|
2008-09-03 22:00:48 +08:00
|
|
|
struct indicator {
|
|
|
|
const char *desc;
|
|
|
|
const char *range;
|
|
|
|
int val;
|
|
|
|
};
|
|
|
|
|
2008-09-04 19:15:20 +08:00
|
|
|
int telephony_event_reporting_req(int ind);
|
2008-09-04 18:24:06 +08:00
|
|
|
|
2008-09-04 20:39:00 +08:00
|
|
|
int telephony_event_ind(int index);
|
2008-09-04 19:15:20 +08:00
|
|
|
|
|
|
|
int telephony_response_and_hold_req(int rh);
|
|
|
|
|
|
|
|
int telephony_response_and_hold_ind(int rh);
|
2008-09-04 18:24:06 +08:00
|
|
|
|
2008-09-04 20:39:00 +08:00
|
|
|
int telephony_ready(uint32_t features, struct indicator *indicators, int rh);
|
|
|
|
|
2008-09-03 22:49:02 +08:00
|
|
|
int telephony_init(void);
|
|
|
|
void telephony_exit(void);
|