Skip to content

Commit

Permalink
ProcessContainers: changes to compile it again (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
HaseenaSainul authored Jul 31, 2023
1 parent a2bdd86 commit 8061751
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ProcessContainers/Containers.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace Plugin {
uint32_t endpoint_start(const JsonData::Containers::StartParamsData& params);
uint32_t endpoint_stop(const JsonData::Containers::StopParamsData& params);
uint32_t get_containers(Core::JSON::ArrayType<Core::JSON::String>& response) const;
uint32_t get_networks(const string& index, Core::JSON::ArrayType<JsonData::Containers::NetworksData>& response) const;
uint32_t get_networks(const string& index, Core::JSON::ArrayType<JsonData::Containers::NetworksResultDataElem>& response) const;
uint32_t get_memory(const string& index, JsonData::Containers::MemoryData& response) const;
uint32_t get_cpu(const string& index, JsonData::Containers::CpuData& response) const;
};
Expand Down
6 changes: 3 additions & 3 deletions ProcessContainers/ContainersJsonRpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace Plugin {
Register<StartParamsData,void>(_T("start"), &Containers::endpoint_start, this);
Register<StopParamsData,void>(_T("stop"), &Containers::endpoint_stop, this);
Property<Core::JSON::ArrayType<Core::JSON::String>>(_T("containers"), &Containers::get_containers, nullptr, this);
Property<Core::JSON::ArrayType<NetworksData>>(_T("networks"), &Containers::get_networks, nullptr, this);
Property<Core::JSON::ArrayType<NetworksResultDataElem>>(_T("networks"), &Containers::get_networks, nullptr, this);
Property<MemoryData>(_T("memory"), &Containers::get_memory, nullptr, this);
Property<CpuData>(_T("cpu"), &Containers::get_cpu, nullptr, this);
}
Expand Down Expand Up @@ -137,7 +137,7 @@ namespace Plugin {
// Return codes:
// - ERROR_NONE: Success
// - ERROR_UNAVAILABLE: Container not found
uint32_t Containers::get_networks(const string& index, Core::JSON::ArrayType<NetworksData>& response) const
uint32_t Containers::get_networks(const string& index, Core::JSON::ArrayType<NetworksResultDataElem>& response) const
{
uint32_t result = Core::ERROR_NONE;

Expand All @@ -149,7 +149,7 @@ namespace Plugin {

if (iterator != nullptr) {
while(iterator->Next() == true) {
NetworksData networkData;
NetworksResultDataElem networkData;

networkData.Interface = iterator->Name();

Expand Down

0 comments on commit 8061751

Please sign in to comment.