feat: validate credentials, persist them, and switch without rebooting

This commit is contained in:
2026-09-01 22:17:08 +03:00
parent 50ed341474
commit 64f1cb35cc
7 changed files with 107 additions and 28 deletions
+2 -1
View File
@@ -2,7 +2,8 @@
#define NETWORK_CREDENTIAL_STORE_H
#include <stdbool.h>
#include "network_state.h"
bool network_credential_store_load(network_profile_t *profile);
typedef enum { NETWORK_CREDENTIAL_LOAD_VALID, NETWORK_CREDENTIAL_LOAD_ABSENT, NETWORK_CREDENTIAL_LOAD_INVALID } network_credential_load_result_t;
network_credential_load_result_t network_credential_store_load(network_profile_t *profile);
bool network_credential_store_replace(const network_profile_t *profile);
bool network_credential_store_delete(void);
#endif