Ubuntu Platform API
1.0.0
A library helping with tight integration into the Ubuntu platform
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
position_update.h
Go to the documentation of this file.
1
/*
2
* Copyright © 2013 Canonical Ltd.
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License version 3 as
6
* published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License for more details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* Authored by: Thomas Voß <thomas.voss@canonical.com>
17
*/
18
19
#ifndef UBUNTU_APPLICATION_LOCATION_POSITION_UPDATE_H_
20
#define UBUNTU_APPLICATION_LOCATION_POSITION_UPDATE_H_
21
22
#include <
ubuntu/visibility.h
>
23
24
#include <stdbool.h>
25
#include <stdint.h>
26
27
#ifdef __cplusplus
28
extern
"C"
29
{
30
#endif
31
36
typedef
struct
UbuntuApplicationLocationPositionUpdate
UALocationPositionUpdate
;
37
43
UBUNTU_DLL_PUBLIC
void
44
ua_location_position_update_ref
(
45
UALocationPositionUpdate
*update);
46
52
UBUNTU_DLL_PUBLIC
void
53
ua_location_position_update_unref
(
54
UALocationPositionUpdate
*update);
55
62
UBUNTU_DLL_PUBLIC
uint64_t
63
ua_location_position_update_get_timestamp
(
64
UALocationPositionUpdate
*update);
65
72
UBUNTU_DLL_PUBLIC
double
73
ua_location_position_update_get_latitude_in_degree
(
74
UALocationPositionUpdate
*update);
75
82
UBUNTU_DLL_PUBLIC
double
83
ua_location_position_update_get_longitude_in_degree
(
84
UALocationPositionUpdate
*update);
85
92
UBUNTU_DLL_PUBLIC
bool
93
ua_location_position_update_has_altitude
(
94
UALocationPositionUpdate
*update);
95
102
UBUNTU_DLL_PUBLIC
double
103
ua_location_position_update_get_altitude_in_meter
(
104
UALocationPositionUpdate
*update);
105
106
#ifdef __cplusplus
107
}
108
#endif
109
110
#endif // UBUNTU_APPLICATION_LOCATION_POSITION_UPDATE_H_
include
ubuntu
application
location
position_update.h
Generated on Tue Oct 15 2013 02:50:25 for Ubuntu Platform API by
1.8.4