aboutsummaryrefslogtreecommitdiffstats
path: root/OpenFilesScreen.h
diff options
context:
space:
mode:
authorDiogo Ferreira <defer@cyngn.com>2015-01-14 11:13:52 +0000
committerDiogo Ferreira <defer@cyngn.com>2015-01-14 11:38:57 +0000
commit841159c272ac08b1cd5bdef5167a8ce11383fbb5 (patch)
treed7272ef150e58eaa1acc9ab62cf9e6c0aecbc2da /OpenFilesScreen.h
parente1a8535012ab86d3e926bebfb7731dab1eb7320a (diff)
downloadandroid_external_htop-841159c272ac08b1cd5bdef5167a8ce11383fbb5.tar.gz
android_external_htop-841159c272ac08b1cd5bdef5167a8ce11383fbb5.tar.bz2
android_external_htop-841159c272ac08b1cd5bdef5167a8ce11383fbb5.zip
Change-Id: I416c44803b3a79c2fd752e342ea113875fa533e0
Diffstat (limited to 'OpenFilesScreen.h')
-rw-r--r--OpenFilesScreen.h22
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;