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.
19 lines
407 B
19 lines
407 B
#pragma once
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
extern "C" {
|
|
#include "appevent.h"
|
|
}
|
|
namespace iflytop {
|
|
using namespace std;
|
|
|
|
|
|
static inline AppEvent_t createStateDisplayInfoEvent(const char* info) {
|
|
AppEvent_t event;
|
|
event.type = kAppEvent_StateDisplayInfo;
|
|
strncpy(event.d.stateDisplayInfo, info, sizeof(event.d.stateDisplayInfo));
|
|
return event;
|
|
}
|
|
} // namespace iflytop
|