OpenBSDProcess.h 693 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef HEADER_OpenBSDProcess
  2. #define HEADER_OpenBSDProcess
  3. /*
  4. htop - OpenBSDProcess.h
  5. (C) 2015 Hisham H. Muhammad
  6. (C) 2015 Michael McConville
  7. Released under the GNU GPLv2+, see the COPYING file
  8. in the source distribution for its full text.
  9. */
  10. #include <stdbool.h>
  11. #include "Machine.h"
  12. #include "Object.h"
  13. #include "Process.h"
  14. typedef struct OpenBSDProcess_ {
  15. Process super;
  16. /* 'Kernel virtual addr of u-area' to detect main threads */
  17. uint64_t addr;
  18. } OpenBSDProcess;
  19. extern const ProcessClass OpenBSDProcess_class;
  20. extern const ProcessFieldData Process_fields[LAST_PROCESSFIELD];
  21. Process* OpenBSDProcess_new(const Machine* host);
  22. void Process_delete(Object* cast);
  23. #endif