Project

General

Profile

Statistics
| Revision:

root / lab4 / lab4.c @ 51

History | View | Annotate | Download (1.39 KB)

1 51 up20180655
#include <lcom/lcf.h>
2
3
#include <stdint.h>
4
#include <stdio.h>
5
6
// Any header files included below this line should have been created by you
7
8
int main(int argc, char *argv[]) {
9
  // sets the language of LCF messages (can be either EN-US or PT-PT)
10
  lcf_set_language("EN-US");
11
12
  // enables to log function invocations that are being "wrapped" by LCF
13
  // [comment this out if you don't want/need/ it]
14
  lcf_trace_calls("/home/lcom/labs/lab4/trace.txt");
15
16
  // enables to save the output of printf function calls on a file
17
  // [comment this out if you don't want/need it]
18
  lcf_log_output("/home/lcom/labs/lab4/output.txt");
19
20
  // handles control over to LCF
21
  // [LCF handles command line arguments and invokes the right function]
22
  if (lcf_start(argc, argv))
23
    return 1;
24
25
  // LCF clean up tasks
26
  // [must be the last statement before return]
27
  lcf_cleanup();
28
29
  return 0;
30
}
31
32
33
int (mouse_test_packet)(uint32_t cnt) {
34
}
35
36
int (mouse_test_remote)(uint16_t period, uint8_t cnt) {
37
    /* To be completed */
38
    printf("%s(%u, %u): under construction\n", __func__, period, cnt);
39
    return 1;
40
}
41
42
int (mouse_test_async)(uint8_t idle_time) {
43
    /* To be completed */
44
    printf("%s(%u): under construction\n", __func__, idle_time);
45
    return 1;
46
}
47
48
int (mouse_test_gesture)() {
49
    /* To be completed */
50
    printf("%s: under construction\n", __func__);
51
    return 1;
52
}