feat: acquire-core full legacy C corpus (~2066 files, build-verified) + generator + inventory
This commit is contained in:
commit
b96cf702ee
2897 changed files with 264970 additions and 0 deletions
24
app/common/demo_mg_main.c
Normal file
24
app/common/demo_mg_main.c
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* demo_mg_main.c - 전문게이트웨이 온라인 데모 부트스트랩 (링크 검증)
|
||||
*
|
||||
* 생성된 플래그십 서비스(MG_OL_0001)를 TxCore 레지스트리에 등록하여
|
||||
* 등록/디스패치/DBIO 링크 경로가 실제로 연결됨을 증명한다.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
||||
#include "txcore.h"
|
||||
|
||||
void MG_OL_0001(TXSVCINFO *ctx);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
tx_set_loglevel(TX_LOG_INFO);
|
||||
tx_log(TX_LOG_INFO, "전문게이트웨이 온라인 데모 기동 (TxCore)");
|
||||
|
||||
tx_register("MG_OL_0001", MG_OL_0001);
|
||||
|
||||
tx_log(TX_LOG_INFO, "등록 서비스 수 = %d", tx_service_count());
|
||||
printf("demo_mg_server 준비완료: 서비스 %d개 등록\n",
|
||||
tx_service_count());
|
||||
return 0;
|
||||
}
|
||||
Reference in a new issue