mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 18:02:48 +00:00
38 lines
909 B
C
38 lines
909 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];
|
|
char recording_dir[1024];
|
|
int connection_setup;
|
|
int region;
|
|
int swap_abxy;
|
|
int fullscreen;
|
|
int cursor_in_fullscreen;
|
|
} 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
|