2009-06-02 19:28:19 +00:00
|
|
|
/* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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_ProcessData_ {
|
|
|
|
char* data[256];
|
|
|
|
struct OpenFiles_FileData_* files;
|
2009-10-16 20:15:01 +00:00
|
|
|
int error;
|
2009-06-02 19:28:19 +00:00
|
|
|
} OpenFiles_ProcessData;
|
|
|
|
|
|
|
|
typedef struct OpenFiles_FileData_ {
|
|
|
|
char* data[256];
|
|
|
|
struct OpenFiles_FileData_* next;
|
|
|
|
} OpenFiles_FileData;
|
|
|
|
|
|
|
|
typedef struct OpenFilesScreen_ {
|
|
|
|
Process* process;
|
2011-03-28 17:13:28 +00:00
|
|
|
pid_t pid;
|
2009-06-02 19:28:19 +00:00
|
|
|
Panel* display;
|
|
|
|
FunctionBar* bar;
|
|
|
|
bool tracing;
|
|
|
|
} OpenFilesScreen;
|
|
|
|
|
|
|
|
|
|
|
|
OpenFilesScreen* OpenFilesScreen_new(Process* process);
|
|
|
|
|
|
|
|
void OpenFilesScreen_delete(OpenFilesScreen* this);
|
|
|
|
|
|
|
|
void OpenFilesScreen_run(OpenFilesScreen* this);
|
|
|
|
|
|
|
|
#endif
|