// SPDX-License-Identifier: MIT #pragma once #include "list.h" typedef struct lo_preferences { char server_name[256]; short port; char token[256]; } **PrefHandle; #define kPreferencesDialogId 129 #define kPreferencesFile ((const char*)"Lights Out Preferences") #define kPrefsId 1000 #define kEntsId 1000 PrefHandle preferences_load(); short preferences_save(PrefHandle prefs); short preferences_dialog(); short preferences_save_entities(list_t *entities); Handle preferences_get_entities();