Implemented GUI with zenity

Now the program is completely functional and is using zenity dialogues.
`sources` directory was renamed to `src`. UI related stuff was moved to
`src/gui/ui`.
This commit is contained in:
2025-02-07 12:42:51 +01:00
parent 81a955888e
commit 93588036aa
8 changed files with 114 additions and 139 deletions

22
src/ui-socket.h Normal file
View File

@@ -0,0 +1,22 @@
/*
* Interface for controlling communication with the UI.
*/
#ifndef UI_SOCKET_H
#define UI_SOCKET_H
#include <sys/types.h>
struct process_info {
pid_t PID;
const char *name;
uid_t UID;
};
// For default socket location, set socket_path = NULL.
int init_ui_socket(const char *socket_path);
int ask_access(const char *filename, struct process_info pi);
#endif // !UI_SOCKET_H