You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
407 B

11 months ago
11 months ago
11 months ago
9 months ago
11 months ago
11 months ago
11 months ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdio.h>
  4. #include <string.h>
  5. extern "C" {
  6. #include "appevent.h"
  7. }
  8. namespace iflytop {
  9. using namespace std;
  10. static inline AppEvent_t createStateDisplayInfoEvent(const char* info) {
  11. AppEvent_t event;
  12. event.type = kAppEvent_StateDisplayInfo;
  13. strncpy(event.d.stateDisplayInfo, info, sizeof(event.d.stateDisplayInfo));
  14. return event;
  15. }
  16. } // namespace iflytop