Skip to content

Commit 4142c7d

Browse files
Interface for FRU VPD collection (#154)
This commit implements com.ibm.VPD.Collection interface which holds CollectionState property to describe the status of FRU VPD collection. Change-Id: I7879ef2f5a13c264ca747ba9555d1e5e9998baa3 Signed-off-by: Priyanga Ramasamy <[email protected]>
1 parent accaa5a commit 4142c7d

File tree

3 files changed

+56
-0
lines changed

3 files changed

+56
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Generated file; do not modify.
2+
generated_sources += custom_target(
3+
'com/ibm/VPD/Collection__cpp'.underscorify(),
4+
input: [ '../../../../../yaml/com/ibm/VPD/Collection.interface.yaml', ],
5+
output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.hpp', 'client.hpp', ],
6+
depend_files: sdbusplusplus_depfiles,
7+
command: [
8+
sdbuspp_gen_meson_prog, '--command', 'cpp',
9+
'--output', meson.current_build_dir(),
10+
'--tool', sdbusplusplus_prog,
11+
'--directory', meson.current_source_dir() / '../../../../../yaml',
12+
'com/ibm/VPD/Collection',
13+
],
14+
)
15+

gen/com/ibm/VPD/meson.build

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@ generated_sources += custom_target(
1313
],
1414
)
1515

16+
subdir('Collection')
17+
generated_others += custom_target(
18+
'com/ibm/VPD/Collection__markdown'.underscorify(),
19+
input: [ '../../../../yaml/com/ibm/VPD/Collection.interface.yaml', ],
20+
output: [ 'Collection.md' ],
21+
depend_files: sdbusplusplus_depfiles,
22+
command: [
23+
sdbuspp_gen_meson_prog, '--command', 'markdown',
24+
'--output', meson.current_build_dir(),
25+
'--tool', sdbusplusplus_prog,
26+
'--directory', meson.current_source_dir() / '../../../../yaml',
27+
'com/ibm/VPD/Collection',
28+
],
29+
)
30+
1631
subdir('FRUManager')
1732
generated_others += custom_target(
1833
'com/ibm/VPD/FRUManager__markdown'.underscorify(),
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
description: >
2+
Implement to provide VPD collection state management.
3+
4+
properties:
5+
- name: CollectionStatus
6+
type: enum[self.Status]
7+
description: >
8+
Property which tells the current status of FRU VPD collection.
9+
10+
enumerations:
11+
- name: Status
12+
description: >
13+
The current status of FRU VPD collection.
14+
values:
15+
- name: "InProgress"
16+
description: >
17+
FRU VPD collection is in progress.
18+
- name: "Success"
19+
description: >
20+
FRU VPD collection is successfully completed.
21+
- name: "Failure"
22+
description: >
23+
FRU VPD collection failed.
24+
- name: "NotStarted"
25+
description: >
26+
FRU VPD collection not started.

0 commit comments

Comments
 (0)