Files
vanilla/gui/config.h
T
VoxelTek 67f7f6f5ac Rename Vanilla-Pi to Vanilla (#209)
* Rename vanilla-pi to vanilla-gui

* revert weirdly-changed menu.h

* Change icon to rounded

* Rename vanilla-gui to vanilla, name libvanilla

* Fix broken .desktop file

* Rename `vanilla-gui` to `vanilla`
2025-07-25 00:32:16 -07:00

34 lines
810 B
C

#ifndef VANILLA_PI_CONFIG_H
#define VANILLA_PI_CONFIG_H
#include <stdint.h>
#include <vanilla.h>
#define VPI_CONSOLE_MAX_NAME 256
typedef struct {
char name[VPI_CONSOLE_MAX_NAME];
vanilla_bssid_t bssid;
vanilla_psk_t psk;
} vpi_console_entry_t;
typedef struct {
uint8_t connected_console_count;
vpi_console_entry_t *connected_console_entries;
uint32_t server_address;
char wireless_interface[VPI_CONSOLE_MAX_NAME];
int connection_setup;
int region;
} vpi_config_t;
extern vpi_config_t vpi_config;
void vpi_config_init();
void vpi_config_free();
int vpi_config_add_console(vpi_console_entry_t *entry);
void vpi_config_rename_console(uint8_t index, const char *name);
void vpi_config_remove_console(uint8_t index);
void vpi_config_save();
#endif // VANILLA_PI_CONFIG_H