root / proj / proj_func.c @ 165
History | View | Annotate | Download (481 Bytes)
1 |
#include "proj_func.h" |
---|---|
2 |
#include "interrupts_func.h" |
3 |
#include "graphics.h" |
4 |
#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 |
|
13 |
if ((r = vg_exit()))
|
14 |
printf("%s: vg_exit failed to exit to text mode.\n", __func__);
|
15 |
if ((r = graph_free_memory_map()))
|
16 |
printf("%s: lm_free failed\n", __func__);
|
17 |
|
18 |
return r;
|
19 |
} |