HomeCore 0.1.3 (07b5544)
Bare-metal personal computer firmware for Cortex-M
Loading...
Searching...
No Matches
session.h File Reference

Sessions: a user identity, working directory, and last command status. More...

Include dependency graph for session.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  session_t
 Execution state of one shell session. More...
 

Functions

int session_init (session_t *session, const user_t *user)
 Initialize a session for a user in the user's home directory.
 
int session_chdir (session_t *session, const char *path)
 Change a session's working directory.
 
session_t * session_current (void)
 Get the current session.
 
session_t * session_set_current (session_t *session)
 Make a session current.
 

Detailed Description

Sessions: a user identity, working directory, and last command status.