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.

15 lines
389 B

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