Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2019-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
cmake_minimum_required (VERSION 3.6)
project (vhal-client VERSION 0.1 DESCRIPTION "VHAL Client library written in C++17 for Touch, Joystick, GPS, Audio, Camera and Sensor, " LANGUAGES CXX)

Expand Down
3 changes: 3 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2019-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
add_executable (camera_socket_client camera_socket_client.cc)
target_link_libraries (camera_socket_client LINK_PUBLIC ${PROJECT_NAME})

Expand Down
19 changes: 19 additions & 0 deletions examples/audio_playback_client.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/**
*
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "tcp_stream_socket_client.h"
#include "audio_source.h"
#include "android_audio_core.h"
Expand Down
19 changes: 19 additions & 0 deletions examples/audio_record_client.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/**
*
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "tcp_stream_socket_client.h"
#include "audio_sink.h"
#include "android_audio_core.h"
Expand Down
4 changes: 3 additions & 1 deletion examples/camera_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* @version 1.0
* @date 2021-04-27
*
* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -18,6 +19,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "video_sink.h"
Expand Down
6 changes: 4 additions & 2 deletions examples/camera_client_app_template.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/**
* @file camera_client.cc
* @file camera_client_app_template.cc
* @author Shakthi Prashanth M ([email protected])
* @brief
* @version 1.0
* @date 2021-04-27
*
* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -18,6 +19,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "unix_stream_socket_client.h"
Expand Down
4 changes: 3 additions & 1 deletion examples/camera_socket_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* @version 1.0
* @date 2021-04-27
*
* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -19,6 +20,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "unix_stream_socket_client.h"
Expand Down
19 changes: 19 additions & 0 deletions examples/command_channel_client.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/**
*
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "tcp_stream_socket_client.h"
#include "command_channel_interface.h"
#include <array>
Expand Down
4 changes: 3 additions & 1 deletion examples/host_camera_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
* @version 1.0
* @date 2021-04-30
*
* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -18,6 +19,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "vsock_stream_socket_client.h"
Expand Down
19 changes: 19 additions & 0 deletions examples/hwc_example.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/**
*
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "hwc_vhal.h"
#include <getopt.h>
#include <iostream>
Expand Down
4 changes: 2 additions & 2 deletions examples/sensor_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
* @version 1.0
* @date 2021-07-27
*
* Copyright (c) 2021 Intel Corporation

* Copyright (c) 2021-2022 Intel Corporation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
Expand All @@ -19,6 +18,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <array>
Expand Down
19 changes: 19 additions & 0 deletions examples/virtual_gps_receiver_sample.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/**
*
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "receiver_log.h"
#include "virtual_gps_receiver.h"

Expand Down
19 changes: 19 additions & 0 deletions examples/virtual_input_receiver_sample.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/**
*
* Copyright (c) 2021-2022 Intel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include "virtual_input_receiver.h"
#include <getopt.h>
#include <iostream>
Expand Down
3 changes: 3 additions & 0 deletions include/libvhal/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright (C) 2019-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
install( DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR} FILES_MATCHING PATTERN *.h)
8 changes: 5 additions & 3 deletions include/libvhal/android_audio_core.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef ANDROID_AUDIO_CORE_H
#define ANDROID_AUDIO_CORE_H
/**
*
* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,7 +14,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef ANDROID_AUDIO_CORE_H
#define ANDROID_AUDIO_CORE_H
namespace vhal {
namespace client {
namespace audio {
Expand Down
8 changes: 5 additions & 3 deletions include/libvhal/audio_common.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef AUDIO_COMMON_H
#define AUDIO_COMMON_H
/**
*
* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,8 +14,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef AUDIO_COMMON_H
#define AUDIO_COMMON_H

#include <cstdint>
#include <functional>
#include "android_audio_core.h"
Expand Down
9 changes: 6 additions & 3 deletions include/libvhal/audio_sink.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#ifndef AUDIO_SINK_H
#define AUDIO_SINK_H
/**
* @file audio_sink.h
* @author Nitisha Tomar ([email protected])
* @brief
* @version 0.1
* @date 2021-07-27
*
* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,7 +19,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef AUDIO_SINK_H
#define AUDIO_SINK_H

#include "audio_common.h"
#include "istream_socket_client.h"
#include "libvhal_common.h"
Expand Down
11 changes: 7 additions & 4 deletions include/libvhal/audio_source.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#ifndef AUDIO_SOURCE_H
#define AUDIO_SOURCE_H
/**
* @file audio_source.h
* @author Nitisha Tomar ([email protected])
* @brief
* @version 0.1
* @date 2021-07-27
*
* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -20,8 +18,13 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef AUDIO_SOURCE_H
#define AUDIO_SOURCE_H

#include "audio_common.h"
#include "istream_socket_client.h"
#include "libvhal_common.h"
Expand Down
9 changes: 6 additions & 3 deletions include/libvhal/command_channel_interface.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#ifndef COMMAND_CHANNEL_INTERFACE
#define COMMAND_CHANNEL_INTERFACE
/**
* @file command_channel_interface.h
* @author Kai Liu ([email protected])
* @brief
* @version 0.1
* @date 2021-07-22
*
* Copyright (c) 2021 Intel Corporation
* Copyright (c) 2021-2022 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -21,7 +19,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

#ifndef COMMAND_CHANNEL_INTERFACE
#define COMMAND_CHANNEL_INTERFACE

#include "istream_socket_client.h"
#include "libvhal_common.h"
#include <functional>
Expand Down
Loading