DynamicMeter.h 802 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef HEADER_DynamicMeter
  2. #define HEADER_DynamicMeter
  3. /*
  4. htop - DynamicMeter.h
  5. (C) 2021 htop dev team
  6. (C) 2021 Red Hat, Inc. All Rights Reserved.
  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 "Hashtable.h"
  12. #include "Meter.h"
  13. typedef struct DynamicMeter_ {
  14. char name[32]; /* unique name, cannot contain spaces */
  15. char* caption;
  16. char* description;
  17. unsigned int type;
  18. double maximum;
  19. } DynamicMeter;
  20. Hashtable* DynamicMeters_new(void);
  21. void DynamicMeters_delete(Hashtable* dynamics);
  22. const char* DynamicMeter_lookup(Hashtable* dynamics, unsigned int key);
  23. bool DynamicMeter_search(Hashtable* dynamics, const char* name, unsigned int* key);
  24. extern const MeterClass DynamicMeter_class;
  25. #endif