Dump.Entry.FaultLog: interface restructure

Moved Dump.Entry.FaultLog.FaultDataType enum definition to
common folder. This to to use FaultDataType enums in different
interfaces.

Tested: Build verified.

Change-Id: I1073ab5e558fc5444a4164492ebb36682dc51e8d
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/gen/xyz/openbmc_project/Common/FaultLogType/meson.build b/gen/xyz/openbmc_project/Common/FaultLogType/meson.build
new file mode 100644
index 0000000..b2aaa87
--- /dev/null
+++ b/gen/xyz/openbmc_project/Common/FaultLogType/meson.build
@@ -0,0 +1,15 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/Common/FaultLogType__cpp'.underscorify(),
+    input: [ '../../../../../yaml/xyz/openbmc_project/Common/FaultLogType.interface.yaml',  ],
+    output: [ 'common.hpp', 'server.cpp', 'server.hpp', 'aserver.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',
+        'xyz/openbmc_project/Common/FaultLogType',
+    ],
+)
+
diff --git a/gen/xyz/openbmc_project/Common/meson.build b/gen/xyz/openbmc_project/Common/meson.build
index 95ff8d4..5cadbef 100644
--- a/gen/xyz/openbmc_project/Common/meson.build
+++ b/gen/xyz/openbmc_project/Common/meson.build
@@ -58,6 +58,21 @@
     ],
 )
 
+subdir('FaultLogType')
+generated_others += custom_target(
+    'xyz/openbmc_project/Common/FaultLogType__markdown'.underscorify(),
+    input: [ '../../../../yaml/xyz/openbmc_project/Common/FaultLogType.interface.yaml',  ],
+    output: [ 'FaultLogType.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',
+        'xyz/openbmc_project/Common/FaultLogType',
+    ],
+)
+
 subdir('File')
 generated_others += custom_target(
     'xyz/openbmc_project/Common/File__markdown'.underscorify(),
diff --git a/yaml/xyz/openbmc_project/Common/FaultLogType.interface.yaml b/yaml/xyz/openbmc_project/Common/FaultLogType.interface.yaml
new file mode 100644
index 0000000..4d620f6
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Common/FaultLogType.interface.yaml
@@ -0,0 +1,16 @@
+description: >
+    This is used to define enumerations for FaultLog dump data types.
+
+enumerations:
+    - name: FaultLogTypes
+      description: >
+          Type of fault data logged.
+      values:
+          - name: CPER
+            description: >
+                UEFI Common Platform Error Record.
+          - name: Crashdump
+            description: >
+                Collection of processor and chipset register values typically
+                gathered for debugging purposes at the time of a crash (or
+                sometimes on-demand).
diff --git a/yaml/xyz/openbmc_project/Dump/Entry/FaultLog.interface.yaml b/yaml/xyz/openbmc_project/Dump/Entry/FaultLog.interface.yaml
index 5c8b6b8..08b33a8 100644
--- a/yaml/xyz/openbmc_project/Dump/Entry/FaultLog.interface.yaml
+++ b/yaml/xyz/openbmc_project/Dump/Entry/FaultLog.interface.yaml
@@ -3,7 +3,7 @@
 
 properties:
     - name: Type
-      type: enum[self.FaultDataType]
+      type: enum[xyz.openbmc_project.Common.FaultLogType.FaultLogTypes]
       description: >
           Type of fault data in the log indicated by PrimaryLogId.
       flags:
@@ -23,17 +23,3 @@
           be programatically interpreted (e.g. string parsing)
       flags:
           - const
-
-enumerations:
-    - name: FaultDataType
-      description: >
-          Type of fault data logged.
-      values:
-          - name: CPER
-            description: >
-                UEFI Common Platform Error Record
-          - name: Crashdump
-            description: >
-                Collection of processor and chipset register values typically
-                gathered for debugging purposes at the time of a crash (or
-                sometimes on-demand)