position_update.h
Go to the documentation of this file.
/*
* Copyright © 2013 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Thomas Voß <thomas.voss@canonical.com>
*/
#ifndef UBUNTU_APPLICATION_LOCATION_POSITION_UPDATE_H_
#define UBUNTU_APPLICATION_LOCATION_POSITION_UPDATE_H_
#include <ubuntu/visibility.h>
#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct UbuntuApplicationLocationPositionUpdate UALocationPositionUpdate;
UBUNTU_DLL_PUBLIC void
ua_location_position_update_ref(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC void
ua_location_position_update_unref(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC uint64_t
ua_location_position_update_get_timestamp(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC double
ua_location_position_update_get_latitude_in_degree(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC double
ua_location_position_update_get_longitude_in_degree(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC bool
ua_location_position_update_has_altitude(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC double
ua_location_position_update_get_altitude_in_meter(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC bool
ua_location_position_update_has_horizontal_accuracy(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC double
ua_location_position_update_get_horizontal_accuracy_in_meter(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC bool
ua_location_position_update_has_vertical_accuracy(
UALocationPositionUpdate *update);
UBUNTU_DLL_PUBLIC double
ua_location_position_update_get_vertical_accuracy_in_meter(
UALocationPositionUpdate *update);
#ifdef __cplusplus
}
#endif
#endif // UBUNTU_APPLICATION_LOCATION_POSITION_UPDATE_H_
ua_location_position_update_get_horizontal_accuracy_in_meter
UBUNTU_DLL_PUBLIC double ua_location_position_update_get_horizontal_accuracy_in_meter(UALocationPositionUpdate *update)
Queries the horizontal accuracy contained in the position update.
ua_location_position_update_get_vertical_accuracy_in_meter
UBUNTU_DLL_PUBLIC double ua_location_position_update_get_vertical_accuracy_in_meter(UALocationPositionUpdate *update)
Queries the vertical accuracy contained in the position update.
ua_location_position_update_get_longitude_in_degree
UBUNTU_DLL_PUBLIC double ua_location_position_update_get_longitude_in_degree(UALocationPositionUpdate *update)
Queries the longitude contained in the position update.
ua_location_position_update_has_horizontal_accuracy
UBUNTU_DLL_PUBLIC bool ua_location_position_update_has_horizontal_accuracy(UALocationPositionUpdate *update)
Checks if the position update contains a horizontal accuracy estimate.
ua_location_position_update_has_vertical_accuracy
UBUNTU_DLL_PUBLIC bool ua_location_position_update_has_vertical_accuracy(UALocationPositionUpdate *update)
Checks if the position update contains a vertical accuracy estimate.
visibility.h
ua_location_position_update_ref
UBUNTU_DLL_PUBLIC void ua_location_position_update_ref(UALocationPositionUpdate *update)
Increments the reference count of the position update instance.
ua_location_position_update_get_altitude_in_meter
UBUNTU_DLL_PUBLIC double ua_location_position_update_get_altitude_in_meter(UALocationPositionUpdate *update)
Queries the altitude contained in the position update.
UBUNTU_DLL_PUBLIC
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26
UALocationPositionUpdate
struct UbuntuApplicationLocationPositionUpdate UALocationPositionUpdate
Opaque type encapsulating a location update.
Definition: position_update.h:36
ua_location_position_update_unref
UBUNTU_DLL_PUBLIC void ua_location_position_update_unref(UALocationPositionUpdate *update)
Decrements the reference count of the position update instance.
ua_location_position_update_has_altitude
UBUNTU_DLL_PUBLIC bool ua_location_position_update_has_altitude(UALocationPositionUpdate *update)
Checks if the position update contains an altitude.
ua_location_position_update_get_latitude_in_degree
UBUNTU_DLL_PUBLIC double ua_location_position_update_get_latitude_in_degree(UALocationPositionUpdate *update)
Queries the latitude contained in the position update.
ua_location_position_update_get_timestamp
UBUNTU_DLL_PUBLIC uint64_t ua_location_position_update_get_timestamp(UALocationPositionUpdate *update)
Queries the timestamp of the position update.