xref: /aosp_15_r20/external/autotest/client/cros/debugd_util.py (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1*9c5db199SXin Li# Copyright 2017 The Chromium OS Authors. All rights reserved.
2*9c5db199SXin Li# Use of this source code is governed by a BSD-style license that can be
3*9c5db199SXin Li# found in the LICENSE file.
4*9c5db199SXin Li
5*9c5db199SXin Liimport dbus
6*9c5db199SXin Li
7*9c5db199SXin Li
8*9c5db199SXin Lidef iface():
9*9c5db199SXin Li  """Returns the interface object for debugd."""
10*9c5db199SXin Li  bus = dbus.SystemBus()
11*9c5db199SXin Li  proxy = bus.get_object('org.chromium.debugd', '/org/chromium/debugd')
12*9c5db199SXin Li  return dbus.Interface(proxy, dbus_interface='org.chromium.debugd')
13