Project

General

Profile

Statistics
| Revision:

root / proj / proj_func.c @ 166

History | View | Annotate | Download (375 Bytes)

1
#include "proj_func.h"
2
#include "interrupts_func.h"
3
#include "graph.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
    if ((r = graph_cleanup()))
13
        printf("%s: graph cleanup failed\n", __func__);
14

    
15
    return r;
16
}