Skip to content

Commit

Permalink
fix(types): add missing includes
Browse files Browse the repository at this point in the history
Use glideapps/quicktype#2403 to add missing
includes back.
  • Loading branch information
black-desk committed Sep 16, 2023
1 parent 38f2cd3 commit f99d0fa
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 103 deletions.
12 changes: 2 additions & 10 deletions libs/runtime/include/ocppi/runtime/config/types/BlockIO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct BlockIODeviceThrottle;
struct BlockIODeviceWeight;
}
}
}
}
#include "ocppi/runtime/config/types/BlockIODeviceThrottle.hpp"
#include "ocppi/runtime/config/types/BlockIODeviceWeight.hpp"

namespace ocppi {
namespace runtime {
Expand Down
11 changes: 1 addition & 10 deletions libs/runtime/include/ocppi/runtime/config/types/Config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,14 @@

#include "ocppi/runtime/config/types/Hooks.hpp"
#include "ocppi/runtime/config/types/Linux.hpp"
#include "ocppi/runtime/config/types/Mount.hpp"
#include "ocppi/runtime/config/types/Process.hpp"
#include "ocppi/runtime/config/types/Root.hpp"
#include "ocppi/runtime/config/types/Solaris.hpp"
#include "ocppi/runtime/config/types/Vm.hpp"
#include "ocppi/runtime/config/types/Windows.hpp"
#include "ocppi/runtime/config/types/Zos.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct Mount;
}
}
}
}

namespace ocppi {
namespace runtime {
namespace config {
Expand Down
10 changes: 1 addition & 9 deletions libs/runtime/include/ocppi/runtime/config/types/Hooks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct Hook;
}
}
}
}
#include "ocppi/runtime/config/types/Hook.hpp"

namespace ocppi {
namespace runtime {
Expand Down
6 changes: 3 additions & 3 deletions libs/runtime/include/ocppi/runtime/config/types/Linux.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

#include "ocppi/runtime/config/types/LinuxDevice.hpp"
#include "ocppi/runtime/config/types/IdMapping.hpp"
#include "ocppi/runtime/config/types/IntelRdt.hpp"
#include "ocppi/runtime/config/types/NamespaceReference.hpp"
#include "ocppi/runtime/config/types/Personality.hpp"
#include "ocppi/runtime/config/types/LinuxResources.hpp"
#include "ocppi/runtime/config/types/Seccomp.hpp"
Expand All @@ -27,9 +30,6 @@ namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct LinuxDevice;
struct IdMapping;
struct NamespaceReference;
enum class RootfsPropagation : int;
}
}
Expand Down
15 changes: 3 additions & 12 deletions libs/runtime/include/ocppi/runtime/config/types/LinuxResources.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,12 @@

#include "ocppi/runtime/config/types/BlockIO.hpp"
#include "ocppi/runtime/config/types/PurpleCPU.hpp"
#include "ocppi/runtime/config/types/DeviceCgroup.hpp"
#include "ocppi/runtime/config/types/HugepageLimit.hpp"
#include "ocppi/runtime/config/types/PurpleMemory.hpp"
#include "ocppi/runtime/config/types/ResourcesNetwork.hpp"
#include "ocppi/runtime/config/types/Pids.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct DeviceCgroup;
struct HugepageLimit;
struct Rdma;
}
}
}
}
#include "ocppi/runtime/config/types/Rdma.hpp"

namespace ocppi {
namespace runtime {
Expand Down
10 changes: 1 addition & 9 deletions libs/runtime/include/ocppi/runtime/config/types/Mount.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct IdMapping;
}
}
}
}
#include "ocppi/runtime/config/types/IdMapping.hpp"

namespace ocppi {
namespace runtime {
Expand Down
11 changes: 1 addition & 10 deletions libs/runtime/include/ocppi/runtime/config/types/Process.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,10 @@
#include "ocppi/runtime/config/types/Capabilities.hpp"
#include "ocppi/runtime/config/types/ConsoleSize.hpp"
#include "ocppi/runtime/config/types/IoPriority.hpp"
#include "ocppi/runtime/config/types/Rlimit.hpp"
#include "ocppi/runtime/config/types/Scheduler.hpp"
#include "ocppi/runtime/config/types/User.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct Rlimit;
}
}
}
}

namespace ocppi {
namespace runtime {
namespace config {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct NetworkInterfacePriority;
}
}
}
}
#include "ocppi/runtime/config/types/NetworkInterfacePriority.hpp"

namespace ocppi {
namespace runtime {
Expand Down
3 changes: 2 additions & 1 deletion libs/runtime/include/ocppi/runtime/config/types/Seccomp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

#include "ocppi/runtime/config/types/Syscall.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
enum class SeccompArch : int;
enum class SeccompAction : int;
enum class SeccompFlag : int;
struct Syscall;
}
}
}
Expand Down
11 changes: 1 addition & 10 deletions libs/runtime/include/ocppi/runtime/config/types/Solaris.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,10 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

#include "ocppi/runtime/config/types/Anet.hpp"
#include "ocppi/runtime/config/types/CappedCPU.hpp"
#include "ocppi/runtime/config/types/CappedMemory.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct Anet;
}
}
}
}

namespace ocppi {
namespace runtime {
namespace config {
Expand Down
3 changes: 2 additions & 1 deletion libs/runtime/include/ocppi/runtime/config/types/Syscall.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

#include "ocppi/runtime/config/types/SyscallArg.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
enum class SeccompAction : int;
struct SyscallArg;
}
}
}
Expand Down
11 changes: 1 addition & 10 deletions libs/runtime/include/ocppi/runtime/config/types/Windows.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,11 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

#include "ocppi/runtime/config/types/WindowsDevice.hpp"
#include "ocppi/runtime/config/types/Hyperv.hpp"
#include "ocppi/runtime/config/types/WindowsNetwork.hpp"
#include "ocppi/runtime/config/types/WindowsResources.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct WindowsDevice;
}
}
}
}

namespace ocppi {
namespace runtime {
namespace config {
Expand Down
10 changes: 1 addition & 9 deletions libs/runtime/include/ocppi/runtime/config/types/Zos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,7 @@
#include <nlohmann/json.hpp>
#include "ocppi/runtime/config/types/helper.hpp"

namespace ocppi {
namespace runtime {
namespace config {
namespace types {
struct ZosDevice;
}
}
}
}
#include "ocppi/runtime/config/types/ZosDevice.hpp"

namespace ocppi {
namespace runtime {
Expand Down

0 comments on commit f99d0fa

Please sign in to comment.