"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/gnu/swapmeter.h" (11 Jul 2020, 709 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "swapmeter.h" see the Fossies "Dox" file reference documentation.

    1 //
    2 //  Copyright (c) 1994, 1995 by Mike Romberg ( romberg@fsl.noaa.gov )
    3 //  2007 by Samuel Thibault ( samuel.thibault@ens-lyon.org )
    4 //
    5 //  This file may be distributed under terms of the GPL
    6 //
    7 
    8 #ifndef _SWAPMETER_H_
    9 #define _SWAPMETER_H_
   10 
   11 
   12 #include "fieldmetergraph.h"
   13 
   14 extern "C" {
   15 #include <mach/mach_types.h>
   16 #include <mach/default_pager_types.h>
   17 }
   18 
   19 class SwapMeter : public FieldMeterGraph {
   20 public:
   21   SwapMeter( XOSView *parent );
   22   ~SwapMeter( void );
   23 
   24   const char *name( void ) const { return "SwapMeter"; }
   25   void checkevent( void );
   26 
   27   void checkResources( void );
   28 protected:
   29 
   30   void getswapinfo( void );
   31 private:
   32 
   33   struct default_pager_info def_pager_info;
   34   mach_port_t def_pager;
   35 };
   36 
   37 
   38 #endif