home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / EXECUT13.LHA / Executive_V1.30 / SysInfo.lzx / include / clib / SysInfo_protos.h
Encoding:
C/C++ Source or Header  |  1995-11-23  |  1.1 KB  |  50 lines

  1. #ifndef CLIB_SYSINFO_PROTOS_H
  2. #define CLIB_SYSINFO_PROTOS_H
  3. /*
  4. **      $VER: SysInfo_protos.h 1.30 (14.11.95)
  5. **      SysInfo Release 1.30
  6. **
  7. **      C prototypes.
  8. **
  9. **      This file is public domain.
  10. **
  11. **      Author: Petri Nordlund <petrin@megabaud.fi>
  12. **
  13. **      $Id: SysInfo_protos.h 1.3 1995/11/14 13:00:38 petrin Exp petrin $
  14. **
  15. */
  16.  
  17. #ifndef EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif
  20.  
  21. #ifndef LIBRARIES_SYSINFO_H
  22. #include <libraries/SysInfo.h>
  23. #endif
  24.  
  25. /* init */
  26. struct SysInfo *InitSysInfo(void);
  27. void FreeSysInfo(struct SysInfo *);
  28.  
  29. /* load average */
  30. void GetLoadAverage(struct SysInfo *, struct SI_LoadAverage *);
  31.  
  32. /* id */
  33. LONG GetPid(struct SysInfo *);
  34. LONG GetPpid(struct SysInfo *);
  35. LONG GetPgrp(struct SysInfo *);
  36.  
  37. /* nice */
  38. LONG GetNice(struct SysInfo *, LONG, LONG);
  39. LONG SetNice(struct SysInfo *, LONG, LONG, LONG);
  40.  
  41. /* notify */
  42. struct SI_Notify *AddNotify(struct SysInfo *, WORD, LONG);
  43. void RemoveNotify(struct SysInfo *, struct SI_Notify *);
  44.  
  45. /* cpu usage */
  46. void GetCpuUsage(struct SysInfo *, struct SI_CpuUsage *);
  47. LONG GetTaskCpuUsage(struct SysInfo *, struct SI_TaskCpuUsage *, struct Task *);
  48.  
  49. #endif /* CLIB_SYSINFO_PROTOS_H */
  50.