Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter

- CitrineOS core extracted (CSMS OCPP 2.0.1)
- OpenOCPP extracted (firmware OCPP 1.6J/2.0.1)
- ShapeShifter library installed (pip install -e)
- ShapeShifter specification extracted
- EVerest extracted

TODO updated with progress
This commit is contained in:
Eric F
2026-06-08 00:38:27 -04:00
parent 468cfeaa50
commit d398a6ced2
7326 changed files with 1177561 additions and 7 deletions

View File

@@ -0,0 +1,41 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2023 Pionix GmbH and Contributors to EVerest
#pragma once
#include <cstddef>
#include <string>
#include <vector>
#include <sys/types.h>
namespace Everest::system {
class SubProcess {
public:
static SubProcess create(const std::string& run_as_user, const std::vector<std::string>& capabilities = {});
bool is_child() const {
return this->pid == 0;
}
void send_error_and_exit(const std::string& message);
pid_t check_child_executed();
private:
const std::size_t MAX_PIPE_MESSAGE_SIZE = 1024;
SubProcess(int fd, pid_t pid) : fd(fd), pid(pid){};
int fd{};
pid_t pid{0};
bool check_child_executed_done{false};
};
bool keep_caps();
std::string set_caps(const std::vector<std::string>& capabilities);
std::string set_real_user(const std::string& user_name);
std::string set_user_and_capabilities(const std::string& run_as_user, const std::vector<std::string>& capabilities);
} // namespace Everest::system