From 65357c8c46154de4e4eca14075bfe5523bb5fc14 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 7 Dec 2020 10:26:01 +0100 Subject: New upstream version 3.0.3 --- OpenFilesScreen.h | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) (limited to 'OpenFilesScreen.h') diff --git a/OpenFilesScreen.h b/OpenFilesScreen.h index 2c83cf1..0fbafe0 100644 --- a/OpenFilesScreen.h +++ b/OpenFilesScreen.h @@ -3,40 +3,25 @@ /* htop - OpenFilesScreen.h (C) 2005-2006 Hisham H. Muhammad -Released under the GNU GPL, see the COPYING file +Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "InfoScreen.h" - -typedef struct OpenFiles_Data_ { - char* data[256]; -} OpenFiles_Data; - -typedef struct OpenFiles_ProcessData_ { - OpenFiles_Data data; - int error; - struct OpenFiles_FileData_* files; -} OpenFiles_ProcessData; +#include -typedef struct OpenFiles_FileData_ { - OpenFiles_Data data; - struct OpenFiles_FileData_* next; -} OpenFiles_FileData; +#include "InfoScreen.h" +#include "Object.h" +#include "Process.h" typedef struct OpenFilesScreen_ { InfoScreen super; pid_t pid; } OpenFilesScreen; -extern InfoScreenClass OpenFilesScreen_class; +extern const InfoScreenClass OpenFilesScreen_class; -OpenFilesScreen* OpenFilesScreen_new(Process* process); +OpenFilesScreen* OpenFilesScreen_new(const Process* process); void OpenFilesScreen_delete(Object* this); -void OpenFilesScreen_draw(InfoScreen* this); - -void OpenFilesScreen_scan(InfoScreen* this); - #endif -- cgit v1.2.3