2006-06-06 20:28:42 +00:00
|
|
|
#ifndef HEADER_TraceScreen
|
|
|
|
#define HEADER_TraceScreen
|
2006-03-04 18:16:49 +00:00
|
|
|
/*
|
|
|
|
htop - TraceScreen.h
|
2006-06-06 20:28:42 +00:00
|
|
|
(C) 2005-2006 Hisham H. Muhammad
|
2020-10-05 09:51:32 +02:00
|
|
|
Released under the GNU GPLv2, see the COPYING file
|
2006-03-04 18:16:49 +00:00
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
2020-10-17 22:32:43 +02:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
2016-01-12 06:00:58 -02:00
|
|
|
#include "InfoScreen.h"
|
2020-09-19 13:55:23 +02:00
|
|
|
#include "Object.h"
|
|
|
|
#include "Process.h"
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2020-10-17 22:32:43 +02:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
typedef struct TraceScreen_ {
|
2016-01-12 06:00:58 -02:00
|
|
|
InfoScreen super;
|
2006-03-04 18:16:49 +00:00
|
|
|
bool tracing;
|
2020-10-17 22:32:43 +02:00
|
|
|
pid_t child;
|
2016-01-12 06:00:58 -02:00
|
|
|
FILE* strace;
|
|
|
|
bool contLine;
|
|
|
|
bool follow;
|
2006-03-04 18:16:49 +00:00
|
|
|
} TraceScreen;
|
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
|
2020-10-05 13:19:50 +02:00
|
|
|
extern const InfoScreenClass TraceScreen_class;
|
2016-01-12 06:00:58 -02:00
|
|
|
|
2020-09-02 02:38:44 -05:00
|
|
|
TraceScreen* TraceScreen_new(Process* process);
|
2006-03-04 18:16:49 +00:00
|
|
|
|
2020-09-02 02:38:44 -05:00
|
|
|
void TraceScreen_delete(Object* cast);
|
2016-01-12 06:00:58 -02:00
|
|
|
|
2020-09-02 02:38:44 -05:00
|
|
|
bool TraceScreen_forkTracer(TraceScreen* this);
|
2016-01-12 06:00:58 -02:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
#endif
|