Shift section definitions into separate file, add testing.

Change-Id: Idb0b41d7fa2999485580fca770958a27c1086f65
diff --git a/sections/cper-section.h b/sections/cper-section.h
new file mode 100644
index 0000000..4379f91
--- /dev/null
+++ b/sections/cper-section.h
@@ -0,0 +1,20 @@
+#ifndef CPER_SECTION_H
+#define CPER_SECTION_H
+
+#include <json.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include "../edk/Cper.h"
+
+//Definition structure for a single CPER section type.
+typedef struct {
+    EFI_GUID* Guid;
+    const char* ReadableName;
+    json_object* (*ToIR)(void*, EFI_ERROR_SECTION_DESCRIPTOR*);
+    void (*ToCPER)(json_object*, FILE*);
+} CPER_SECTION_DEFINITION;
+
+extern CPER_SECTION_DEFINITION section_definitions[];
+extern const size_t section_definitions_len;
+
+#endif
\ No newline at end of file