mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-31 02:18:00 +02:00
feat: add users and sessions discovery
- also add clangd multi-file intellisense
This commit is contained in:
13
include/sessions.h
Normal file
13
include/sessions.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
struct session {
|
||||
char *name;
|
||||
char *path;
|
||||
};
|
||||
|
||||
struct sessions_list {
|
||||
u_int16_t length;
|
||||
struct session *sessions;
|
||||
};
|
||||
|
||||
struct sessions_list *get_avaliable_sessions();
|
13
include/users.h
Normal file
13
include/users.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
struct user {
|
||||
char *username;
|
||||
char *display_name;
|
||||
};
|
||||
|
||||
struct users_list {
|
||||
u_int16_t length;
|
||||
struct user *users;
|
||||
};
|
||||
|
||||
struct users_list *get_human_users();
|
1
include/util.h
Normal file
1
include/util.h
Normal file
@@ -0,0 +1 @@
|
||||
void strcln(char **dest, const char *source);
|
Reference in New Issue
Block a user