/* #[]# * #[<...>]# から #[]# で囲まれたコメントは編集しないでください * tecsmerge によるマージに使用されます * * このファイルは tecsgen によりテンプレートとして自動生成されました * このファイルを編集して使用することが意図されていますが * tecsgen の再実行により上書きされてしまうため、通常 * gen/tSimpleServer_template.c => src/tSimpleServer.c * のように名前, フォルダを変更してから修正します * * #[]# */ #include #include #include "tSample_tecsgen.h" #ifndef E_OK #define E_OK 0 /* 正常終了 */ #define E_ID (-18) /* 不正ID番号 */ #endif /* 受け口関数 #_TEPF_# */ /* #[]# eEnt * entry port: eEnt * signature: sSample * context: task * params: * #[]# */ /* #[]# eEnt_sayHello * name: eEnt_sayHello * global_name: tSample_eEnt_sayHello * oneway: * #[/ENTRY_FUNC>]# */ ER eEnt_sayHello(CELLIDX idx, int32_t times) { ER ercd = E_OK; CELLCB *p_cellcb; if (VALID_IDX(idx)) { p_cellcb = GET_CELLCB(idx); } else { return(E_ID); } /* ここに処理本体を記述します */ printf( "Sample: " ); while( times-- > 0 ) printf( "hello " ); printf( "\n" ); return(ercd); } /* #[]# eEnt_howAreYou * name: eEnt_howAreYou * global_name: tSample_eEnt_howAreYou * oneway: * #[/ENTRY_FUNC>]# */ ER eEnt_howAreYou(CELLIDX idx, char_t* buf, int32_t len) { ER ercd = E_OK; CELLCB *p_cellcb; if (VALID_IDX(idx)) { p_cellcb = GET_CELLCB(idx); } else { return(E_ID); } /* ここに処理本体を記述します */ strncpy( buf, "Sample: I'm fine!", len ); return(ercd); }