Exemplo n.º 1
0
void app_init()
{
	system("cls");
	printf("**********************************\n"); 
	printf("* 자료구조 프로그램 실습         *\n");
	printf("* 단일 연결 리스트               *\n");
	printf("* 2012.12.12                     *\n");
	printf("* CCM                            *\n");
	printf("**********************************\n");
	Manager_init();
	system("pause");
}
Exemplo n.º 2
0
int main(int argc, char** argv) {
  m = Manager_initManager(argc, argv);
  if (Manager_init(m, argc, argv) != RESULT_OK) {
	  printf("Manager_init failed.\n");
	  return -1;
  }

  if (Manager_setModuleInitProc(m, MyModuleInit) != RESULT_OK) {

	  printf("Manager_setRTMAdapterModuleInitProc failed.\n");
	  return -2;
  }

  if (Manager_activateManager(m) != RESULT_OK) {
	  printf("Manager_activateManager failed.\n");
    return -1;
  }

  
  Manager_runManager(m, 0);  
  return 0;
}
static void initialize() {
	Manager_init((Manager_t*)manager, NO_LABEL);
	MsgManager_subscribe(GRADIENT_MESSAGE, handleMessage);
	EventManager_subscribe(ACT_EVENT, act);
}