From dadcc6476be11a9d1e87ae07787adaf0096235da Mon Sep 17 00:00:00 2001 From: fedir Date: Fri, 20 Dec 2024 08:48:21 +0100 Subject: [PATCH] Added the ui-socket.h. Two new issues to solve: * Should the ui communication component also be the one that manages permissions? * The format of data sent (protocol) needs definition. --- sources/ui-socket.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sources/ui-socket.h diff --git a/sources/ui-socket.h b/sources/ui-socket.h new file mode 100644 index 0000000..198d86b --- /dev/null +++ b/sources/ui-socket.h @@ -0,0 +1,19 @@ + +/* + * Interface for controlling communication with the UI. + */ + +#ifndef UI_SOCKET_H +#define UI_SOCKET_H + +struct process_info { + // TODO: define some fields +}; + +int init_ui_socket(); + +// TODO: design an interface for asking user for permission. + +int ask_access(const char *filename, process_info pi); + +#endif // !UI_SOCKET_H