62 #define DLT_SHELL_COMMAND_MAX_LENGTH 1024 67 int dlt_shell_injection_callback(uint32_t
service_id,
void *
data, uint32_t length)
72 DLT_STRING(
"dlt-system-shell, injection callback"));
78 strncpy(text,data,length);
88 DLT_STRING(
"dlt-system-shell, injection injection id:"),
91 DLT_STRING(
"dlt-system-shell, injection data:"),
97 if((syserr = system(text)) != 0)
100 DLT_STRING(
"dlt-system-shell, abnormal exit status."),
113 DLT_STRING(
"dlt-system-shell, unknown command received."),
124 DLT_STRING(
"dlt-system-shell, register callback"));
#define DLT_REGISTER_INJECTION_CALLBACK(CONTEXT, SERVICEID, CALLBACK)
#define DLT_SHELL_COMMAND_MAX_LENGTH
static char * service_id[]
static char data[kDataSize]
#define DLT_DECLARE_CONTEXT(CONTEXT)
#define DLT_REGISTER_CONTEXT(CONTEXT, CONTEXTID, DESCRIPTION)
#define DLT_LOG(CONTEXT, LOGLEVEL, ARGS...)
DLT_IMPORT_CONTEXT(dltsystem)
#define DLT_UINT32(UINT_VAR)