defs.h 739 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef __DEFS_H__
  2. #define __DEFS_H__
  3. #include <QObject>
  4. #define NETPARSE_FIFO_PATH "/tmp/netparsefifo"
  5. #define CALCULATE_FIFO_PATH "/tmp/calculatefifo"
  6. // cpu temperature
  7. #define BIG_CORE0 "/sys/class/thermal/thermal_zone1" // bigcore0
  8. #define BIG_CORE1 "/sys/class/thermal/thermal_zone2" // bigcore1
  9. #define LITTLE_CORE "/sys/class/thermal/thermal_zone3" // littlecore
  10. // meminfo
  11. #define MEMINFO "/proc/meminfo"
  12. // diskinfo
  13. #define MOUNT_ROOTFS "/"
  14. #define MOUNT_USERDATA "/userdata"
  15. // global settings file
  16. #define GLOBAL_SETTINGS_FILE "storage/conf/settings.ini"
  17. // app parameter
  18. enum {
  19. OPT_BROADCAST = 1000
  20. };
  21. typedef struct
  22. {
  23. char *iface = NULL;
  24. int broadcast_port = -1;
  25. }app_param_st;
  26. #endif