~awe/phablet-extras/ofono-lp1204683

« back to all changes in this revision

Viewing changes to include/history.h

  • Committer: Bazaar Package Importer
  • Author(s): Andres Salomon
  • Date: 2009-08-15 15:55:11 UTC
  • Revision ID: james.westby@ubuntu.com-20090815155511-frst06dijguhyfi4
Tags: upstream-0.3
ImportĀ upstreamĀ versionĀ 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 *  oFono - Open Telephony stack for Linux
 
4
 *
 
5
 *  Copyright (C) 2008-2009  Intel Corporation. All rights reserved.
 
6
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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
 
19
 *
 
20
 */
 
21
 
 
22
#ifndef __OFONO_HISTORY_H
 
23
#define __OFONO_HISTORY_H
 
24
 
 
25
#ifdef __cplusplus
 
26
extern "C" {
 
27
#endif
 
28
 
 
29
enum ofono_disconnect_reason;
 
30
struct ofono_call;
 
31
 
 
32
struct ofono_history_context {
 
33
        struct ofono_history_driver *driver;
 
34
        struct ofono_modem *modem;
 
35
        void *data;
 
36
};
 
37
 
 
38
struct ofono_history_driver {
 
39
        const char *name;
 
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);
 
47
};
 
48
 
 
49
int ofono_history_driver_register(const struct ofono_history_driver *driver);
 
50
void ofono_history_driver_unregister(const struct ofono_history_driver *driver);
 
51
 
 
52
#ifdef __cplusplus
 
53
}
 
54
#endif
 
55
 
 
56
#endif /* __OFONO_HISTORY_H */