ESPHome 2026.5.0b1
Loading...
Searching...
No Matches
core.h
Go to the documentation of this file.
1#pragma once
2#ifdef USE_HOST
3
4#include <string>
5
6namespace esphome::host {
7
9char **get_argv();
10
12const std::string &get_exe_path();
13
15void arm_reexec(const std::string &path);
16
18const char *get_reexec_path();
19
20} // namespace esphome::host
21
22#endif // USE_HOST
const char * get_reexec_path()
Armed re-exec path, or nullptr.
Definition core.cpp:71
const std::string & get_exe_path()
Absolute path to running exe (resolved at startup); empty on failure.
Definition core.cpp:61
char ** get_argv()
argv captured by main(); stable for process lifetime.
Definition core.cpp:59
void arm_reexec(const std::string &path)
Arm an execv on the next arch_restart(). Pass empty to disarm.
Definition core.cpp:66