OpenFilesScreen.h 981 Bytes
Newer Older
Hisham Muhammad's avatar
Hisham Muhammad committed
1
2
3
4
5
6
7
8
9
10
11
/* Do not edit this file. It was automatically generated. */

#ifndef HEADER_OpenFilesScreen
#define HEADER_OpenFilesScreen
/*
htop - OpenFilesScreen.h
(C) 2005-2006 Hisham H. Muhammad
Released under the GNU GPL, see the COPYING file
in the source distribution for its full text.
*/

12
#include "InfoScreen.h"
Hisham Muhammad's avatar
Hisham Muhammad committed
13

14
15
16
17
typedef struct OpenFiles_Data_ {
   char* data[256];
} OpenFiles_Data;

Hisham Muhammad's avatar
Hisham Muhammad committed
18
typedef struct OpenFiles_ProcessData_ {
19
   OpenFiles_Data data;
20
   int error;
21
   struct OpenFiles_FileData_* files;
Hisham Muhammad's avatar
Hisham Muhammad committed
22
23
24
} OpenFiles_ProcessData;

typedef struct OpenFiles_FileData_ {
25
   OpenFiles_Data data;
Hisham Muhammad's avatar
Hisham Muhammad committed
26
27
28
29
   struct OpenFiles_FileData_* next;
} OpenFiles_FileData;

typedef struct OpenFilesScreen_ {
30
   InfoScreen super;
31
   pid_t pid;
Hisham Muhammad's avatar
Hisham Muhammad committed
32
33
34
} OpenFilesScreen;


35
36
extern InfoScreenClass OpenFilesScreen_class;

Hisham Muhammad's avatar
Hisham Muhammad committed
37
38
OpenFilesScreen* OpenFilesScreen_new(Process* process);

39
40
41
void OpenFilesScreen_delete(Object* this);

void OpenFilesScreen_draw(InfoScreen* this);
Hisham Muhammad's avatar
Hisham Muhammad committed
42

43
void OpenFilesScreen_scan(InfoScreen* this);
Hisham Muhammad's avatar
Hisham Muhammad committed
44
45

#endif