3
* oFono - Open Telephony stack for Linux
5
* Copyright (C) 2008-2009 Intel Corporation. All rights reserved.
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2 as
9
* published by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
#ifndef __OFONO_HISTORY_H
23
#define __OFONO_HISTORY_H
29
enum ofono_disconnect_reason;
32
struct ofono_history_context {
33
struct ofono_history_driver *driver;
34
struct ofono_modem *modem;
38
struct ofono_history_driver {
40
int (*probe)(struct ofono_history_context *context);
41
void (*remove)(struct ofono_history_context *context);
42
void (*call_ended)(struct ofono_history_context *context,
43
const struct ofono_call *call,
44
time_t start, time_t end);
45
void (*call_missed)(struct ofono_history_context *context,
46
const struct ofono_call *call, time_t when);
49
int ofono_history_driver_register(const struct ofono_history_driver *driver);
50
void ofono_history_driver_unregister(const struct ofono_history_driver *driver);
56
#endif /* __OFONO_HISTORY_H */