feat: save user and session as strings

This commit is contained in:
2025-06-29 18:50:35 +02:00
parent f0e962ad50
commit bceb13b844
3 changed files with 69 additions and 28 deletions

View File

@@ -2,15 +2,16 @@
#define LAUNCHSTATEH_
#include <stdbool.h>
#include <stdio.h>
#include <sys/stat.h>
#include "macros.h"
struct LaunchState {
int user_opt;
int session_opt;
char* NNULLABLE username;
char* NNULLABLE session_opt;
};
struct LaunchState read_launch_state();
int read_launch_state(struct LaunchState* NNULLABLE state);
bool write_launch_state(struct LaunchState state);
#endif