Android-cuttlefish cvd tool
cuttlefish
host
commands
run_cvd
launch
sensors_socket_pair.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2025 The Android Open Source Project
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
16
#pragma once
17
18
#include "
cuttlefish/common/libs/fs/shared_fd.h
"
19
#include "
cuttlefish/common/libs/utils/result.h
"
20
#include "
cuttlefish/host/libs/feature/feature.h
"
21
22
namespace
cuttlefish
{
23
24
struct
SensorsSocketPair
{
25
SharedFD
webrtc_socket
;
26
SharedFD
sensors_simulator_socket
;
27
28
static
Result<SensorsSocketPair>
Create
();
29
};
30
31
using
AutoSensorsSocketPair
=
AutoSetup<SensorsSocketPair::Create>
;
32
33
}
// namespace cuttlefish
android::base::expected
Definition:
expected.h:86
cuttlefish::SharedFD
Definition:
shared_fd.h:129
result.h
feature.h
cuttlefish
Definition:
alloc_utils.cpp:23
shared_fd.h
cuttlefish::GenericSetupImpl
Definition:
feature.h:222
cuttlefish::SensorsSocketPair
Definition:
sensors_socket_pair.h:24
cuttlefish::SensorsSocketPair::webrtc_socket
SharedFD webrtc_socket
Definition:
sensors_socket_pair.h:25
cuttlefish::SensorsSocketPair::Create
static Result< SensorsSocketPair > Create()
Definition:
sensors_socket_pair.cpp:25
cuttlefish::SensorsSocketPair::sensors_simulator_socket
SharedFD sensors_simulator_socket
Definition:
sensors_socket_pair.h:26
Generated by
1.9.4