anbox-platform-sdk 1.28.0
Anbox Platform SDK API documentation
gps_processor.h
Go to the documentation of this file.
1/*
2 * This file is part of Anbox Platform SDK
3 *
4 * Copyright 2021 Canonical Ltd.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19#ifndef ANBOX_SDK_GPS_PROCESSOR_H_
20#define ANBOX_SDK_GPS_PROCESSOR_H_
21
23
24#include <stdint.h>
25#include <stddef.h>
26#include <cstdint>
27
28namespace anbox {
39 public:
40 GpsProcessor() = default;
41 virtual ~GpsProcessor() = default;
42 GpsProcessor(const GpsProcessor &) = delete;
44
63 virtual int read_data(AnboxGpsData* data, int timeout) = 0;
64
76 virtual int inject_data(AnboxGpsData data) = 0;
77};
78} // namespace anbox
79
80#endif
GpsProcessor allows forwarding the gps data from platform plugin to Android container and process gps...
GpsProcessor & operator=(const GpsProcessor &)=delete
GpsProcessor()=default
virtual ~GpsProcessor()=default
GpsProcessor(const GpsProcessor &)=delete
virtual int inject_data(AnboxGpsData data)=0
Inject gps data into AnboxPlatform.
virtual int read_data(AnboxGpsData *data, int timeout)=0
Read available gps data.