feat: add behavior.{source,user_source} for custom env

This commit is contained in:
2024-12-25 19:25:09 +01:00
parent 1e0ffcdf2f
commit 0ba5519937
5 changed files with 82 additions and 6 deletions

View File

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

View File

@@ -1,6 +1,7 @@
#ifndef _CONFIGH_
#define _CONFIGH_
#include "util.h"
#include <stdbool.h>
#include <stdio.h>
@@ -63,6 +64,8 @@ struct strings {
struct behavior {
bool include_defshell;
struct Vector source;
struct Vector user_source;
};
struct config {