velocity_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_VELOCITY_UPDATE_H_
#define UBUNTU_APPLICATION_LOCATION_VELOCITY_UPDATE_H_
#include <ubuntu/visibility.h>
#include <stdbool.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct UbuntuApplicationLocationVelocityUpdate UALocationVelocityUpdate;
UBUNTU_DLL_PUBLIC void
ua_location_velocity_update_ref(
UALocationVelocityUpdate *update);
UBUNTU_DLL_PUBLIC void
ua_location_velocity_update_unref(
UALocationVelocityUpdate *update);
UBUNTU_DLL_PUBLIC uint64_t
ua_location_velocity_update_get_timestamp(
UALocationVelocityUpdate *update);
UBUNTU_DLL_PUBLIC double
ua_location_velocity_update_get_velocity_in_meters_per_second(
UALocationVelocityUpdate *update);
#ifdef __cplusplus
}
#endif
#endif // UBUNTU_APPLICATION_LOCATION_VELOCITY_UPDATE_H_
UALocationVelocityUpdate
struct UbuntuApplicationLocationVelocityUpdate UALocationVelocityUpdate
Opaque type encapsulating a velocity update.
Definition: velocity_update.h:36
ua_location_velocity_update_get_timestamp
UBUNTU_DLL_PUBLIC uint64_t ua_location_velocity_update_get_timestamp(UALocationVelocityUpdate *update)
Queries the timestamp of the velocity update.
ua_location_velocity_update_unref
UBUNTU_DLL_PUBLIC void ua_location_velocity_update_unref(UALocationVelocityUpdate *update)
Decrements the reference count of the velocity update instance.
visibility.h
UBUNTU_DLL_PUBLIC
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26
ua_location_velocity_update_get_velocity_in_meters_per_second
UBUNTU_DLL_PUBLIC double ua_location_velocity_update_get_velocity_in_meters_per_second(UALocationVelocityUpdate *update)
Queries the velocity contained in the position update.
ua_location_velocity_update_ref
UBUNTU_DLL_PUBLIC void ua_location_velocity_update_ref(UALocationVelocityUpdate *update)
Increments the reference count of the velocity update instance.