dev: use #includes according to error's concerns

This commit is contained in:
2024-12-25 20:00:09 +01:00
parent 6d9b02e6de
commit 4c7d221a17
15 changed files with 42 additions and 44 deletions

View File

@@ -3,8 +3,8 @@
#include <stdbool.h>
#include <config.h>
#include <sessions.h>
#include "config.h"
#include "sessions.h"
bool launch(char *user, char *passwd, struct session session, void (*cb)(void), struct behavior* behavior);

View File

@@ -1,13 +1,11 @@
#ifndef _CONFIGH_
#define _CONFIGH_
#include "util.h"
#include <stdbool.h>
#include <stdio.h>
#include <keys.h>
#include <sessions.h>
#include <users.h>
#include "keys.h"
#include "util.h"
// should be ansi escape codes under \x1b[...m
// if not prepared accordingly, it might break

View File

@@ -3,7 +3,7 @@
#include <sys/types.h>
#include <util.h>
#include "util.h"
enum session_type {
XORG,

View File

@@ -1,8 +1,8 @@
#ifndef _UIH_
#define _UIH_
#include <config.h>
#include <util.h>
#include "config.h"
#include "util.h"
void setup(struct config);
int load(struct Vector * users, struct Vector * sessions);

View File

@@ -3,7 +3,7 @@
#include <sys/types.h>
#include <util.h>
#include "util.h"
struct user {
char *shell;

View File

@@ -1,10 +1,10 @@
#ifndef _UTILH_
#define _UTILH_
#include <keys.h>
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
#include "keys.h"
#include "stdbool.h"
#include "stdint.h"
#include "sys/types.h"
enum keys find_keyname(char *);
enum keys find_ansi(char *);