usb: Add utility for D-Bus
Putting all D-Bus related operation to the utils file.
Tested: Call the set/getProperty functions locally and successfully
set/get the corresponding attribute value.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I0e0c33fd6ec5db3a47babaf417b0c708709e580b
diff --git a/usb/meson.build b/usb/meson.build
index 0de8e33..9ac5876 100644
--- a/usb/meson.build
+++ b/usb/meson.build
@@ -10,6 +10,7 @@
source = [
'usb_manager_main.cpp',
'usb_manager.cpp',
+ '../utils.cpp',
]
phosphor_logging_dep = dependency(
@@ -24,6 +25,7 @@
dependencies: [
CLI11_dep,
phosphor_logging_dep,
+ sdbusplus_dep,
],
install: true,
install_dir: get_option('bindir')