3 * oFono - Open Source Telephony
5 * Copyright (C) 2008-2011 Intel Corporation. All rights reserved.
6 * Copyright (C) 2011 ST-Ericsson AB.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #ifndef __OFONO_GNSS_H
24 #define __OFONO_GNSS_H
30 #include <ofono/types.h>
34 typedef void (*ofono_gnss_cb_t)(const struct ofono_error *error, void *data);
36 struct ofono_gnss_driver {
38 int (*probe)(struct ofono_gnss *gnss, unsigned int vendor, void *data);
39 void (*remove)(struct ofono_gnss *gnss);
40 void (*send_element)(struct ofono_gnss *gnss,
42 ofono_gnss_cb_t cb, void *data);
43 void (*set_position_reporting)(struct ofono_gnss *gnss,
49 void ofono_gnss_notify_posr_request(struct ofono_gnss *gnss, const char *xml);
50 void ofono_gnss_notify_posr_reset(struct ofono_gnss *gnss);
51 int ofono_gnss_driver_register(const struct ofono_gnss_driver *d);
52 void ofono_gnss_driver_unregister(const struct ofono_gnss_driver *d);
54 struct ofono_gnss *ofono_gnss_create(struct ofono_modem *modem,
56 const char *driver, void *data);
58 void ofono_gnss_register(struct ofono_gnss *gnss);
59 void ofono_gnss_remove(struct ofono_gnss *gnss);
61 void ofono_gnss_set_data(struct ofono_gnss *gnss, void *data);
62 void *ofono_gnss_get_data(struct ofono_gnss *gnss);
69 #endif /* __OFONO_GNSS_H */