ibm: Add new interface "PSPD"
The interface needs to be implemented by dbus
object(s) to host VPD data of PSPD record.
Change-Id: Icb5b274daab62037d52f1c3f3f553f55e264dbba
Signed-off-by: Giridhari Krishna <gikrish1@in.ibm.com>
diff --git a/gen/com/ibm/ipzvpd/PSPD/meson.build b/gen/com/ibm/ipzvpd/PSPD/meson.build
new file mode 100644
index 0000000..2ebfbd4
--- /dev/null
+++ b/gen/com/ibm/ipzvpd/PSPD/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+ 'com/ibm/ipzvpd/PSPD__cpp'.underscorify(),
+ input: [ '../../../../../yaml/com/ibm/ipzvpd/PSPD.interface.yaml', ],
+ output: [ 'server.cpp', 'server.hpp', 'client.hpp', ],
+ depend_files: sdbusplusplus_depfiles,
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'cpp',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../../yaml',
+ 'com/ibm/ipzvpd/PSPD',
+ ],
+)
+
diff --git a/gen/com/ibm/ipzvpd/meson.build b/gen/com/ibm/ipzvpd/meson.build
index b480a39..a21b25d 100644
--- a/gen/com/ibm/ipzvpd/meson.build
+++ b/gen/com/ibm/ipzvpd/meson.build
@@ -329,6 +329,21 @@
],
)
+subdir('PSPD')
+generated_others += custom_target(
+ 'com/ibm/ipzvpd/PSPD__markdown'.underscorify(),
+ input: [ '../../../../yaml/com/ibm/ipzvpd/PSPD.interface.yaml', ],
+ output: [ 'PSPD.md' ],
+ depend_files: sdbusplusplus_depfiles,
+ command: [
+ sdbuspp_gen_meson_prog, '--command', 'markdown',
+ '--output', meson.current_build_dir(),
+ '--tool', sdbusplusplus_prog,
+ '--directory', meson.current_source_dir() / '../../../../yaml',
+ 'com/ibm/ipzvpd/PSPD',
+ ],
+)
+
subdir('UTIL')
generated_others += custom_target(
'com/ibm/ipzvpd/UTIL__markdown'.underscorify(),
diff --git a/yaml/com/ibm/ipzvpd/PSPD.interface.yaml b/yaml/com/ibm/ipzvpd/PSPD.interface.yaml
new file mode 100644
index 0000000..93ebf3f
--- /dev/null
+++ b/yaml/com/ibm/ipzvpd/PSPD.interface.yaml
@@ -0,0 +1,19 @@
+description: >
+ Implement to represent the PSPD record in IPZ VPD
+properties:
+ - name: RT
+ type: array[byte]
+ description: >
+ RT keyword. Contains the record name.
+ - name: VZ
+ type: array[byte]
+ description: >
+ VZ keyword. The record version.
+ - name: VM
+ type: array[byte]
+ description: >
+ VM keyword.
+ - name: PD_D
+ type: array[byte]
+ description: >
+ The "#D" keyword.