Skip to content

Commit 25e5c62

Browse files
committed
Fix includes for internal build
Includes additional changes: - More header include fixes than strictly needed for the internal build - Some constructors are made `explicit` - Removes the `std::` prefix from some C types - Remove meaningless `const` from function declarations Bug: b/473067137
1 parent c45bc56 commit 25e5c62

16 files changed

+78
-33
lines changed

base/cvd/cuttlefish/common/libs/utils/files.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include <sys/types.h>
2020

2121
#include <chrono>
22+
#include <functional>
2223
#include <optional>
2324
#include <string>
2425
#include <string_view>

base/cvd/cuttlefish/host/frontend/webrtc/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ cf_cc_binary(
9696
"@gflags",
9797
"@googleapis//google/rpc:code_cc_proto",
9898
"@googleapis//google/rpc:status_cc_proto",
99+
"@grpc//:grpc++",
99100
"@jsoncpp",
100101
"@libdrm//:libdrm_fourcc",
101102
"@libjpeg_turbo//:jpeg",

base/cvd/cuttlefish/host/frontend/webrtc/adb_handler.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@
1616

1717
#include "cuttlefish/host/frontend/webrtc/adb_handler.h"
1818

19+
#include <stddef.h>
20+
#include <stdint.h>
1921
#include <unistd.h>
2022

23+
#include <functional>
24+
#include <string>
25+
2126
#include "absl/log/log.h"
2227

23-
#include "cuttlefish/posix/strerror.h"
28+
#include "cuttlefish/common/libs/fs/shared_fd.h"
29+
#include "cuttlefish/common/libs/fs/shared_select.h"
2430

2531
using namespace android;
2632

base/cvd/cuttlefish/host/frontend/webrtc/adb_handler.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
#pragma once
1818

19-
#include <memory>
19+
#include <stddef.h>
20+
#include <stdint.h>
21+
22+
#include <functional>
2023
#include <thread>
2124

2225
#include "cuttlefish/common/libs/fs/shared_fd.h"

base/cvd/cuttlefish/host/frontend/webrtc/bluetooth_handler.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
#pragma once
1818

19-
#include <memory>
19+
#include <stddef.h>
20+
#include <stdint.h>
21+
22+
#include <functional>
2023
#include <thread>
2124

2225
#include "cuttlefish/common/libs/fs/shared_fd.h"
@@ -27,8 +30,8 @@ namespace webrtc_streaming {
2730

2831
struct BluetoothHandler {
2932
explicit BluetoothHandler(
30-
const int rootCanalTestPort,
31-
std::function<void(const uint8_t *, size_t)> send_to_client);
33+
int rootCanalTestPort,
34+
std::function<void(const uint8_t*, size_t)> send_to_client);
3235

3336
~BluetoothHandler();
3437

base/cvd/cuttlefish/host/frontend/webrtc/gpx_locations_handler.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@
1616

1717
#include "cuttlefish/host/frontend/webrtc/gpx_locations_handler.h"
1818

19+
#include <stddef.h>
20+
#include <stdint.h>
1921
#include <unistd.h>
2022

2123
#include <iostream>
2224
#include <string>
2325

2426
#include "absl/log/log.h"
27+
#include "fmt/format.h"
28+
#include "grpcpp/create_channel.h"
2529

2630
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
2731
#include "cuttlefish/host/libs/location/GnssClient.h"
2832
#include "cuttlefish/host/libs/location/GpxParser.h"
33+
#include "cuttlefish/result/result.h"
2934

3035
namespace cuttlefish::webrtc_streaming {
3136

base/cvd/cuttlefish/host/frontend/webrtc/gpx_locations_handler.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
#pragma once
1818

19-
#include "cuttlefish/common/libs/fs/shared_select.h"
19+
#include <stddef.h>
20+
#include <stdint.h>
21+
22+
#include <functional>
2023

2124
namespace cuttlefish {
2225
namespace webrtc_streaming {

base/cvd/cuttlefish/host/frontend/webrtc/kernel_log_events_handler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@
1818

1919
#include "absl/log/check.h"
2020
#include "absl/log/log.h"
21+
#include "json/value.h"
2122

23+
#include "cuttlefish/common/libs/fs/shared_fd.h"
2224
#include "cuttlefish/common/libs/fs/shared_select.h"
2325
#include "cuttlefish/host/commands/kernel_log_monitor/kernel_log_server.h"
2426
#include "cuttlefish/host/commands/kernel_log_monitor/utils.h"
2527
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
28+
#include "cuttlefish/result/result.h"
2629

2730
using namespace android;
2831

base/cvd/cuttlefish/host/frontend/webrtc/kernel_log_events_handler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
#pragma once
1818

1919
#include <atomic>
20+
#include <functional>
2021
#include <list>
2122
#include <map>
22-
#include <memory>
2323
#include <mutex>
2424
#include <thread>
2525

26-
#include <json/json.h>
26+
#include "json/value.h"
2727

2828
#include "cuttlefish/common/libs/fs/shared_fd.h"
2929

base/cvd/cuttlefish/host/frontend/webrtc/kml_locations_handler.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616

1717
#include "cuttlefish/host/frontend/webrtc/kml_locations_handler.h"
1818

19+
#include <stddef.h>
20+
#include <stdint.h>
1921
#include <unistd.h>
2022

2123
#include <iostream>
2224
#include <string>
2325

2426
#include "absl/log/log.h"
27+
#include "fmt/format.h"
28+
#include "grpcpp/create_channel.h"
2529

2630
#include "cuttlefish/host/libs/config/cuttlefish_config.h"
2731
#include "cuttlefish/host/libs/location/GnssClient.h"

0 commit comments

Comments
 (0)