root / proj / proj_func.c @ 166
History | View | Annotate | Download (375 Bytes)
1 | 156 | up20180655 | #include "proj_func.h" |
---|---|---|---|
2 | #include "interrupts_func.h" |
||
3 | 166 | up20180642 | #include "graph.h" |
4 | 156 | up20180655 | #include "errors.h" |
5 | |||
6 | #include <lcom/lcf.h> |
||
7 | |||
8 | int cleanup(void) { |
||
9 | int r = SUCCESS;
|
||
10 | if ((r = unsubscribe_all()))
|
||
11 | printf("%s: failed to unsubscribe drivers.\n", __func__);
|
||
12 | 166 | up20180642 | if ((r = graph_cleanup()))
|
13 | printf("%s: graph cleanup failed\n", __func__);
|
||
14 | 156 | up20180655 | |
15 | return r;
|
||
16 | } |