spain's gonna win btw 🇪🇸

This commit is contained in:
2024-07-14 20:21:17 +02:00
parent fbc272f2a1
commit f9bfc48a9f
9 changed files with 211 additions and 33 deletions

11
include/auth.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef _AUTHH_
#define _AUTHH_
#include <stdbool.h>
#include <sessions.h>
bool check_passwd(char *user, char *passwd);
bool launch(char *user, char *passwd, struct session session, void (*cb)(void));
#endif

View File

@@ -11,7 +11,8 @@ enum session_type {
struct session {
char *name;
char *path;
char *exec;
char *tryexec;
enum session_type type;
};