diff options
Diffstat (limited to 'OpenFilesScreen.h')
-rw-r--r-- | OpenFilesScreen.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/OpenFilesScreen.h b/OpenFilesScreen.h index f5ce59c..b3cdd97 100644 --- a/OpenFilesScreen.h +++ b/OpenFilesScreen.h @@ -9,38 +9,30 @@ Released under the GNU GPL, see the COPYING file in the source distribution for its full text. */ -#define _GNU_SOURCE -#include <stdio.h> -#include <unistd.h> -#include <stdbool.h> -#include <unistd.h> -#include <fcntl.h> -#include <sys/types.h> -#include <sys/wait.h> - -#include "ProcessList.h" #include "Process.h" -#include "ListItem.h" #include "Panel.h" #include "FunctionBar.h" +typedef struct OpenFiles_Data_ { + char* data[256]; +} OpenFiles_Data; typedef struct OpenFiles_ProcessData_ { - char* data[256]; - struct OpenFiles_FileData_* files; + OpenFiles_Data data; int error; + struct OpenFiles_FileData_* files; } OpenFiles_ProcessData; typedef struct OpenFiles_FileData_ { - char* data[256]; + OpenFiles_Data data; struct OpenFiles_FileData_* next; } OpenFiles_FileData; typedef struct OpenFilesScreen_ { Process* process; + pid_t pid; Panel* display; FunctionBar* bar; - bool tracing; } OpenFilesScreen; |