blob: 0a243b1f8ac49d9a147df1982fab7c756c1a19e4 [file] [log] [blame]
// Copyright 2021 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 "rmad/utils/dbus_utils.h"
#include <base/memory/scoped_refptr.h>
#include <dbus/bus.h>
namespace rmad {
scoped_refptr<dbus::Bus> GetSystemBus() {
dbus::Bus::Options options;
options.bus_type = dbus::Bus::SYSTEM;
return base::MakeRefCounted<dbus::Bus>(options);
}
} // namespace rmad