예제 #1
0
파일: report.c 프로젝트: 0robustus1/checkin
void report_status()
{
  if( current_start ) {
    tm_p current = now();
    printf("running a session since: ");
    print_time(current_start, "\n");
    print_duration(current_start, current);
    tm_destroy(current);
  }
}
void teardown(void) {
	int rc;

	//empty event queue
	queue_dispose_queue(event_queue);
	LOG_DEBUG(TEST_SIPSTACK_PREFIX "Event queue emptied successfully.");

	rc = tm_destroy(0);
	fail_if(rc == 0, "thread management could not be released");

	rc = logger_destroy();
	fail_if(rc == 0, "logger could not be released");
	
	rc = cr_destroy();
	fail_if(rc == 0, "config reader could not be released");

}
int main() {
	int x;

	tm_init();
	ed_init();
	void **params1;
	params1 = (void **) malloc(sizeof(int));
	params1[0] = (void *) 27;
	void **params2;
	params2 = (void **) malloc(sizeof(int));
	params2[0] = (void *) 99;
	event_dispatch(GUI_MAKE_CALL, params1, NULL);
	event_dispatch(GUI_MAKE_CALL, params2, NULL);
	scanf("%d", &x);
	ed_destroy();
	tm_destroy(0);
	free(params1);
	free(params2);
	pthread_exit(NULL);

}