cleanup: namespace Montauk (capital M) => montauk::abi
This commit is contained in:
@@ -51,8 +51,8 @@ static Tab g_tab = TAB_STATUS;
|
||||
static int g_mouse_x = -1;
|
||||
static int g_mouse_y = -1;
|
||||
static int g_focus_field = -1;
|
||||
static Montauk::NetCfg g_cfg = {};
|
||||
static Montauk::NetStatus g_net = {};
|
||||
static montauk::abi::NetCfg g_cfg = {};
|
||||
static montauk::abi::NetStatus g_net = {};
|
||||
static Field g_fields[FIELD_COUNT] = {
|
||||
{"IP Address", {}, {}},
|
||||
{"Subnet Mask", {}, {}},
|
||||
@@ -475,7 +475,7 @@ static void launch_dhcp() {
|
||||
}
|
||||
|
||||
static void clear_config() {
|
||||
Montauk::NetCfg cfg = g_cfg;
|
||||
montauk::abi::NetCfg cfg = g_cfg;
|
||||
cfg.ipAddress = 0;
|
||||
cfg.subnetMask = 0;
|
||||
cfg.gateway = 0;
|
||||
@@ -500,7 +500,7 @@ static bool apply_config() {
|
||||
}
|
||||
}
|
||||
|
||||
Montauk::NetCfg cfg = g_cfg;
|
||||
montauk::abi::NetCfg cfg = g_cfg;
|
||||
cfg.ipAddress = values[0];
|
||||
cfg.subnetMask = values[1];
|
||||
cfg.gateway = values[2];
|
||||
@@ -623,7 +623,7 @@ static bool handle_mouse(int mx, int my, uint8_t buttons, uint8_t prev_buttons)
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool handle_key(const Montauk::KeyEvent& key) {
|
||||
static bool handle_key(const montauk::abi::KeyEvent& key) {
|
||||
if (!key.pressed) return false;
|
||||
|
||||
if (key.scancode == 0x01) {
|
||||
@@ -694,7 +694,7 @@ extern "C" void _start() {
|
||||
render();
|
||||
|
||||
while (g_win.id >= 0 && !g_win.closed) {
|
||||
Montauk::WinEvent ev;
|
||||
montauk::abi::WinEvent ev;
|
||||
int r = g_win.poll(&ev);
|
||||
bool redraw = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user