cleanup: namespace Montauk (capital M) => montauk::abi

This commit is contained in:
2026-06-16 09:09:16 +02:00
parent b6ac5ac994
commit 43d43ac9ea
165 changed files with 758 additions and 758 deletions
+4 -4
View File
@@ -148,11 +148,11 @@ bool run_stage(void (*fn)(), uint64_t timeout_ms) {
// that return immediately when no adapter exists (e.g. under QEMU), so this
// gate is effectively free.
bool bluetooth_has_active_connection() {
Montauk::BtAdapterInfo adapter;
montauk::abi::BtAdapterInfo adapter;
if (montauk::bt_info(&adapter) != 0 || !adapter.initialized) {
return false; // no adapter
}
Montauk::BtDevInfo devs[8];
montauk::abi::BtDevInfo devs[8];
int n = montauk::bt_list(devs, 8);
for (int i = 0; i < n; i++) {
if (devs[i].connected) return true;
@@ -162,7 +162,7 @@ bool bluetooth_has_active_connection() {
// Stage bodies -- no captured state, so they double as bare thread entries.
void stage_disconnect_bluetooth() {
Montauk::BtDevInfo devs[8];
montauk::abi::BtDevInfo devs[8];
int n = montauk::bt_list(devs, 8);
for (int i = 0; i < n; i++) {
if (devs[i].connected) {
@@ -178,7 +178,7 @@ void stage_flush_filesystems() {
} // namespace
void perform_graceful_shutdown(LoginState* ls, int action) {
const bool rebooting = (action == Montauk::POWER_REQ_REBOOT);
const bool rebooting = (action == montauk::abi::POWER_REQ_REBOOT);
const char* heading = rebooting ? "Restarting" : "Shutting Down";
// ==== Stage 1: disconnect connected Bluetooth devices ====