Reorgised the code

This commit is contained in:
BritishTeapot
2025-03-31 14:33:43 +02:00
parent 845c264989
commit d4e86c8620
4 changed files with 31 additions and 28 deletions

View File

@@ -38,6 +38,10 @@ void destroy_ui_socket(void);
* @pram pi: The process information
* @return: 0 if access is denied, 1 if access is allowed
*/
int interactive_access(const char *filename, struct process_info pi);
int interactive_access(const char *filename, struct process_info pi, int opts);
#define GRANT_TEMP 1
#define GRANT_PERM 2
// #define TABLE_ONLY 4 // NOTE: Add this in the future?
#endif // !UI_SOCKET_H