mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Move dbus stubs to generated package.
This commit is contained in:
@@ -33,10 +33,6 @@ cc_library(
|
|||||||
"timer.h",
|
"timer.h",
|
||||||
"thread_pool.h",
|
"thread_pool.h",
|
||||||
"log_message.h",
|
"log_message.h",
|
||||||
"org_freedesktop_logcontrol_server_glue.h",
|
|
||||||
"hostname_client_glue.h",
|
|
||||||
"login_manager_client_glue.h",
|
|
||||||
"login_session_client_glue.h",
|
|
||||||
"utils.h",
|
"utils.h",
|
||||||
],
|
],
|
||||||
srcs = [
|
srcs = [
|
||||||
@@ -59,9 +55,6 @@ cc_library(
|
|||||||
name = "comm",
|
name = "comm",
|
||||||
hdrs = [
|
hdrs = [
|
||||||
"avahi.h",
|
"avahi.h",
|
||||||
"avahi_entrygroup_client_glue.h",
|
|
||||||
"avahi_server_client_glue.h",
|
|
||||||
"avahi_servicebrowser_client_glue.h",
|
|
||||||
"ble_medium.h",
|
"ble_medium.h",
|
||||||
"ble_v2_medium.h",
|
"ble_v2_medium.h",
|
||||||
"bluetooth_adapter.h",
|
"bluetooth_adapter.h",
|
||||||
@@ -73,17 +66,7 @@ cc_library(
|
|||||||
"bluetooth_devices.h",
|
"bluetooth_devices.h",
|
||||||
"bluetooth_pairing.h",
|
"bluetooth_pairing.h",
|
||||||
"bluez.h",
|
"bluez.h",
|
||||||
"bluez_adapter_client_glue.h",
|
|
||||||
"bluez_device_client_glue.h",
|
|
||||||
"bluez_profile_glue.h",
|
|
||||||
"bluez_profile_manager_client_glue.h",
|
|
||||||
"dbus.h",
|
"dbus.h",
|
||||||
"networkmanager_accesspoint_client_glue.h",
|
|
||||||
"networkmanager_client_glue.h",
|
|
||||||
"networkmanager_connection_active_client_glue.h",
|
|
||||||
"networkmanager_device_wifip2p_client_glue.h",
|
|
||||||
"networkmanager_device_wireless_client_glue.h",
|
|
||||||
"networkmanager_ip4config_client_glue.h",
|
|
||||||
"stream.h",
|
"stream.h",
|
||||||
"wifi_direct.h",
|
"wifi_direct.h",
|
||||||
"wifi_direct_server_socket.h",
|
"wifi_direct_server_socket.h",
|
||||||
@@ -104,6 +87,7 @@ cc_library(
|
|||||||
"//internal/platform:uuid",
|
"//internal/platform:uuid",
|
||||||
"//internal/platform/implementation:comm",
|
"//internal/platform/implementation:comm",
|
||||||
"//internal/platform/implementation:types",
|
"//internal/platform/implementation:types",
|
||||||
|
"//internal/platform/implementation/linux/generated:types",
|
||||||
"@com_google_absl//absl/base:core_headers",
|
"@com_google_absl//absl/base:core_headers",
|
||||||
"@com_google_absl//absl/container:flat_hash_map",
|
"@com_google_absl//absl/container:flat_hash_map",
|
||||||
"@com_google_absl//absl/container:flat_hash_set",
|
"@com_google_absl//absl/container:flat_hash_set",
|
||||||
@@ -188,6 +172,7 @@ cc_library(
|
|||||||
"//internal/platform/implementation:types",
|
"//internal/platform/implementation:types",
|
||||||
"//internal/platform/implementation/shared:count_down_latch",
|
"//internal/platform/implementation/shared:count_down_latch",
|
||||||
"//internal/platform/implementation/shared:file",
|
"//internal/platform/implementation/shared:file",
|
||||||
|
"//internal/platform/implementation/linux/generated:types",
|
||||||
"@com_google_absl//absl/base:core_headers",
|
"@com_google_absl//absl/base:core_headers",
|
||||||
"@com_google_absl//absl/container:flat_hash_map",
|
"@com_google_absl//absl/container:flat_hash_map",
|
||||||
"@com_google_absl//absl/functional:any_invocable",
|
"@com_google_absl//absl/functional:any_invocable",
|
||||||
|
|||||||
@@ -19,9 +19,9 @@
|
|||||||
#include <sdbus-c++/IConnection.h>
|
#include <sdbus-c++/IConnection.h>
|
||||||
#include <sdbus-c++/ProxyInterfaces.h>
|
#include <sdbus-c++/ProxyInterfaces.h>
|
||||||
|
|
||||||
#include "internal/platform/implementation/linux/avahi_entrygroup_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/avahi/entrygroup_client.h"
|
||||||
#include "internal/platform/implementation/linux/avahi_server_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/avahi/server2_client.h"
|
||||||
#include "internal/platform/implementation/linux/avahi_servicebrowser_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/avahi/servicebrowser_client.h"
|
||||||
#include "internal/platform/implementation/linux/dbus.h"
|
#include "internal/platform/implementation/linux/dbus.h"
|
||||||
#include "internal/platform/implementation/wifi_lan.h"
|
#include "internal/platform/implementation/wifi_lan.h"
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
#include "internal/platform/implementation/bluetooth_adapter.h"
|
#include "internal/platform/implementation/bluetooth_adapter.h"
|
||||||
#include "internal/platform/implementation/linux/bluetooth_adapter.h"
|
#include "internal/platform/implementation/linux/bluetooth_adapter.h"
|
||||||
#include "internal/platform/implementation/linux/bluez.h"
|
#include "internal/platform/implementation/linux/bluez.h"
|
||||||
#include "internal/platform/implementation/linux/bluez_adapter_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/bluez/adapter_client.h"
|
||||||
#include "internal/platform/implementation/linux/dbus.h"
|
#include "internal/platform/implementation/linux/dbus.h"
|
||||||
#include "internal/platform/logging.h"
|
#include "internal/platform/logging.h"
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include "absl/strings/string_view.h"
|
#include "absl/strings/string_view.h"
|
||||||
#include "internal/platform/implementation/bluetooth_adapter.h"
|
#include "internal/platform/implementation/bluetooth_adapter.h"
|
||||||
#include "internal/platform/implementation/linux/bluez.h"
|
#include "internal/platform/implementation/linux/bluez.h"
|
||||||
#include "internal/platform/implementation/linux/bluez_adapter_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/bluez/adapter_client.h"
|
||||||
#include "internal/platform/implementation/linux/dbus.h"
|
#include "internal/platform/implementation/linux/dbus.h"
|
||||||
|
|
||||||
namespace nearby {
|
namespace nearby {
|
||||||
|
|||||||
@@ -38,8 +38,8 @@
|
|||||||
#include "internal/platform/implementation/bluetooth_classic.h"
|
#include "internal/platform/implementation/bluetooth_classic.h"
|
||||||
#include "internal/platform/implementation/linux/bluetooth_devices.h"
|
#include "internal/platform/implementation/linux/bluetooth_devices.h"
|
||||||
#include "internal/platform/implementation/linux/bluez.h"
|
#include "internal/platform/implementation/linux/bluez.h"
|
||||||
#include "internal/platform/implementation/linux/bluez_profile_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/bluez/profile_server.h"
|
||||||
#include "internal/platform/implementation/linux/bluez_profile_manager_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/bluez/profile_manager_client.h"
|
||||||
#include "internal/platform/logging.h"
|
#include "internal/platform/logging.h"
|
||||||
|
|
||||||
namespace nearby {
|
namespace nearby {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#include "absl/strings/string_view.h"
|
#include "absl/strings/string_view.h"
|
||||||
#include "internal/base/observer_list.h"
|
#include "internal/base/observer_list.h"
|
||||||
#include "internal/platform/implementation/bluetooth_classic.h"
|
#include "internal/platform/implementation/bluetooth_classic.h"
|
||||||
#include "internal/platform/implementation/linux/bluez_device_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/bluez/device_client.h"
|
||||||
|
|
||||||
namespace nearby {
|
namespace nearby {
|
||||||
namespace linux {
|
namespace linux {
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
#include "internal/platform/implementation/linux/bluetooth_classic_socket.h"
|
#include "internal/platform/implementation/linux/bluetooth_classic_socket.h"
|
||||||
#include "internal/platform/implementation/linux/bluetooth_pairing.h"
|
#include "internal/platform/implementation/linux/bluetooth_pairing.h"
|
||||||
#include "internal/platform/implementation/linux/bluez.h"
|
#include "internal/platform/implementation/linux/bluez.h"
|
||||||
#include "internal/platform/implementation/linux/bluez_device_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/bluez/device_client.h"
|
||||||
#include "internal/platform/logging.h"
|
#include "internal/platform/logging.h"
|
||||||
|
|
||||||
namespace nearby {
|
namespace nearby {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
#ifndef PLATFORM_IMPL_LINUX_BLUETOOTH_PROFILE_H_
|
#ifndef PLATFORM_IMPL_LINUX_BLUETOOTH_PAIRING_H_
|
||||||
#define PLATFORM_IMPL_LINUX_BLUETOOTH_PAIRING_H_
|
#define PLATFORM_IMPL_LINUX_BLUETOOTH_PAIRING_H_
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|||||||
@@ -16,20 +16,20 @@
|
|||||||
#define PLATFORM_IMPL_LINUX_DEVICE_INFO_H_
|
#define PLATFORM_IMPL_LINUX_DEVICE_INFO_H_
|
||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <sdbus-c++/ProxyInterfaces.h>
|
|
||||||
#include <sdbus-c++/Types.h>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <sdbus-c++/IConnection.h>
|
#include <sdbus-c++/IConnection.h>
|
||||||
#include <sdbus-c++/IProxy.h>
|
#include <sdbus-c++/IProxy.h>
|
||||||
|
#include <sdbus-c++/ProxyInterfaces.h>
|
||||||
|
#include <sdbus-c++/Types.h>
|
||||||
|
|
||||||
#include "absl/container/flat_hash_map.h"
|
#include "absl/container/flat_hash_map.h"
|
||||||
#include "absl/strings/string_view.h"
|
#include "absl/strings/string_view.h"
|
||||||
#include "absl/synchronization/mutex.h"
|
#include "absl/synchronization/mutex.h"
|
||||||
#include "internal/platform/implementation/device_info.h"
|
#include "internal/platform/implementation/device_info.h"
|
||||||
#include "internal/platform/implementation/linux/hostname_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/hostname/hostname_client.h"
|
||||||
#include "internal/platform/implementation/linux/login_manager_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/login/login_manager_client.h"
|
||||||
#include "internal/platform/implementation/linux/login_session_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/login/login_session_client.h"
|
||||||
|
|
||||||
namespace nearby {
|
namespace nearby {
|
||||||
namespace linux {
|
namespace linux {
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
# Copyright 2023 Google LLC
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
#
|
||||||
|
# https://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.
|
||||||
|
licenses(["notice"])
|
||||||
|
|
||||||
|
cc_library(
|
||||||
|
name = "types",
|
||||||
|
textual_hdrs = glob(["**/*.h"]),
|
||||||
|
visibility = [
|
||||||
|
"//internal/platform/implementation/linux:__subpackages__",
|
||||||
|
],
|
||||||
|
)
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
#include <sdbus-c++/IConnection.h>
|
#include <sdbus-c++/IConnection.h>
|
||||||
|
|
||||||
#include "glog/logging.h"
|
#include "glog/logging.h"
|
||||||
#include "internal/platform/implementation/linux/org_freedesktop_logcontrol_server_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/logcontrol/logcontrol_server.h"
|
||||||
#include "internal/platform/implementation/log_message.h"
|
#include "internal/platform/implementation/log_message.h"
|
||||||
|
|
||||||
namespace nearby {
|
namespace nearby {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
#include "internal/platform/implementation/linux/bluetooth_adapter.h"
|
#include "internal/platform/implementation/linux/bluetooth_adapter.h"
|
||||||
#include "internal/platform/implementation/linux/bluetooth_classic_medium.h"
|
#include "internal/platform/implementation/linux/bluetooth_classic_medium.h"
|
||||||
#include "internal/platform/implementation/linux/bluez.h"
|
#include "internal/platform/implementation/linux/bluez.h"
|
||||||
#include "internal/platform/implementation/linux/bluez_adapter_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/bluez/adapter_client.h"
|
||||||
#include "internal/platform/implementation/linux/condition_variable.h"
|
#include "internal/platform/implementation/linux/condition_variable.h"
|
||||||
#include "internal/platform/implementation/linux/dbus.h"
|
#include "internal/platform/implementation/linux/dbus.h"
|
||||||
#include "internal/platform/implementation/linux/mutex.h"
|
#include "internal/platform/implementation/linux/mutex.h"
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
|
|
||||||
#include "absl/synchronization/mutex.h"
|
#include "absl/synchronization/mutex.h"
|
||||||
#include "internal/platform/implementation/linux/dbus.h"
|
#include "internal/platform/implementation/linux/dbus.h"
|
||||||
#include "internal/platform/implementation/linux/networkmanager_connection_active_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/networkmanager/connection_active_client.h"
|
||||||
#include "internal/platform/implementation/linux/networkmanager_device_wireless_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/networkmanager/device_wireless_client.h"
|
||||||
#include "internal/platform/implementation/linux/wifi_medium.h"
|
#include "internal/platform/implementation/linux/wifi_medium.h"
|
||||||
#include "internal/platform/implementation/wifi.h"
|
#include "internal/platform/implementation/wifi.h"
|
||||||
|
|
||||||
|
|||||||
@@ -29,11 +29,11 @@
|
|||||||
|
|
||||||
#include "absl/synchronization/mutex.h"
|
#include "absl/synchronization/mutex.h"
|
||||||
#include "internal/platform/implementation/linux/dbus.h"
|
#include "internal/platform/implementation/linux/dbus.h"
|
||||||
#include "internal/platform/implementation/linux/networkmanager_accesspoint_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/networkmanager/access_point_client.h"
|
||||||
#include "internal/platform/implementation/linux/networkmanager_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/networkmanager/networkmanager_client.h"
|
||||||
#include "internal/platform/implementation/linux/networkmanager_connection_active_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/networkmanager/connection_active_client.h"
|
||||||
#include "internal/platform/implementation/linux/networkmanager_device_wireless_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/networkmanager/device_wireless_client.h"
|
||||||
#include "internal/platform/implementation/linux/networkmanager_ip4config_client_glue.h"
|
#include "internal/platform/implementation/linux/generated/dbus/networkmanager/ip4config_client.h"
|
||||||
#include "internal/platform/implementation/wifi.h"
|
#include "internal/platform/implementation/wifi.h"
|
||||||
#include "internal/platform/logging.h"
|
#include "internal/platform/logging.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user