Compare commits

...

74 Commits
v2.1 ... newdev

Author SHA1 Message Date
Matthew Hilton 014350918a
Added extra resolutions (#21) 2023-06-24 00:31:24 +01:00
Matthew Hilton 4c910d2956
Merge pull request #20 from dicetrash/newdev
Adding back wifi protos
2023-06-24 00:27:15 +01:00
dice14u 1efe564feb Adding back wifi protos 2023-06-23 17:54:17 -04:00
Matthew Hilton a9cb5e46df
Merge pull request #19 from TildenWinston/newdev
Removing unused code to fix compile errors
2022-09-15 20:26:01 +01:00
TildenWinston fbc1f585e2
Removing bad line 2022-09-14 22:45:03 -07:00
TildenWinston 8981042d30
Removing bad line 2022-09-14 22:44:28 -07:00
TildenWinston 4bc084d356
Update MessageInStream.cpp 2022-09-11 14:23:23 -07:00
TildenWinston 20b4ec930e
Update SSLWrapper.cpp 2022-09-11 14:22:51 -07:00
Matthew Hilton 1934037ee4
Merge pull request #15 from sjdean/newdev
Newdev
2022-02-14 16:04:14 +00:00
Simon.Dean bd18165181 Reworked Message Handling
- Have adjusted the buffer mechanism so instead of using the buffer to store a message in the event of an interleaved frame, we basically perform all work on the buffer (albeit we take the existing message for the channel id from the buffer for the frame we're working on and write the message to the buffer if the message isn't resolved).
- Moved writing to buffer to receiveFramePayloadHandler() function if the message is BULK or LAST and therefore not resolved.
- Simplified receiveFrameHeaderHandler() so that we automatically try to find a message from the buffer and then createa message as necessary depending on the frame type.
- Excellent stability with no noticeable artefacts in audio after 1 hour.
- Removed majority of debugging after achieving stability.
2022-02-13 21:06:07 +00:00
Simon.Dean f80e72c480 Rework Message Handling.
Slight tweaks
- Add isInterleaved boolean
- If message is NULL and Frame Type is MIDDLE or LAST, then look for an existing message in buffer (if the message_ is null, then we need a FIRST or BULK frame)
- If message is still NULL, then we will create a new message, but recognise it as a valid frame ONLY if this is a FIRST or BULK frame because we cannot start on a MIDDLE or LAST.
- Rename recentFrameType to thisFrameType for more accuracy
- Only Resolve the Frame if the frame is BULK or LAST and the frame is valid.
- If the frame is interleaved, then we will use our interleavedPromise handler. Only resolve the main promise if the frame is not interleaved.
- Also reset message once resolved.
- Carry on reading if the original promise is not resolved (ie FIRST, MIDDLE, or Interleaved frame)
- Add some counters for debugging purposes.
2022-02-11 12:35:07 +00:00
Simon.Dean 5f4220b059 Support FrameType descriptor 2022-02-11 10:33:36 +00:00
Simon.Dean b8bbdf1288 Switch decrypt() to read the number of bytes from the frame size. 2022-02-11 10:29:02 +00:00
Simon.Dean 59d8d70b83 Add SSL Error Logging 2022-02-11 10:19:33 +00:00
Simon.Dean a897fc1a8b Swap getSize() to getFrameSize() and add totalSize() for completeness. 2022-02-11 10:19:12 +00:00
Matt Hilton 6d7eda1bcb Fixed cmakelists when target arch not set 2022-01-07 21:33:10 +00:00
Cole Brinsfield 1bc0fe69d5
add media and navigation status (#22)
* Implemented media status service, working on navigation service

* Navigation Status Service support
2021-12-26 13:48:56 -06:00
matt d327d9059c
fix #21 2021-10-05 21:20:41 +01:00
Matthew Hilton e29f2cd9d1
add githubactions packaging (#20)
* Added gitversion,cmake and last commit epoch as patch version

* Switched patch version to use commit hash instead of epoch

* Added CPACK_Version

* added message to output version

* added dockerbuild temp

* workflow fix

* fixed tabs

* fixed depends

* fixed typo

* typo in Dockerfile

* added upload artifact

* added deb_architecture

* added releases

* fixed checkout

* added tags

* fixed release gha

* Added versioning

* switch to use commit_timestamp
2021-09-23 22:16:29 -05:00
Matthew Hilton 3476cf9fc8
Update Readme.md 2021-09-23 23:31:36 +01:00
Matthew Hilton 053d69ecf3
added Github actions (#12)
* package using cpack (#18)

Added build to .gitignore
Added vscode tasks to clean, build, package
Added CPack support for debian packages

* Added gitversion,cmake and last commit epoch as patch version

* Switched patch version to use commit hash instead of epoch

* Added CPACK_Version

* added message to output version

* added dockerbuild temp

* workflow fix

* fixed tabs

* fixed depends

* fixed typo

* typo in Dockerfile

* added upload artifact

* added deb_architecture

* added releases

* fixed checkout

* added tags

* fixed release gha

* Added versioning

* switch to use commit_timestamp
2021-09-23 23:20:11 +01:00
Matthew Hilton eb53d31c1d
package using cpack (#18)
Added build to .gitignore
Added vscode tasks to clean, build, package
Added CPack support for debian packages
2021-07-25 18:49:15 -05:00
stefan-sherwood 34384025f0
auto connect USB on startup (#17) 2021-05-06 21:16:17 -05:00
Matthew Hilton e1dd406287
add versioning to enable building via yocto (#15) 2021-02-01 20:53:47 -06:00
Zero 18219a240d
fix install for aasdk_proto (#14) 2020-12-21 12:21:53 -06:00
Cole Brinsfield 1f561aa711
voice session and ping (#13) 2020-08-28 17:26:03 -05:00
Egidijus 7cb2b41863
fix button codes (#11)
Co-authored-by: Ryan Press <ryan@presslab.us>
2020-07-28 19:44:51 -05:00
Jason Wenger 9170cef8a8
Merge pull request #10 from jcwenger/feature/directory-structure
Feature/directory structure
2020-07-11 22:48:13 -05:00
Jason C. Wenger 5dda24782d Correct tabs to spaces 2020-07-11 21:28:22 -05:00
Jason Wenger f9f02815d0 Rearrange directory structure 2020-07-04 09:37:43 -05:00
Jason Wenger 204c2edbe3 ignore a cmake file 2020-07-04 09:37:43 -05:00
Robert Stanley Judka 7f3d07ea59
Merge pull request #7 from kylegordon/develop
Local build instructions
2020-06-30 09:24:50 -05:00
Kyle Gordon c96e250166 Remove outdated info 2020-06-30 11:21:25 +01:00
Kyle Gordon 5f2cea7201 Reduce dependency list 2020-06-30 11:19:32 +01:00
Kyle Gordon 7493a98f8f Tweak build location to keep openauto happy 2020-06-29 21:18:14 +01:00
Kyle Gordon 406086dd0d
doh, need make install 2020-06-29 19:57:13 +01:00
Kyle Gordon 9593dd4414 Don't assume user is operating in homedir 2020-06-29 17:25:04 +01:00
Kyle Gordon ec562fee7e Use correct git repo 2020-06-29 12:33:45 +01:00
Kyle Gordon be194ecb4e git also required 2020-06-29 12:24:12 +01:00
Kyle Gordon 2194455681 Update with build instructions 2020-06-29 11:03:29 +01:00
Jason Wenger 2f8ab3d900
Merge pull request #6 from jcwenger/feature/line-endings
Correct line endings
2020-06-07 19:13:35 -10:00
Jason Wenger 3f200e9e59 Correct line endings 2020-06-06 22:11:12 +00:00
Jason Wenger 5cdac83352
Merge pull request #5 from jcwenger/feature/install
Support installation into /usr/local/include
2020-05-25 22:32:34 -10:00
Jason Wenger 4486455f17 Support installation 2020-05-25 20:06:19 -05:00
Jason Wenger f01d90a692 Fixes for newer boost 2020-05-12 21:53:21 -05:00
Robert Stanley Judka a4888526da
Merge pull request #2 from jcwenger/feature/cmake-warning-fixes
Feature/cmake warning fixes
2020-05-10 20:47:04 -05:00
Jason Wenger 96d2d90c67 Add ignores in case of in-place build 2020-05-10 14:55:57 -10:00
Jason Wenger 3acf7d221b Add ccache support 2020-05-10 14:55:57 -10:00
Jason Wenger ae72b7190f Adjust libusb module - avoid system warns about zero-size arrays 2020-05-10 14:55:57 -10:00
Jason Wenger c71a6565b5 Permissions fix - cmake files are not executable 2020-05-10 14:55:57 -10:00
jcwenger b2733fe146
Merge pull request #1 from jcwenger/feature/interleaved-channels
Feature/interleaved channels
2020-05-10 19:54:03 -05:00
Robert Stanley Judka d387974e9d fix interleaved channel crashing #2 2020-05-10 06:18:06 -10:00
Cole Brinsfield 5d7b2bf332 Fixes interleaved channel crashing 2020-05-10 06:07:15 -10:00
Huan Truong 1d91dec240
Merge pull request #4 from presslab-us/morebuttons
#5: Add more button codes
2020-01-20 15:58:06 -08:00
Ryan Press 902707fe34 Convert all decimal button codes to hex 2020-01-06 07:50:33 -05:00
Ryan Press 0e18a3a1e7 Add more button codes (from Headunit Android app) 2020-01-05 13:44:38 -05:00
Kevin Abraham 95617c24b2
Merge pull request #2 from abraha2d/development
Fix compatibility with latest Android Auto
2019-08-06 20:34:06 -04:00
Kevin Abraham 361380e7d7
Update aasdk_proto/WifiChannelData.proto to be proto2 instead of proto3 2019-07-16 15:21:04 -04:00
Kevin Abraham 5045f58867
[opencardev/crankshaft#357] Fix parsing error due to required field in VideoFocusRequest 2019-07-12 17:06:32 -04:00
Emil Borconi-Szedressy df25ec907d
Merge pull request #2 from abraha2d/development
Some more runtime error fixes
2019-07-10 23:44:34 +01:00
Kevin Abraham ba04fa980c
Fix runtime error about AVInputOpenRequest 2019-07-05 16:22:57 -04:00
Kevin Abraham b9cd29aede
Fix whitespace 2019-07-05 01:26:06 -04:00
Kevin Abraham 3c402da75e
Fix runtime error about touch_event.action_index 2019-07-05 01:22:41 -04:00
Emil Borconi-Szedressy 8ffa3d351b
Merge pull request #1 from abraha2d/development
Add files from borconi/AAProto
2019-07-04 21:16:57 +01:00
Kevin Abraham 8aec5b45a0 Fix whitespace 2019-07-04 16:08:00 -04:00
Kevin Abraham 5f4ec331a5 Put package names back to f1x.aasdk 2019-07-04 16:02:51 -04:00
Kevin Abraham 68bd1d8c00 Merge remote-tracking branch 'origin/development' 2019-07-04 13:23:48 -04:00
Kevin Abraham 1be914a6f6 Update from borconi/AAProto 2019-07-04 13:20:42 -04:00
Emil Borconi-Szedressy 516a98c348
Updated channels
Added 2 more channels.
2019-04-08 12:48:07 +01:00
michal.szwaj 046b3b3815 Enable no delay option 2018-07-17 16:18:01 +02:00
michal.szwaj 894da2e214 Self can be moved 2018-07-17 16:06:56 +02:00
michal.szwaj de146367bb Catch stop indication of video channel 2018-07-13 02:46:50 +02:00
Michal Szwaj 77d15dead9
Merge pull request #26 from htruong/development
[proto] correct spelling for angle
2018-04-09 23:02:35 +02:00
Huan Truong 7ebd59ff85 [proto] correct spelling for angle 2018-04-09 16:37:10 -04:00
288 changed files with 2519 additions and 2010 deletions

6
.gitattributes vendored 100644
View File

@ -0,0 +1,6 @@
*.proto text
*.cpp text
*.hpp text
*.txt text
*.md text
*.cmake text

View File

@ -0,0 +1,162 @@
name: Build and test with docker
on:
push:
tags:
- '*'
jobs:
version:
outputs:
version: ${{ steps.get_version.outputs.version }}
buildname: ${{ steps.get_version.outputs.buildname }}
runs-on: "ubuntu-latest"
steps:
-
name: Checkout repository
uses: actions/checkout@v1
-
name: Get the version
id: get_version
run: |
if [ -z "$version" ]
then
version=$(date '+%Y%m%d')
echo ::set-output name=version::"${version}"
else
echo ::set-output name=version::"${version}"
fi
builddate=$(date '+%Y-%m-%d')
buildhash=$(git rev-parse --short "$GITHUB_SHA")
buildname="${builddate}-${buildhash}"
echo ::set-output name=version::${VERSION}
echo ::set-output name=buildhash::${buildhash}
echo ::set-output name=builddate::${builddate}
echo ::set-output name=buildname::${buildname}
env:
version: ${{ github.event.inputs.version }}
compile:
runs-on: ${{ matrix.host }}
needs: [ version ]
strategy:
fail-fast: false
max-parallel: 3
matrix:
host: [
"ubuntu-latest",
#"macos-10.15",
]
config:
- {
name: "armhf Release",
arch: "armhf"
}
- {
name: "amd64 Release",
arch: "amd64"
}
name: 'Build and Upload release: ${{ matrix.config.name }}'
steps:
- uses: actions/checkout@v2
-
name: Build the Docker image
run: docker build -t aasdk_builder --file buildenv/Dockerfile .
-
name: 'Build ${{ matrix.config.arch }} Debian package'
run: docker run -v "${PWD}/release":/release aasdk_builder:latest ${{ matrix.config.arch }}
-
name: Get Name of Artifact
id: get-artifact-name
run: |
ls -hla
ARTIFACT_PATHNAME=$(ls ./release/*.deb | head -n 1)
ARTIFACT_NAME=$(basename $ARTIFACT_PATHNAME)
echo ::set-output name=artifact_filename::${ARTIFACT_NAME}
echo ::set-output name=artifact_path::${ARTIFACT_PATHNAME}
-
name: Upload build artifacts
id: upload_deploy
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.config.arch }}
path: |
${{ steps.get-artifact-name.outputs.artifact_path }}
# Create Release
release:
runs-on: ubuntu-latest
needs: [ version, compile ]
if: startsWith(github.ref, 'refs/tags/')
name: 'Create release'
outputs:
release_upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
steps:
- uses: actions/checkout@v2
-
name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v2.4.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Create GitHub release
id: create_release
uses: softprops/action-gh-release@v0.1.13
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{needs.version.outputs.version }}
release_name: ${{needs.version.outputs.buildname }}
body: ${{steps.github_release.outputs.changelog}}
draft: true
prerelease: true
# Upload release artifacts
upload:
needs: [ version, compile, release ]
runs-on: ${{ matrix.host }}
strategy:
fail-fast: false
max-parallel: 3
matrix:
host: [
"ubuntu-latest",
#"macos-10.15",
]
config:
- {
name: "armhf Release",
arch: "armhf"
}
- {
name: "amd64 Release",
arch: "amd64"
}
name: 'Upload release: ${{ matrix.config.name }}'
steps:
-
name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: ${{ steps.get_version.outputs.version }}
-
name: Get Artifact Filenames
id: get-artifact-name
run: |
ARTIFACT_PATHNAME=$(ls ${{ matrix.config.arch }}/*.deb | head -n 1)
ARTIFACT_NAME=$(basename $ARTIFACT_PATHNAME)
echo ::set-output name=artifact_filename::${ARTIFACT_NAME}
echo ::set-output name=artifact_path::${ARTIFACT_PATHNAME}
-
name: Upload zip to release
id: upload_zip
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_VERSION: ${{ needs.version.outputs.buildname }}
with:
upload_url: ${{needs.release.outputs.release_upload_url}}
asset_path: ${{ steps.get-artifact-name.outputs.artifact_path }}
asset_name: ${{ steps.get-artifact-name.outputs.artifact_filename }}
asset_content_type: application/vnd.debian.binary-package

10
.gitignore vendored
View File

@ -1,4 +1,12 @@
# Add any directories, files, or patterns you don't want to be tracked by version control
lib/
bin/
CMakeLists.txt.user
CMakeLists.txt.user
CMakeCache.txt
CMakeFiles
aasdk_proto/*.pb.cc
aasdk_proto/*.pb.h
Makefile
cmake_install.cmake
install_manifest.txt
build/**

57
.vscode/tasks.json vendored 100644
View File

@ -0,0 +1,57 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Clean",
"command": "sudo rm -R build",
"type": "shell",
"args": [],
"problemMatcher": [
"$tsc"
],
"presentation": {
"reveal": "always"
},
"group": "build"
},
{
"label": "Build",
"command": "mkdir build;cd build;cmake -DCMAKE_BUILD_TYPE=Release ../",
"type": "shell",
"args": [],
"problemMatcher": [
"$tsc"
],
"presentation": {
"reveal": "always"
},
"group": "build"
},
{
"label": "Create DEB Package",
"command": "cd build;cpack --config CPackConfig.cmake",
"type": "shell",
"args": [],
"problemMatcher": [
"$tsc"
],
"presentation": {
"reveal": "always"
},
"group": "build"
},
{
"label": "Create DEB SRC Package",
"command": "cd build;cpack --config CPackSourceConfig.cmake",
"type": "shell",
"args": [],
"problemMatcher": [
"$tsc"
],
"presentation": {
"reveal": "always"
},
"group": "build"
}
]
}

View File

@ -1,5 +1,29 @@
cmake_minimum_required(VERSION 3.5.1)
project(aasdk CXX)
if( TARGET_ARCH STREQUAL "amd64" )
message("Building for amd64")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
elseif( TARGET_ARCH STREQUAL "armhf" )
message("Building for armhf")
set(CMAKE_C_COMPILER /usr/bin/arm-linux-gnueabihf-gcc-8)
set(CMAKE_CXX_COMPILER /usr/bin/arm-linux-gnueabihf-g++-8)
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "armhf")
else()
message("Target Architecture not specified, not cross compiling")
endif()
set (aasdk_VERSION_MAJOR 3)
set (aasdk_VERSION_MINOR 1)
set (aasdk_VERSION_PATCH 0)
project(aasdk
VERSION ${aasdk_VERSION_MAJOR}.${aasdk_VERSION_MINOR}.${aasdk_VERSION_PATCH}
LANGUAGES CXX)
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()
set(base_directory ${CMAKE_CURRENT_SOURCE_DIR})
set(sources_directory ${base_directory}/src)
@ -25,6 +49,10 @@ set(Boost_USE_STATIC_RUNTIME OFF)
add_definitions(-DBOOST_ALL_DYN_LINK)
include(${base_directory}/cmake_modules/gitversion.cmake)
set (aasdk_VERSION_PATCH ${_commit_timestamp})
set (CMAKE_PROJECT_VERSION_PATCH ${aasdk_VERSION_PATCH})
if(WIN32)
set(WINSOCK2_LIBRARIES "ws2_32")
endif(WIN32)
@ -44,7 +72,6 @@ set(AASDK_PROTO_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR})
include_directories(${AASDK_PROTO_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${LIBUSB_1_INCLUDE_DIRS}
${PROTOBUF_INCLUDE_DIR}
${OPENSSL_INCLUDE_DIR}
${GTEST_INCLUDE_DIRS}
@ -66,12 +93,20 @@ add_library(aasdk SHARED
add_dependencies(aasdk aasdk_proto)
target_link_libraries(aasdk
aasdk_proto
libusb
${Boost_LIBRARIES}
${LIBUSB_1_LIBRARIES}
${PROTOBUF_LIBRARIES}
${OPENSSL_LIBRARIES}
${WINSOCK2_LIBRARIES})
set(aasdk_VERSION_STRING ${aasdk_VERSION_MAJOR}.${aasdk_VERSION_MINOR}.${aasdk_VERSION_PATCH})
message(INFO " Project Version: ${aasdk_VERSION_STRING}")
set_target_properties(aasdk PROPERTIES VERSION ${aasdk_VERSION_STRING}
SOVERSION ${aasdk_VERSION_MAJOR})
install(TARGETS aasdk DESTINATION lib COMPONENT libraries)
install(DIRECTORY include/aasdk DESTINATION include COMPONENT headers)
if(AASDK_TEST)
add_executable(aasdk_ut
${tests_source_files}
@ -89,3 +124,27 @@ if(AASDK_TEST)
setup_target_for_coverage(NAME aasdk_coverage EXECUTABLE aasdk_ut DEPENDENCIES aasdk_ut)
endif(AASDK_CODE_COVERAGE)
endif(AASDK_TEST)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "AASDK") #required
SET(CPACK_PACKAGE_VENDOR "AASDK")
set(CPACK_PACKAGE_VERSION ${aasdk_VERSION_STRING})
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libusb-1.0-0,libboost-all-dev,libssl-dev,libprotobuf-dev")
set(CPACK_COMPONENTS_ALL libraries headers Unspecified)
set(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "Libraries")
set(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C++ Headers")
set(CPACK_COMPONENT_LIBRARIES_DESCRIPTION
"Static libraries used to build programs with AASDK")
set(CPACK_COMPONENT_HEADERS_DESCRIPTION
"C/C++ header files for use with AASDK")
set(CPACK_COMPONENT_LIBRARIES_GROUP "Development")
set(CPACK_COMPONENT_HEADERS_GROUP "Development")
set(CPACK_COMPONENT_GROUP_DEVELOPMENT_EXPANDED ON)
set(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION
"All of the tools you'll ever need to develop software")
set(CPACK_COMPONENT_HEADERS_DEPENDS libraries)
set(CPACK_ALL_INSTALL_TYPES Full Developer)
set(CPACK_INSTALL_TYPE_FULL_DISPLAY_NAME "Everything")
set(CPACK_COMPONENT_LIBRARIES_INSTALL_TYPES Developer Full)
set(CPACK_COMPONENT_HEADERS_INSTALL_TYPES Developer Full)
INCLUDE(CPack)

View File

@ -1,14 +1,12 @@
# aasdk
### Support project
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9YH2QCXZ3YZXJ)
For support of other platforms please contact me at f1xstudiopl@gmail.com
### Brief description
C++ object-oriented library containing implementation of core AndroidAuto(tm) functionalities needed to build headunit software.
### Changes
Added recent changes by the OpenDsh team
### Supported functionalities
- AOAP (Android Open Accessory Protocol)
- USB transport
@ -42,4 +40,3 @@ Copyrights (c) 2018 f1x.studio (Michal Szwaj)
- [Protocol buffers](https://developers.google.com/protocol-buffers/)
- [OpenSSL](https://www.openssl.org/)
- [Google test framework](https://github.com/google/googletest)

View File

@ -16,20 +16,20 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "AVStreamTypeEnum.proto";
import "AudioTypeEnum.proto";
import "AudioConfigData.proto";
import "VideoConfigData.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message AVChannel
{
enums.AVStreamType.Enum stream_type = 1;
enums.AudioType.Enum audio_type = 2;
required enums.AVStreamType.Enum stream_type = 1;
optional enums.AudioType.Enum audio_type = 2;
repeated AudioConfig audio_configs = 3;
repeated VideoConfig video_configs = 4;
bool available_while_in_call = 5;
optional bool available_while_in_call = 5;
}

View File

@ -16,16 +16,16 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;
package aasdk.proto.ids;
message AVChannelMessage
{
enum Enum
{
AV_MEDIA_WITH_TIMESTAMP_INDICATION = 0x0000;
AV_MEDIA_INDICATION = 0x0001;
AV_MEDIA_INDICATION = 0x0001;
SETUP_REQUEST = 0x8000;
START_INDICATION = 0x8001;
STOP_INDICATION = 0x8002;

View File

@ -1,26 +1,26 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.messages;
message AVChannelSetupRequest
{
uint32 config_index = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.messages;
message AVChannelSetupRequest
{
required uint32 config_index = 1;
}

View File

@ -1,30 +1,30 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "AVChannelSetupStatusEnum.proto";
package f1x.aasdk.proto.messages;
message AVChannelSetupResponse
{
required enums.AVChannelSetupStatus.Enum media_status = 1;
required uint32 max_unacked = 2;
repeated uint32 configs = 3;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "AVChannelSetupStatusEnum.proto";
package aasdk.proto.messages;
message AVChannelSetupResponse
{
required enums.AVChannelSetupStatus.Enum media_status = 1;
required uint32 max_unacked = 2;
repeated uint32 configs = 3;
}

View File

@ -1,31 +1,31 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.enums;
message AVChannelSetupStatus
{
enum Enum
{
NONE = 0;
FAIL = 1;
OK = 2;
}
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.enums;
message AVChannelSetupStatus
{
enum Enum
{
NONE = 0;
FAIL = 1;
OK = 2;
}
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message AVChannelStartIndication
{
int32 session = 1;
uint32 config = 2;
required int32 session = 1;
required uint32 config = 2;
}

View File

@ -1,25 +1,25 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.messages;
message AVChannelStopIndication
{
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.messages;
message AVChannelStopIndication
{
}

View File

@ -16,16 +16,16 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "AVStreamTypeEnum.proto";
import "AudioConfigData.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message AVInputChannel
{
enums.AVStreamType.Enum stream_type = 1;
AudioConfig audio_config = 2;
bool available_while_in_call = 3;
required enums.AVStreamType.Enum stream_type = 1;
required AudioConfig audio_config = 2;
optional bool available_while_in_call = 3;
}

View File

@ -1,29 +1,29 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.messages;
message AVInputOpenRequest
{
bool open = 1;
bool anc = 2;
bool ec = 3;
int32 max_unacked = 4;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.messages;
message AVInputOpenRequest
{
required bool open = 1;
optional bool anc = 2;
optional bool ec = 3;
optional int32 max_unacked = 4;
}

View File

@ -1,27 +1,27 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package f1x.aasdk.proto.messages;
message AVInputOpenResponse
{
required int32 session = 1;
required uint32 value = 2;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.messages;
message AVInputOpenResponse
{
required int32 session = 1;
required uint32 value = 2;
}

View File

@ -1,27 +1,27 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package f1x.aasdk.proto.messages;
message AVMediaAckIndication
{
required int32 session = 1;
required uint32 value = 2;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.messages;
message AVMediaAckIndication
{
required int32 session = 1;
required uint32 value = 2;
}

View File

@ -1,31 +1,31 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.enums;
message AVStreamType
{
enum Enum
{
NONE = 0;
AUDIO = 1;
VIDEO = 3;
}
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.enums;
message AVStreamType
{
enum Enum
{
NONE = 0;
AUDIO = 1;
VIDEO = 3;
}
}

View File

@ -1,27 +1,27 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.data;
message AbsoluteInputEvent
{
uint32 scan_code = 1;
int32 value = 2;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.data;
message AbsoluteInputEvent
{
required uint32 scan_code = 1;
required int32 value = 2;
}

View File

@ -1,28 +1,28 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
import "AbsoluteInputEventData.proto";
package f1x.aasdk.proto.data;
message AbsoluteInputEvents
{
repeated AbsoluteInputEvent absolute_input_events = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "AbsoluteInputEventData.proto";
package aasdk.proto.data;
message AbsoluteInputEvents
{
repeated AbsoluteInputEvent absolute_input_events = 1;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Accel
{
int32 acceleration_x = 1;
int32 acceleration_y = 2;
int32 acceleration_z = 3;
required int32 acceleration_x = 1;
required int32 acceleration_y = 2;
required int32 acceleration_z = 3;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message AudioConfig
{
uint32 sample_rate = 1;
uint32 bit_depth = 2;
uint32 channel_count = 3;
required uint32 sample_rate = 1;
required uint32 bit_depth = 2;
required uint32 channel_count = 3;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "AudioFocusTypeEnum.proto";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message AudioFocusRequest
{
enums.AudioFocusType.Enum audio_focus_type = 1;
required enums.AudioFocusType.Enum audio_focus_type = 1;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "AudioFocusStateEnum.proto";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message AudioFocusResponse
{
enums.AudioFocusState.Enum audio_focus_state = 1;
required enums.AudioFocusState.Enum audio_focus_state = 1;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message AudioFocusState
{

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message AudioFocusType
{

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message AudioType
{

View File

@ -20,7 +20,7 @@ syntax="proto2";
import "StatusEnum.proto";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message AuthCompleteIndication
{

View File

@ -1,26 +1,26 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.messages;
message BindingRequest
{
repeated int32 scan_codes = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.messages;
message BindingRequest
{
repeated int32 scan_codes = 1;
}

View File

@ -1,28 +1,28 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "StatusEnum.proto";
package f1x.aasdk.proto.messages;
message BindingResponse
{
required enums.Status.Enum status = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "StatusEnum.proto";
package aasdk.proto.messages;
message BindingResponse
{
required enums.Status.Enum status = 1;
}

View File

@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "BluetoothPairingMethodEnum.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message BluetoothChannel
{
string adapter_address = 1;
required string adapter_address = 1;
repeated enums.BluetoothPairingMethod.Enum supported_pairing_methods = 2;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;
package aasdk.proto.ids;
message BluetoothChannelMessage
{

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message BluetoothPairingMethod
{

View File

@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "BluetoothPairingMethodEnum.proto";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message BluetoothPairingRequest
{
string phone_address = 1;
enums.BluetoothPairingMethod.Enum pairing_method = 2;
required string phone_address = 1;
required enums.BluetoothPairingMethod.Enum pairing_method = 2;
}

View File

@ -16,14 +16,14 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "BluetoothPairingStatusEnum.proto";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message BluetoothPairingResponse
{
bool already_paired = 1;
enums.BluetoothPairingStatus.Enum status = 2;
required bool already_paired = 1;
required enums.BluetoothPairingStatus.Enum status = 2;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message BluetoothPairingStatus
{

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message ButtonCode
{
@ -42,6 +42,14 @@ message ButtonCode
PREV = 0x58;
PLAY = 0x7E;
PAUSE = 0x7F;
SCROLL_WHEEL = 65536;
MUSIC = 0xD1;
SCROLL_WHEEL = 0x10000;
MEDIA = 0x10001;
NAVIGATION = 0x10002;
RADIO = 0x10003;
TEL = 0x10004;
PRIMARY_BUTTON = 0x10005;
SECONDARY_BUTTON = 0x10006;
TERTIARY_BUTTON = 0x10007;
}
}

View File

@ -1,29 +1,29 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.data;
message ButtonEvent
{
uint32 scan_code = 1;
bool is_pressed = 2;
uint32 meta = 3;
bool long_press = 4;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.data;
message ButtonEvent
{
required uint32 scan_code = 1;
required bool is_pressed = 2;
optional uint32 meta = 3;
optional bool long_press = 4;
}

View File

@ -1,28 +1,28 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
import "ButtonEventData.proto";
package f1x.aasdk.proto.data;
message ButtonEvents
{
repeated ButtonEvent button_events = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "ButtonEventData.proto";
package aasdk.proto.data;
message ButtonEvents
{
repeated ButtonEvent button_events = 1;
}

View File

@ -7,3 +7,11 @@ protobuf_generate_cpp(proto_sources proto_headers ${proto_files})
add_library(aasdk_proto SHARED ${proto_headers} ${proto_sources})
target_link_libraries(aasdk_proto ${PROTOBUF_LIBRARIES})
set(aasdk_VERSION_STRING ${aasdk_VERSION_MAJOR}.${aasdk_VERSION_MINOR}.${aasdk_VERSION_PATCH})
set_target_properties(aasdk_proto PROPERTIES VERSION ${aasdk_VERSION_STRING}
SOVERSION ${aasdk_VERSION_MAJOR})
install(TARGETS aasdk_proto DESTINATION lib)
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DESTINATION include
FILES_MATCHING PATTERN *.h
PATTERN CMakeFiles EXCLUDE )

View File

@ -16,7 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
option optimize_for=SPEED;
import "SensorChannelData.proto";
import "AVChannelData.proto";
@ -25,17 +27,21 @@ import "AVInputChannelData.proto";
import "BluetoothChannelData.proto";
import "NavigationChannelData.proto";
import "VendorExtensionChannelData.proto";
import "MediaChannelData.proto";
import "WifiChannelData.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message ChannelDescriptor
{
uint32 channel_id = 1;
SensorChannel sensor_channel = 2;
AVChannel av_channel = 3;
InputChannel input_channel = 4;
AVInputChannel av_input_channel = 5;
BluetoothChannel bluetooth_channel = 6;
NavigationChannel navigation_channel = 8;
VendorExtensionChannel vendor_extension_channel = 12;
required uint32 channel_id = 1;
optional SensorChannel sensor_channel = 2;
optional AVChannel av_channel = 3;
optional InputChannel input_channel = 4;
optional AVInputChannel av_input_channel = 5;
optional BluetoothChannel bluetooth_channel = 6;
optional NavigationChannel navigation_channel = 8;
optional MediaInfoChannel media_infoChannel = 9;
optional VendorExtensionChannel vendor_extension_channel = 12;
optional WifiChannel wifi_channel=16;
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message ChannelOpenRequest
{
int32 priority = 1;
int32 channel_id = 2;
required int32 priority = 1;
required int32 channel_id = 2;
}

View File

@ -20,7 +20,7 @@ syntax="proto2";
import "StatusEnum.proto";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message ChannelOpenResponse
{

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Compass
{
int32 bearing =1;
int32 pitch = 2;
int32 roll = 3;
required int32 bearing =1;
required int32 pitch = 2;
required int32 roll = 3;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;
package aasdk.proto.ids;
message ControlMessage
{

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Diagnostics
{
bytes diagnostics = 1;
required bytes diagnostics = 1;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Door
{
bool hood_open = 1;
bool boot_open = 2;
required bool hood_open = 1;
required bool boot_open = 2;
repeated bool door_open = 3;
}

View File

@ -18,7 +18,7 @@
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message DrivingStatus
{

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message DrivingStatus
{

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Environment
{
int32 temperature =1;
int32 pressure = 2;
int32 rain = 3;
required int32 temperature =1;
required int32 pressure = 2;
required int32 rain = 3;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message FuelLevel
{
int32 fuel_level = 1;
int32 range = 2;
bool low_fuel = 3;
required int32 fuel_level = 1;
required int32 range = 2;
required bool low_fuel = 3;
}

View File

@ -16,17 +16,17 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message GPSLocation
{
uint64 timestamp = 1;
int32 latitude = 2;
int32 longitude = 3;
uint32 accuracy = 4;
int32 altitude = 5;
int32 speed = 6;
int32 bearing = 7;
required uint64 timestamp = 1;
required int32 latitude = 2;
required int32 longitude = 3;
required uint32 accuracy = 4;
optional int32 altitude = 5;
optional int32 speed = 6;
optional int32 bearing = 7;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "GearEnum.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Gear
{
enums.Gear.Enum gear = 1;
required enums.Gear.Enum gear = 1;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message Gear
{

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Gyro
{
int32 rotation_speed_x = 1;
int32 rotation_speed_y = 2;
int32 rotation_speed_z = 3;
required int32 rotation_speed_x = 1;
required int32 rotation_speed_y = 2;
required int32 rotation_speed_z = 3;
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message HVAC
{
int32 target_temperature = 1;
int32 current_temperature = 2;
required int32 target_temperature = 1;
required int32 current_temperature = 2;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message HeadlightStatus
{

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message IndicatorStatus
{

View File

@ -16,15 +16,15 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "TouchConfigData.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message InputChannel
{
repeated uint32 supported_keycodes = 1;
TouchConfig touch_screen_config = 2;
TouchConfig touch_pad_config = 3;
optional TouchConfig touch_screen_config = 2;
optional TouchConfig touch_pad_config = 3;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;
package aasdk.proto.ids;
message InputChannelMessage
{

View File

@ -1,36 +1,36 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
import "TouchEventData.proto";
import "ButtonEventsData.proto";
import "AbsoluteInputEventsData.proto";
import "RelativeInputEventsData.proto";
package f1x.aasdk.proto.messages;
message InputEventIndication
{
uint64 timestamp = 1;
int32 disp_channel = 2;
data.TouchEvent touch_event = 3;
data.ButtonEvents button_event = 4;
data.AbsoluteInputEvents absolute_input_event = 5;
data.RelativeInputEvents relative_input_event = 6;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "TouchEventData.proto";
import "ButtonEventsData.proto";
import "AbsoluteInputEventsData.proto";
import "RelativeInputEventsData.proto";
package aasdk.proto.messages;
message InputEventIndication
{
required uint64 timestamp = 1;
optional int32 disp_channel = 2;
optional data.TouchEvent touch_event = 3;
optional data.ButtonEvents button_event = 4;
optional data.AbsoluteInputEvents absolute_input_event = 5;
optional data.RelativeInputEvents relative_input_event = 6;
}

View File

@ -16,16 +16,16 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "HeadlightStatusEnum.proto";
import "IndicatorStatusEnum.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Light
{
enums.HeadlightStatus.Enum headlight = 1;
enums.IndicatorStatus.Enum indicator = 2;
bool hazard_light_on = 3;
required enums.HeadlightStatus.Enum headlight = 1;
required enums.IndicatorStatus.Enum indicator = 2;
required bool hazard_light_on = 3;
}

View File

@ -0,0 +1,26 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.data;
message MediaInfoChannel
{
}

View File

@ -16,15 +16,15 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "NavigationImageOptionsData.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message NavigationChannel
{
uint32 minimum_interval_ms = 1;
uint32 type = 2;
NavigationImageOptions image_options = 3;
required uint32 minimum_interval_ms = 1;
required uint32 type = 2;
required NavigationImageOptions image_options = 3;
}

View File

@ -1,26 +1,26 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.messages;
message NavigationFocusRequest
{
uint32 type = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.messages;
message NavigationFocusRequest
{
required uint32 type = 1;
}

View File

@ -1,26 +1,26 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.messages;
message NavigationFocusResponse
{
uint32 type = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.messages;
message NavigationFocusResponse
{
required uint32 type = 1;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message NavigationImageOptions
{
int32 width = 1;
int32 height = 2;
int32 colour_depth_bits = 3;
required int32 width = 1;
required int32 height = 2;
required int32 colour_depth_bits = 3;
}

View File

@ -18,7 +18,7 @@
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message NightMode
{

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Odometer
{
int32 total_mileage = 1;
int32 trip_mileage = 2;
required int32 total_mileage = 1;
required int32 trip_mileage = 2;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message ParkingBrake
{
bool parking_brake = 1;
required bool parking_brake = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Passenger
{
bool passenger_present = 1;
required bool passenger_present = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message PingRequest
{
int64 timestamp = 1;
required int64 timestamp = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message PingResponse
{
int64 timestamp = 1;
required int64 timestamp = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message RPM
{
int32 rpm = 1;
required int32 rpm = 1;
}

View File

@ -1,27 +1,27 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.data;
message RelativeInputEvent
{
uint32 scan_code = 1;
int32 delta = 2;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.data;
message RelativeInputEvent
{
required uint32 scan_code = 1;
required int32 delta = 2;
}

View File

@ -1,28 +1,28 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
import "RelativeInputEventData.proto";
package f1x.aasdk.proto.data;
message RelativeInputEvents
{
repeated RelativeInputEvent relative_input_events = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "RelativeInputEventData.proto";
package aasdk.proto.data;
message RelativeInputEvents
{
repeated RelativeInputEvent relative_input_events = 1;
}

View File

@ -16,11 +16,11 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "SensorData.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message SensorChannel
{

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.ids;
package aasdk.proto.ids;
message SensorChannelMessage
{

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "SensorTypeEnum.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Sensor
{
enums.SensorType.Enum type = 1;
required enums.SensorType.Enum type = 1;
}

View File

@ -16,7 +16,7 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "GPSLocationData.proto";
import "CompassData.proto";
@ -38,7 +38,7 @@ import "LightData.proto";
import "AccelData.proto";
import "GyroData.proto";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message SensorEventIndication
{

View File

@ -1,29 +1,29 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
import "SensorTypeEnum.proto";
package f1x.aasdk.proto.messages;
message SensorStartRequestMessage
{
enums.SensorType.Enum sensor_type = 1;
int64 refresh_interval = 2;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "SensorTypeEnum.proto";
package aasdk.proto.messages;
message SensorStartRequestMessage
{
required enums.SensorType.Enum sensor_type = 1;
required int64 refresh_interval = 2;
}

View File

@ -1,28 +1,28 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "StatusEnum.proto";
package f1x.aasdk.proto.messages;
message SensorStartResponseMessage
{
required enums.Status.Enum status = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "StatusEnum.proto";
package aasdk.proto.messages;
message SensorStartResponseMessage
{
required enums.Status.Enum status = 1;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message SensorType
{

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message ServiceDiscoveryRequest
{
string device_name = 4;
string device_brand = 5;
required string device_name = 4;
required string device_brand = 5;
}

View File

@ -16,24 +16,24 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "ChannelDescriptorData.proto";
package f1x.aasdk.proto.messages;
package aasdk.proto.messages;
message ServiceDiscoveryResponse
{
repeated data.ChannelDescriptor channels = 1;
string head_unit_name = 2;
string car_model = 3;
string car_year = 4;
string car_serial = 5;
bool left_hand_drive_vehicle = 6;
string headunit_manufacturer = 7;
string headunit_model = 8;
string sw_build = 9;
string sw_version = 10;
bool can_play_native_media_during_vr = 11;
bool hide_clock = 12;
required string head_unit_name = 2;
required string car_model = 3;
required string car_year = 4;
required string car_serial = 5;
required bool left_hand_drive_vehicle = 6;
required string headunit_manufacturer = 7;
required string headunit_model = 8;
required string sw_build = 9;
required string sw_version = 10;
required bool can_play_native_media_during_vr = 11;
optional bool hide_clock = 12;
}

View File

@ -1,30 +1,30 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.enums;
message ShutdownReason
{
enum Enum
{
NONE = 0;
QUIT = 1;
}
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.enums;
message ShutdownReason
{
enum Enum
{
NONE = 0;
QUIT = 1;
}
}

View File

@ -1,28 +1,28 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
import "ShutdownReasonEnum.proto";
package f1x.aasdk.proto.messages;
message ShutdownRequest
{
enums.ShutdownReason.Enum reason = 1;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "ShutdownReasonEnum.proto";
package aasdk.proto.messages;
message ShutdownRequest
{
required enums.ShutdownReason.Enum reason = 1;
}

View File

@ -1,25 +1,25 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.messages;
message ShutdownResponse
{
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.messages;
message ShutdownResponse
{
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message Speed
{
int32 speed = 1;
bool cruise_engaged = 2;
bool cruise_set_speed = 3;
required int32 speed = 1;
optional bool cruise_engaged = 2;
optional bool cruise_set_speed = 3;
}

View File

@ -1,3 +1,4 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
@ -16,15 +17,15 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message Status
{
enum Enum
{
OK = 0;
OK = 0;
FAIL = 1;
}
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message SteeringWheel
{
int32 steering_angel = 1;
int32 wheel_speed = 2;
required int32 steering_angle = 1;
required int32 wheel_speed = 2;
}

View File

@ -1,31 +1,33 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.enums;
message TouchAction
{
enum Enum
{
PRESS = 0;
RELEASE = 1;
DRAG = 2;
}
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.enums;
message TouchAction
{
enum Enum
{
PRESS = 0;
RELEASE = 1;
DRAG = 2;
POINTER_DOWN = 5;
POINTER_UP = 6;
}
}

View File

@ -16,12 +16,12 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message TouchConfig
{
uint32 width = 1;
uint32 height = 2;
required uint32 width = 1;
required uint32 height = 2;
}

View File

@ -1,31 +1,31 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
import "TouchLocationData.proto";
import "TouchActionEnum.proto";
package f1x.aasdk.proto.data;
message TouchEvent
{
repeated data.TouchLocation touch_location = 1;
uint32 action_index = 2;
enums.TouchAction.Enum touch_action = 3;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "TouchLocationData.proto";
import "TouchActionEnum.proto";
package aasdk.proto.data;
message TouchEvent
{
repeated data.TouchLocation touch_location = 1;
optional uint32 action_index = 2;
required enums.TouchAction.Enum touch_action = 3;
}

View File

@ -1,28 +1,28 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
package f1x.aasdk.proto.data;
message TouchLocation
{
uint32 x = 1;
uint32 y = 2;
uint32 pointer_id = 3;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
package aasdk.proto.data;
message TouchLocation
{
required uint32 x = 1;
required uint32 y = 2;
required uint32 pointer_id = 3;
}

View File

@ -16,13 +16,13 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message VendorExtensionChannel
{
string name = 1;
required string name = 1;
repeated string package_white_list = 2;
bytes data = 3;
optional bytes data = 3;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message VersionResponseStatus
{

View File

@ -16,19 +16,19 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
import "VideoResolutionEnum.proto";
import "VideoFPSEnum.proto";
package f1x.aasdk.proto.data;
package aasdk.proto.data;
message VideoConfig
{
enums.VideoResolution.Enum video_resolution = 1;
enums.VideoFPS.Enum video_fps = 2;
uint32 margin_width = 3;
uint32 margin_height = 4;
uint32 dpi = 5;
uint32 additional_depth = 6;
required enums.VideoResolution.Enum video_resolution = 1;
required enums.VideoFPS.Enum video_fps = 2;
required uint32 margin_width = 3;
required uint32 margin_height = 4;
required uint32 dpi = 5;
optional uint32 additional_depth = 6;
}

View File

@ -16,9 +16,9 @@
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
syntax="proto2";
package f1x.aasdk.proto.enums;
package aasdk.proto.enums;
message VideoFPS
{

View File

@ -1,29 +1,29 @@
/*
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto3";
import "VideoFocusModeEnum.proto";
package f1x.aasdk.proto.messages;
message VideoFocusIndication
{
enums.VideoFocusMode.Enum focus_mode = 1;
bool unrequested = 2;
}
* This file is part of aasdk library project.
* Copyright (C) 2018 f1x.studio (Michal Szwaj)
*
* aasdk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
* aasdk 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with aasdk. If not, see <http://www.gnu.org/licenses/>.
*/
syntax="proto2";
import "VideoFocusModeEnum.proto";
package aasdk.proto.messages;
message VideoFocusIndication
{
required enums.VideoFocusMode.Enum focus_mode = 1;
required bool unrequested = 2;
}

Some files were not shown because too many files have changed in this diff Show More