blob: 5dd04b4f5195eec96b31cbe4907fb700dc874fe7 [file] [log] [blame]
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <brillo/flag_helper.h>
#include <brillo/syslog_logging.h>
#include "bluetooth/common/dbus_daemon.h"
#include "bluetooth/dispatcher/dispatcher_daemon.h"
int main(int argc, char** argv) {
DEFINE_string(passthrough, "",
"Pure D-Bus forwarding to/from BlueZ or NewBlue. Valid values "
"are \"bluez\" and \"newblue\".");
brillo::FlagHelper::Init(argc, argv,
"btdispatch, the Chromium OS Bluetooth service.");
brillo::InitLog(brillo::kLogToSyslog | brillo::kLogToStderrIfTty);
bluetooth::DBusDaemon daemon(std::make_unique<bluetooth::DispatcherDaemon>());
return daemon.Run();
}