10 #if(CMK_CCS_AVAILABLE) 13 static int shouldReply=0;
14 static CcsDelayedReply theReply;
16 extern "C" void CApplicationDepositNode0Data(
char *data)
21 if(shouldReply == 0) {
25 len = strlen(data) + 8;
26 reply = (
char *)malloc(len *
sizeof(
char));
27 strcpy(reply,
"namdpr ");
31 CcsSendDelayedReply(theReply, strlen(reply) + 1, reply);
37 void CApplicationRequestData(
void)
40 theReply=CcsDelayReply();
43 void CApplicationInit(
void)
45 CcsRegisterHandler(
"perf_app",(CmiHandler)CApplicationRequestData);