Exemplo n.º 1
0
int fini_dvfs() {
  fcf_finalize();
  if (saved_policies) {
    restore_before_settings();
  }
  return 0;
}
Exemplo n.º 2
0
int main(int argc, char *argv[]){
  printf("\n FLIGHT CONTROL FRAMEWORK V1.0 -- Copyright (C) 2013\n"
	 " : Ron Astin, Clark Wachsmuth, Chris Glasser\n : Josef Mihalits, Jordan Hewitt, Michael Hooper\n\n"
	 "----------------------------------------------------------------\n"
	 " This program comes with ABSOLUTELY NO WARRANTY;\n for details please"
	 " visit http://www.gnu.org/licenses/gpl.html.\n\n"
	 " This is free software, and you are welcome to redistribute it\n"
	 " under certain conditions; For details, please visit\n"
	 " http://www.gnu.org/licenses/gpl.html.\n"
	 "----------------------------------------------------------------\n\n\n");
  signal(SIGINT, signalhandler);

  int rc = init_fcf();			//< FCF init that sets up fd structures
  if(rc == 0){
	  fcf_initialize();			//< fcfmain init function for user modules
	  int rc = fcf_run_poll_loop();
	  fcf_finalize();			//< fcfmain finalize function for user modules
	  finalize_fcf();			//< FCF finalize that deallocates fd structures
	  if(rc == 0) {
		return EXIT_SUCCESS;
	  }
  }
  return EXIT_FAILURE;
}