Remove warning and only include needed stuff.
[profile/ivi/eina.git] / src / lib / eina_main.c
1 /* EINA - EFL data type library
2  * Copyright (C) 2008 Cedric Bail
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library;
16  * if not, see <http://www.gnu.org/licenses/>.
17  */
18
19 #include "eina_error.h"
20 #include "eina_hash.h"
21 #include "eina_stringshare.h"
22 #include "eina_list.h"
23 #include "eina_array.h"
24
25 EAPI int
26 eina_init(void)
27 {
28    int r;
29
30    r = eina_error_init();
31    r += eina_hash_init();
32    r += eina_stringshare_init();
33    r += eina_list_init();
34    r += eina_array_init();
35
36    return r;
37 }
38
39 EAPI int
40 eina_shutdown(void)
41 {
42    int r;
43
44    eina_array_shutdown();
45    eina_list_shutdown();
46    r = eina_stringshare_shutdown();
47    r += eina_hash_shutdown();
48    r += eina_error_shutdown();
49
50    return r;
51 }
52