virthttp  0.0
libvirt http interface
Functions
depends.cpp File Reference
#include <algorithm>
#include "wrapper/depends.hpp"

Functions

bool check_depends (const rapidjson::Value &json, std::vector< DependsOutcome > &outcomes, JsonRes &json_res) noexcept
 

Function Documentation

bool check_depends ( const rapidjson::Value &  depends_json,
std::vector< DependsOutcome > &  outcomes,
JsonRes json_res 
)
noexcept

Checks the dependency status of an action

Parameters
[in]depends_json(possibly) dependent action
[in]outcomesthe current stack of previously obtained outcomes
[in]json_resthe response body, as JSON
Returns
true if the dependency chain is holding, false if broken